#include <SimplygonSDK.h>
ISceneNode is the base class for all scene graph nodes in simplygon. It has relative transformation to its parent, and functions to add children to the node.
Definition at line 14324 of file SimplygonSDK.h.
◆ AddChild()
virtual void SimplygonSDK::ISceneNode::AddChild |
( |
ISceneNode * |
child | ) |
|
|
pure virtual |
Adds a child node to this node. If the child is already a child of another node, it is removed from this node
- Parameters
-
◆ CalculateExtents()
virtual bool SimplygonSDK::ISceneNode::CalculateExtents |
( |
| ) |
|
|
pure virtual |
Calculates the axis-aligned bounding box of the node and all its children. If the node tree contains no geometric data, or all data is hidden, the bounding box is not calcluated, and the method returns false.
- Returns
- true if the calculation succeeded
◆ CreateChildMesh()
Creates a SceneMesh node as a child node to this node.
- Parameters
-
geom | is the GeometryData object to associate with this node |
◆ CreateChildPlane()
Creates a ScenePlane node as a child node to this node.
- Parameters
-
position_realInputDataPtr | is the point on the plane |
normal_realInputDataPtr | is the normal to the plane |
◆ EvaluateDefaultGlobalTransformation()
virtual void SimplygonSDK::ISceneNode::EvaluateDefaultGlobalTransformation |
( |
IMatrix4x4 * |
global_transform | ) |
|
|
pure virtual |
Evaluates the default global transformation of the node, regardless of node animation.
- Parameters
-
global_transform | the transformation matrix that receives the global transformation |
◆ FindNamedChild()
Finds the first child that has the name
- Parameters
-
name | the name of the child to look for |
◆ GetChild()
Get a pointer to the i:th child of this node
- Parameters
-
◆ GetChildCount()
virtual unsigned int SimplygonSDK::ISceneNode::GetChildCount |
( |
| ) |
|
|
pure virtual |
Get the number of direct children of this node
- Returns
- the number of direct children of this node
◆ GetClass()
virtual const char* SimplygonSDK::ISceneNode::GetClass |
( |
| ) |
|
|
virtual |
◆ GetInf()
virtual void SimplygonSDK::ISceneNode::GetInf |
( |
real * |
realReturnDataPtr | ) |
|
|
pure virtual |
Get the inferior (minimum) extent of the node
- Parameters
-
realReturnDataPtr | pointer to a user-provided data area to receive the return value. Note! Needs to be at least 3 elements in size |
◆ GetIsFrozen()
virtual bool SimplygonSDK::ISceneNode::GetIsFrozen |
( |
| ) |
|
|
pure virtual |
Get the IsFrozen flag. If set, the node will not be modified by processing modules.
- Returns
- the value of the isFrozen bool
◆ GetIsModified()
virtual bool SimplygonSDK::ISceneNode::GetIsModified |
( |
| ) |
|
|
pure virtual |
Get the IsModified flag. If set, the node is new, copied, or modified by processing modules. This can be useful to track modifications in the scene graph.
- Returns
- the value of the IsModified bool
◆ GetIsVisible()
virtual bool SimplygonSDK::ISceneNode::GetIsVisible |
( |
| ) |
|
|
pure virtual |
Get the IsVisible flag. If set, the node is visible.
- Returns
- the value of the isVisible bool
◆ GetNodeGUID()
virtual rstring SimplygonSDK::ISceneNode::GetNodeGUID |
( |
| ) |
|
|
pure virtual |
Gets the unique id for this node.
- Returns
- the GUID for this node
◆ GetOriginalName()
virtual rstring SimplygonSDK::ISceneNode::GetOriginalName |
( |
| ) |
|
|
pure virtual |
Get the OriginalName parameter which can be used to specify the original name of a node, for debugging of merging purposes. This parameter is not copied or cloned, and is not used internally by Simplygon.
- Returns
- the value of the OriginalName string
◆ GetParent()
Get the parent node of this node
- Returns
- the parent node
◆ GetPath()
virtual rstring SimplygonSDK::ISceneNode::GetPath |
( |
| ) |
|
|
pure virtual |
Get the path to this node in the scene. Please note that only paths where each node has a name can be used to get to the node using the path.
- Returns
- the path to this node in the scene
◆ GetRelativeTransform()
Get the relative transformation of this node
- Returns
- the relative transformation as a 4x4 matrix
◆ GetScene()
Get the scene object of the node
- Returns
- the scene object
◆ GetSup()
virtual void SimplygonSDK::ISceneNode::GetSup |
( |
real * |
realReturnDataPtr | ) |
|
|
pure virtual |
Get the superior (maximum) extent of the node
- Parameters
-
realReturnDataPtr | pointer to a user-provided data area to receive the return value. Note! Needs to be at least 3 elements in size |
◆ HasChild()
virtual bool SimplygonSDK::ISceneNode::HasChild |
( |
ISceneNode * |
child | ) |
|
|
pure virtual |
Returns true if the node has the specified child
- Parameters
-
child | the child node to look for |
- Returns
- true if child exists in the scene, otherwise false
◆ IsA()
virtual bool SimplygonSDK::ISceneNode::IsA |
( |
const char * |
type | ) |
const |
|
virtual |
◆ IsClassA()
static bool SimplygonSDK::ISceneNode::IsClassA |
( |
const char * |
type | ) |
|
|
inlinestatic |
The IsClassA function returns true if ISceneNode is a or is a descendant of the class named as the type parameter
- Parameters
-
type | is the name of the class to check if the class is, or is a descendant of |
- Returns
- true if the class is of the specified class, false if not
Definition at line 14345 of file SimplygonSDK.h.
◆ NewClone()
Clones this node tree (this node and all the descendants of this node) and returns the cloned top node. Please note that the copy is not added to any scene, and can be added anywhere. Also note that the clone shares all data pointers with the original nodes, such as geometry data objects.
- Returns
- a new clone of the ISceneNode
◆ NewCopy()
Deep copies this node tree (this node and all the descendants of this node) and returns the copy top node. Please note that the copy is not added to any scene, and can be added anywhere.
- Returns
- a new copy of the ISceneNode
◆ RemoveChild()
virtual void SimplygonSDK::ISceneNode::RemoveChild |
( |
ISceneNode * |
child | ) |
|
|
pure virtual |
Removes a child from the node.
- Parameters
-
child | the child to be removed |
◆ RemoveChildren()
virtual void SimplygonSDK::ISceneNode::RemoveChildren |
( |
| ) |
|
|
pure virtual |
Removes all children of this node
◆ RemoveFromParent()
virtual void SimplygonSDK::ISceneNode::RemoveFromParent |
( |
| ) |
|
|
pure virtual |
Removes this node from its parent.
◆ SafeCast()
SafeCast makes sure the pointer is of a class that can be cast into a ISceneNode pointer, and if this is possible, returns the cast pointer.
- Parameters
-
ptr | is the pointer to be cast into a ISceneNode pointer |
- Returns
- a pointer to the ISceneNode object, if the cast can be made, and a NULL pointer otherwise
Definition at line 14358 of file SimplygonSDK.h.
◆ SetIsFrozen()
virtual void SimplygonSDK::ISceneNode::SetIsFrozen |
( |
bool |
value | ) |
|
|
pure virtual |
Set the IsFrozen flag. If set, the node will not be modified by processing modules.
- Parameters
-
value | is the bool that isFrozen is to be set to |
◆ SetIsModified()
virtual void SimplygonSDK::ISceneNode::SetIsModified |
( |
bool |
value | ) |
|
|
pure virtual |
Set the IsModified flag. If set, the node is new, copied, or modified by processing modules. This can be useful to track modifications in the scene graph.
- Parameters
-
value | is the bool that IsModified is to be set to |
◆ SetIsVisible()
virtual void SimplygonSDK::ISceneNode::SetIsVisible |
( |
bool |
value | ) |
|
|
pure virtual |
Get the IsVisible flag. If set, the node is visible.
- Parameters
-
value | is the bool that isVisible is to be set to |
◆ SetNodeGUID()
virtual void SimplygonSDK::ISceneNode::SetNodeGUID |
( |
const char * |
value | ) |
|
|
pure virtual |
Sets the unique id for this node.
- Parameters
-
value | is the node id of type string |
◆ SetOriginalName()
virtual void SimplygonSDK::ISceneNode::SetOriginalName |
( |
const char * |
value | ) |
|
|
pure virtual |
Set the OriginalName parameter which can be used to specify the original name of a node, for debugging of merging purposes. This parameter is not copied or cloned, and is not used internally by Simplygon.
- Parameters
-
value | is a string the name is to be set to |
The documentation for this class was generated from the following file: