diff options
Diffstat (limited to 'support/magicleap/Servo2D/code/inc.gen')
7 files changed, 0 insertions, 326 deletions
diff --git a/support/magicleap/Servo2D/code/inc.gen/PrismSceneManager.h b/support/magicleap/Servo2D/code/inc.gen/PrismSceneManager.h deleted file mode 100644 index 82d43212325..00000000000 --- a/support/magicleap/Servo2D/code/inc.gen/PrismSceneManager.h +++ /dev/null @@ -1,74 +0,0 @@ -// -- WARNING -- WARNING -- WARNING -- WARNING -- WARNING -- WARNING -- -// -// THE CONTENTS OF THIS FILE IS GENERATED BY CODE AND -// ANY MODIFICATIONS WILL BE OVERWRITTEN -// -// -- WARNING -- WARNING -- WARNING -- WARNING -- WARNING -- WARNING -- - -// %BANNER_BEGIN% -// --------------------------------------------------------------------- -// %COPYRIGHT_BEGIN% -// -// Copyright (c) 2018 Magic Leap, Inc. All Rights Reserved. -// Use of this file is governed by the Creator Agreement, located -// here: https://id.magicleap.com/creator-terms -// -// %COPYRIGHT_END% -// --------------------------------------------------------------------- -// %BANNER_END% - -// %SRC_VERSION%: 1 - -#pragma once - -#include <lumin/Prism.h> -#include <lumin/node/Node.h> - -#include <SceneDescriptor.h> -#include <SpawnedSceneBase.h> -#include <SpawnedSceneUserData.h> -#include <scenes.h> - -class PrismSceneManager { - public: - - typedef std::function<SpawnedSceneUserData*(SpawnedSceneBase&)> (*CreateSpawnedSceneUserData); - static void setUserDataCreator(const SceneDescriptor & sceneDescriptor, CreateSpawnedSceneUserData createSpawnedSceneUserData); - - public: - - PrismSceneManager(lumin::Prism* prism); - - enum class SceneState { - Unloaded, - ResourceModelLoaded, - ResourceAndObjectModelLoaded, - }; - - void setSceneState(const SceneDescriptor & sceneDescriptor, SceneState sceneState); - SceneState getSceneState(const SceneDescriptor & sceneDescriptor, SceneState sceneState) const; - - SpawnedSceneBase* spawnScene(const SceneDescriptor & sceneDescriptor); - lumin::Node* spawn(const SceneDescriptor & sceneDescriptor); - - private: - - typedef SpawnedSceneBase* (*CreateSpawnedScene)(const SceneDescriptor& sceneDescriptor, lumin::Node* root); - static const CreateSpawnedScene createSpawnedScene[scenes::numberOfExternalScenes]; - - typedef SpawnedSceneHandlers* (*CreateSpawnedSceneHandlers)(SpawnedSceneBase& spawnedScene); - static const CreateSpawnedSceneHandlers createSpawnedSceneHandlers[scenes::numberOfExternalScenes]; - - static CreateSpawnedSceneUserData createSpawnedSceneUserData[scenes::numberOfExternalScenes]; - - private: - - lumin::Node* createNodeTree(const SceneDescriptor & sceneDescriptor); - - private: - - lumin::Prism* prism_; - SceneState sceneStates_[scenes::numberOfExternalScenes]; - std::string objectModelNames_[scenes::numberOfExternalScenes]; -}; - diff --git a/support/magicleap/Servo2D/code/inc.gen/SceneDescriptor.h b/support/magicleap/Servo2D/code/inc.gen/SceneDescriptor.h deleted file mode 100644 index c1b42119bae..00000000000 --- a/support/magicleap/Servo2D/code/inc.gen/SceneDescriptor.h +++ /dev/null @@ -1,58 +0,0 @@ -// -- WARNING -- WARNING -- WARNING -- WARNING -- WARNING -- WARNING -- -// -// THE CONTENTS OF THIS FILE IS GENERATED BY CODE AND -// ANY MODIFICATIONS WILL BE OVERWRITTEN -// -// -- WARNING -- WARNING -- WARNING -- WARNING -- WARNING -- WARNING -- - -// %BANNER_BEGIN% -// --------------------------------------------------------------------- -// %COPYRIGHT_BEGIN% -// -// Copyright (c) 2018 Magic Leap, Inc. All Rights Reserved. -// Use of this file is governed by the Creator Agreement, located -// here: https://id.magicleap.com/creator-terms -// -// %COPYRIGHT_END% -// --------------------------------------------------------------------- -// %BANNER_END% - -// %SRC_VERSION%: 1 - -#pragma once - -#include <string> -#include <map> - -// data class -class SceneDescriptor { - public: - - typedef std::map<std::string /* externalNodeName */, const std::string& /* externalNodeId */> ExternalNodeReferences; - - SceneDescriptor(int index, const char* externalName, const char* id, const char* sceneGraphFilePath, const char* resourceModelFilePath, const ExternalNodeReferences& externalNodeReferences, bool initiallySpawned); - const std::string& getExternalName() const; - const std::string& getId() const; - const std::string& getSceneGraphPath() const; - const std::string& getResourceModelPath() const; - const ExternalNodeReferences & getExternalNodeReferences() const; - bool getInitiallySpawned() const; - - private: - - friend class PrismSceneManager; - int getIndex() const; - - private: - - int index_; - std::string externalName_; - std::string id_; - std::string sceneGraphPath_; - std::string resourceModelPath_; - const ExternalNodeReferences& externalNodeReferences_; - bool initiallySpawned_; -}; - -bool operator<(const SceneDescriptor& a, const SceneDescriptor& b); - diff --git a/support/magicleap/Servo2D/code/inc.gen/Servo2D/Servo2D.h b/support/magicleap/Servo2D/code/inc.gen/Servo2D/Servo2D.h deleted file mode 100644 index aea4afe8ff8..00000000000 --- a/support/magicleap/Servo2D/code/inc.gen/Servo2D/Servo2D.h +++ /dev/null @@ -1,60 +0,0 @@ -// -- WARNING -- WARNING -- WARNING -- WARNING -- WARNING -- WARNING -- -// -// THE CONTENTS OF THIS FILE IS GENERATED BY CODE AND -// ANY MODIFICATIONS WILL BE OVERWRITTEN -// -// -- WARNING -- WARNING -- WARNING -- WARNING -- WARNING -- WARNING -- - -// %BANNER_BEGIN% -// --------------------------------------------------------------------- -// %COPYRIGHT_BEGIN% -// -// Copyright (c) 2018 Magic Leap, Inc. All Rights Reserved. -// Use of this file is governed by the Creator Agreement, located -// here: https://id.magicleap.com/creator-terms -// -// %COPYRIGHT_END% -// --------------------------------------------------------------------- -// %BANNER_END% - -// %SRC_VERSION%: 1 - -#pragma once - -#include <SpawnedSceneBase.h> -#include <SpawnedSceneHandlers.h> - -#include <lumin/node/QuadNode.h> -#include <lumin/ui/node/UiButton.h> -#include <lumin/ui/node/UiPanel.h> -#include <lumin/ui/node/UiTextEdit.h> - -namespace scenes { - - namespace Servo2D { - - namespace externalNodes { - extern const std::string contentPanel; - extern const std::string content; - extern const std::string backButton; - extern const std::string fwdButton; - extern const std::string urlBar; - } - - struct SpawnedScene : public SpawnedSceneBase { - SpawnedScene(const SceneDescriptor& sceneDescriptor, lumin::Node* root); - ~SpawnedScene(); - lumin::ui::UiPanel* contentPanel; - lumin::QuadNode* content; - lumin::ui::UiButton* backButton; - lumin::ui::UiButton* fwdButton; - lumin::ui::UiTextEdit* urlBar; - }; - - SpawnedSceneBase* createSpawnedScene(const SceneDescriptor& sceneDescriptor, lumin::Node* root); - SpawnedSceneHandlers* createSpawnedSceneHandlers(SpawnedSceneBase& spawnedScene); - - extern const SceneDescriptor descriptor; - } -} - diff --git a/support/magicleap/Servo2D/code/inc.gen/SpawnedSceneBase.h b/support/magicleap/Servo2D/code/inc.gen/SpawnedSceneBase.h deleted file mode 100644 index 4b597bfdd73..00000000000 --- a/support/magicleap/Servo2D/code/inc.gen/SpawnedSceneBase.h +++ /dev/null @@ -1,43 +0,0 @@ -// -- WARNING -- WARNING -- WARNING -- WARNING -- WARNING -- WARNING -- -// -// THE CONTENTS OF THIS FILE IS GENERATED BY CODE AND -// ANY MODIFICATIONS WILL BE OVERWRITTEN -// -// -- WARNING -- WARNING -- WARNING -- WARNING -- WARNING -- WARNING -- - -// %BANNER_BEGIN% -// --------------------------------------------------------------------- -// %COPYRIGHT_BEGIN% -// -// Copyright (c) 2018 Magic Leap, Inc. All Rights Reserved. -// Use of this file is governed by the Creator Agreement, located -// here: https://id.magicleap.com/creator-terms -// -// %COPYRIGHT_END% -// --------------------------------------------------------------------- -// %BANNER_END% - -// %SRC_VERSION%: 1 - -#pragma once - -#include <lumin/node/Node.h> - -class SceneDescriptor; -class SpawnedSceneHandlers; -struct SpawnedSceneUserData; - -struct SpawnedSceneBase { - SpawnedSceneBase(const SceneDescriptor &sd, lumin::Node* rt); - virtual ~SpawnedSceneBase(); - - SpawnedSceneBase() = delete; - SpawnedSceneBase(const SpawnedSceneBase&) = delete; - SpawnedSceneBase(const SpawnedSceneBase&&) = delete; - - const SceneDescriptor& sceneDescriptor; - lumin::Node* root = nullptr; - SpawnedSceneHandlers* handlers = nullptr; - SpawnedSceneUserData* userData = nullptr; -}; - diff --git a/support/magicleap/Servo2D/code/inc.gen/SpawnedSceneHandlers.h b/support/magicleap/Servo2D/code/inc.gen/SpawnedSceneHandlers.h deleted file mode 100644 index 071a9c9bea6..00000000000 --- a/support/magicleap/Servo2D/code/inc.gen/SpawnedSceneHandlers.h +++ /dev/null @@ -1,31 +0,0 @@ -// -- WARNING -- WARNING -- WARNING -- WARNING -- WARNING -- WARNING -- -// -// THE CONTENTS OF THIS FILE IS GENERATED BY CODE AND -// ANY MODIFICATIONS WILL BE OVERWRITTEN -// -// -- WARNING -- WARNING -- WARNING -- WARNING -- WARNING -- WARNING -- - -// %BANNER_BEGIN% -// --------------------------------------------------------------------- -// %COPYRIGHT_BEGIN% -// -// Copyright (c) 2018 Magic Leap, Inc. All Rights Reserved. -// Use of this file is governed by the Creator Agreement, located -// here: https://id.magicleap.com/creator-terms -// -// %COPYRIGHT_END% -// --------------------------------------------------------------------- -// %BANNER_END% - -// %SRC_VERSION%: 1 - -#pragma once - -struct SpawnedSceneBase; - -class SpawnedSceneHandlers { -public: - SpawnedSceneHandlers(SpawnedSceneBase& ssb); - virtual ~SpawnedSceneHandlers(); -}; - diff --git a/support/magicleap/Servo2D/code/inc.gen/SpawnedSceneUserData.h b/support/magicleap/Servo2D/code/inc.gen/SpawnedSceneUserData.h deleted file mode 100644 index 936efea6880..00000000000 --- a/support/magicleap/Servo2D/code/inc.gen/SpawnedSceneUserData.h +++ /dev/null @@ -1,27 +0,0 @@ -// -- WARNING -- WARNING -- WARNING -- WARNING -- WARNING -- WARNING -- -// -// THE CONTENTS OF THIS FILE IS GENERATED BY CODE AND -// ANY MODIFICATIONS WILL BE OVERWRITTEN -// -// -- WARNING -- WARNING -- WARNING -- WARNING -- WARNING -- WARNING -- - -// %BANNER_BEGIN% -// --------------------------------------------------------------------- -// %COPYRIGHT_BEGIN% -// -// Copyright (c) 2018 Magic Leap, Inc. All Rights Reserved. -// Use of this file is governed by the Creator Agreement, located -// here: https://id.magicleap.com/creator-terms -// -// %COPYRIGHT_END% -// --------------------------------------------------------------------- -// %BANNER_END% - -// %SRC_VERSION%: 1 - -#pragma once - -struct SpawnedSceneUserData { - virtual ~SpawnedSceneUserData(); -}; - diff --git a/support/magicleap/Servo2D/code/inc.gen/scenes.h b/support/magicleap/Servo2D/code/inc.gen/scenes.h deleted file mode 100644 index 73f00a033a1..00000000000 --- a/support/magicleap/Servo2D/code/inc.gen/scenes.h +++ /dev/null @@ -1,33 +0,0 @@ -// -- WARNING -- WARNING -- WARNING -- WARNING -- WARNING -- WARNING -- -// -// THE CONTENTS OF THIS FILE IS GENERATED BY CODE AND -// ANY MODIFICATIONS WILL BE OVERWRITTEN -// -// -- WARNING -- WARNING -- WARNING -- WARNING -- WARNING -- WARNING -- - -// %BANNER_BEGIN% -// --------------------------------------------------------------------- -// %COPYRIGHT_BEGIN% -// -// Copyright (c) 2018 Magic Leap, Inc. All Rights Reserved. -// Use of this file is governed by the Creator Agreement, located -// here: https://id.magicleap.com/creator-terms -// -// %COPYRIGHT_END% -// --------------------------------------------------------------------- -// %BANNER_END% - -// %SRC_VERSION%: 1 - -#pragma once - -#include <SceneDescriptor.h> -#include <map> - -namespace scenes { - const int numberOfExternalScenes = 1; - - typedef std::map<std::string /* externalName */, const SceneDescriptor& /* sceneDescription */> SceneDescriptorReferences; - extern const SceneDescriptorReferences externalScenes; -} - |