|
| | CameraNode (const std::string &sNodeName) |
| |
| void | makeActive () |
| |
| void | setCameraMode (CameraMode mode) |
| |
| void | setOrbitalTargetLocation (const glm::vec3 &targetPointLocation) |
| |
| void | clearOrbitalTargetLocation () |
| |
| void | setOrbitalRotation (float phi, float theta) |
| |
| void | setOrbitalDistanceToTarget (float distanceToTarget) |
| |
| glm::vec3 | getOrbitalTargetLocation () |
| |
| CameraProperties * | getCameraProperties () |
| |
| | SpatialNode (const std::string &sNodeName) |
| |
| void | setRelativeLocation (const glm::vec3 &location) |
| |
| void | setRelativeRotation (const glm::vec3 &rotation) |
| |
| void | setRelativeScale (const glm::vec3 &scale) |
| |
| void | setWorldLocation (const glm::vec3 &location) |
| |
| void | setWorldRotation (const glm::vec3 &rotation) |
| |
| void | setWorldScale (const glm::vec3 &scale) |
| |
| glm::vec3 | getRelativeLocation () const |
| |
| glm::vec3 | getRelativeRotation () const |
| |
| glm::vec3 | getRelativeScale () const |
| |
| glm::mat4x4 | getRelativeRotationMatrix () |
| |
| glm::vec3 | getWorldLocation () |
| |
| glm::vec3 | getWorldRotation () |
| |
| glm::quat | getWorldRotationQuaternion () |
| |
| glm::vec3 | getWorldScale () |
| |
| glm::vec3 | getWorldForwardDirection () |
| |
| glm::vec3 | getWorldRightDirection () |
| |
| glm::vec3 | getWorldUpDirection () |
| |
| glm::mat4x4 | getWorldMatrix () |
| |
| std::pair< std::recursive_mutex, sgc::GcPtr< SpatialNode > > * | getClosestSpatialParent () |
| |
| | Node () |
| |
| | Node (const std::string &sName) |
| |
|
| Node (const Node &)=delete |
| |
|
Node & | operator= (const Node &)=delete |
| |
|
| Node (Node &&)=delete |
| |
|
Node & | operator= (Node &&)=delete |
| |
| virtual | ~Node () override |
| |
| void | setNodeName (const std::string &sName) |
| |
| void | detachFromParentAndDespawn () |
| |
| void | addChildNode (const sgc::GcPtr< Node > &pNode, AttachmentRule locationRule=AttachmentRule::KEEP_WORLD, AttachmentRule rotationRule=AttachmentRule::KEEP_WORLD, AttachmentRule scaleRule=AttachmentRule::KEEP_WORLD) |
| |
| void | setSerialize (bool bSerialize) |
| |
| std::optional< Error > | serializeNodeTree (const std::filesystem::path &pathToFile, bool bEnableBackup) |
| |
| std::string | getNodeName () const |
| |
| sgc::GcPtr< Node > | getWorldRootNode () |
| |
| std::pair< std::recursive_mutex, sgc::GcPtr< Node > > * | getParentNode () |
| |
| std::pair< std::recursive_mutex, sgc::GcVector< sgc::GcPtr< Node > > > * | getChildNodes () |
| |
template<typename NodeType >
requires std::derived_from<NodeType, Node> |
| sgc::GcPtr< NodeType > | getParentNodeOfType (const std::string &sParentNodeName="") |
| |
template<typename NodeType >
requires std::derived_from<NodeType, Node> |
| sgc::GcPtr< NodeType > | getChildNodeOfType (const std::string &sChildNodeName="") |
| |
| TickGroup | getTickGroup () const |
| |
| std::optional< size_t > | getNodeId () const |
| |
| bool | isCalledEveryFrame () |
| |
| bool | isReceivingInput () |
| |
| bool | isSpawned () |
| |
| bool | isParentOf (Node *pNode) |
| |
| bool | isChildOf (Node *pNode) |
| |
| bool | isSerialized () const |
| |
| std::optional< Error > | serialize (std::filesystem::path pathToFile, bool bEnableBackup, const std::unordered_map< std::string, std::string > &customAttributes={}) |
| |
| std::variant< std::string, Error > | serialize (toml::value &tomlData, const std::string &sEntityId="", const std::unordered_map< std::string, std::string > &customAttributes={}, const std::optional< std::filesystem::path > &optionalPathToFile={}, bool bEnableBackup=false) |
| |
| std::variant< std::string, Error > | serialize (toml::value &tomlData, Serializable *pOriginalObject, std::string sEntityId="", const std::unordered_map< std::string, std::string > &customAttributes={}, const std::optional< std::filesystem::path > &optionalPathToFile={}, bool bEnableBackup=false) |
| |
| std::optional< std::pair< std::string, std::string > > | getPathDeserializedFromRelativeToRes () const |
| |
|
| enum class | AttachmentRule { RESET_RELATIVE
, KEEP_RELATIVE
, KEEP_WORLD
} |
| |
| static size_t | getAliveNodeCount () |
| |
| static std::variant< sgc::GcPtr< Node >, Error > | deserializeNodeTree (const std::filesystem::path &pathToFile) |
| |
| static GameInstance * | getGameInstance () |
| |
| static std::variant< std::pair< std::set< std::string >, toml::value >, Error > | getIdsFromFile (std::filesystem::path pathToFile) |
| |
| static std::optional< Error > | serializeMultiple (std::filesystem::path pathToFile, std::vector< SerializableObjectInformation > vObjects, bool bEnableBackup) |
| |
template<typename SmartPointer , typename InnerType = typename SmartPointer::element_type>
requires std::derived_from<InnerType, Serializable> && (std::same_as<SmartPointer, sgc::GcPtr<InnerType>> || std::same_as<SmartPointer, std::unique_ptr<InnerType>>) |
| static std::variant< SmartPointer, Error > | deserialize (const std::filesystem::path &pathToFile) |
| |
template<typename SmartPointer , typename InnerType = typename SmartPointer::element_type>
requires std::derived_from<InnerType, Serializable> && (std::same_as<SmartPointer, sgc::GcPtr<InnerType>> || std::same_as<SmartPointer, std::unique_ptr<InnerType>>) |
| static std::variant< SmartPointer, Error > | deserialize (const std::filesystem::path &pathToFile, std::unordered_map< std::string, std::string > &customAttributes) |
| |
template<typename SmartPointer , typename InnerType = typename SmartPointer::element_type>
requires std::derived_from<InnerType, Serializable> && (std::same_as<SmartPointer, sgc::GcPtr<InnerType>> || std::same_as<SmartPointer, std::unique_ptr<InnerType>>) |
| static std::variant< SmartPointer, Error > | deserialize (std::filesystem::path pathToFile, std::unordered_map< std::string, std::string > &customAttributes, const std::string &sEntityId) |
| |
template<typename SmartPointer , typename InnerType = typename SmartPointer::element_type>
requires std::derived_from<InnerType, Serializable> && (std::same_as<SmartPointer, sgc::GcPtr<InnerType>> || std::same_as<SmartPointer, std::unique_ptr<InnerType>>) |
| static std::variant< SmartPointer, Error > | deserialize (const std::filesystem::path &pathToFile, const std::string &sEntityId) |
| |
template<typename SmartPointer , typename InnerType = typename SmartPointer::element_type>
requires std::same_as<SmartPointer, sgc::GcPtr<Serializable>> || std::same_as<SmartPointer, std::unique_ptr<Serializable>> |
| static std::variant< std::vector< DeserializedObjectInformation< SmartPointer > >, Error > | deserializeMultiple (std::filesystem::path pathToFile) |
| |
template<typename SmartPointer , typename InnerType = typename SmartPointer::element_type>
requires std::derived_from<InnerType, Serializable> && (std::same_as<SmartPointer, sgc::GcPtr<InnerType>> || std::same_as<SmartPointer, std::unique_ptr<InnerType>>) |
| static std::variant< SmartPointer, Error > | deserialize (const toml::value &tomlData, std::unordered_map< std::string, std::string > &customAttributes, std::string sEntityId="", const std::optional< std::filesystem::path > &optionalPathToFile={}) |
| |
Represents a camera in 3D space.