![]() |
Simplygon C++ API
8.3.35800.0
|
#include <SimplygonSDK.h>
Public Member Functions | |
virtual CountedPointer< IValueArray > | AddCustomField (rid base_type, const char *name, unsigned int tuple_size)=0 |
virtual void | Append (IScene *otherScene)=0 |
virtual bool | CalculateExtents ()=0 |
virtual void | Clear ()=0 |
virtual void | Compact ()=0 |
virtual void | DeepCopy (IScene *src)=0 |
virtual void | EvaluateDefaultGlobalTransformation (ISceneNode *node, IMatrix4x4 *global_transform)=0 |
virtual CountedPointer< ISceneBoneTable > | GetBoneTable ()=0 |
virtual const char * | GetClass () |
virtual SGDEPRECATED CountedPointer< IGeometryData > | GetCombinedGeometry ()=0 |
virtual CountedPointer< IGeometryData > | GetCombinedGeometry (int selectionSetID)=0 |
virtual CountedPointer< IValueArray > | GetCustomField (const char *name)=0 |
virtual void | GetInf (real *realReturnDataPtr)=0 |
virtual CountedPointer< IMappingImage > | GetMappingImage ()=0 |
virtual CountedPointer< IMaterialTable > | GetMaterialTable ()=0 |
virtual CountedPointer< ISceneNode > | GetNodeByGUID (const char *node_id)=0 |
virtual CountedPointer< ISceneNode > | GetNodeByGUID (const char *node_id, ISceneNode *node)=0 |
virtual CountedPointer< ISceneNode > | GetNodeFromPath (const char *path)=0 |
virtual real | GetRadius ()=0 |
virtual CountedPointer< ISceneNode > | GetRootNode ()=0 |
virtual CountedPointer< ISelectionSetTable > | GetSelectionSetTable ()=0 |
virtual void | GetSup (real *realReturnDataPtr)=0 |
virtual CountedPointer< ITextureTable > | GetTextureTable ()=0 |
virtual unsigned int | GetTriangleCount ()=0 |
virtual bool | HasCustomField (const char *name)=0 |
virtual bool | IsA (const char *type) const |
virtual bool | LoadFromFile (const char *path)=0 |
virtual CountedPointer< IGeometryData > | NewCombinedGeometry ()=0 |
virtual CountedPointer< IGeometryData > | NewCombinedGeometry (int selectionSetID)=0 |
virtual CountedPointer< IScene > | NewCopy ()=0 |
virtual void | RemoveCustomField (const char *name)=0 |
virtual void | RemoveSceneNodes ()=0 |
virtual void | RemoveSceneNodes (const char *nodeType)=0 |
virtual void | RemoveSceneNodes (int selectionSetID)=0 |
virtual void | RemoveUnlinkedBones ()=0 |
virtual bool | SaveToFile (const char *path)=0 |
virtual int | SelectNodes (const char *nodeTypeName)=0 |
virtual void | ShowSceneDebugWindow ()=0 |
![]() | |
virtual rid | AddObserver (robserver *Observer, rid EventId)=0 |
virtual void | AddRef ()=0 |
virtual rstring | GetName ()=0 |
virtual void * | GetUserComponentArea (rid userid)=0 |
virtual void | PrintInfo ()=0 |
virtual void | Release ()=0 |
virtual void | RemoveObserver (rid ObserverId)=0 |
virtual void | SetName (const char *Name)=0 |
Static Public Member Functions | |
static bool | IsClassA (const char *type) |
static IScene * | SafeCast (IObject *ptr) |
![]() | |
static bool | IsClassA (const char *type) |
static IObject * | SafeCast (IObject *ptr) |
IScene is the main keeper of a scene and scene graph in simplygon. The scene is self-contained, with materials, textures, etc. to describe a full scene.
Definition at line 14007 of file SimplygonSDK.h.
|
pure virtual |
Adds a custom data field. To be able to add a field, it must have a name that does not conflict with the existing custom fields.
base_type | is the is the type of the field to be added |
name | is the name of the new field |
tuple_size | is the tuple size of the new field |
|
pure virtual |
Appends another scene to this scene. All materials, textures etc.
otherScene | is the scene object to merge into current scene |
|
pure virtual |
Calculates the axis-aligned bounding box of the whole scene. If the node tree contains no geometric data, or all data is hidden, the bounding box is not calculated, and the method returns false.
|
pure virtual |
Clears the whole scene and releases all items in the graph.
|
pure virtual |
Will remove mesh nodes that consist of empty geometry. The node transformation will be added to its children's transformation. If the root node is a sceneMesh with empty geometry, it will be replaced with a generic sceneNode having the same transformation.
|
pure virtual |
Deep copies the source scene, and all things assigned to it, including all nodes, geometry data, materials and tables.
src | is source scene to copy |
|
pure virtual |
Evaluates the global transformation of the specified node at a specific time. EvaluateDefaultGlobalTransformation is used to evaluate the default transformation, regardless of node animation.
node | is the node to evaluate |
global_transform | is the transformation matrix that receives the global transformation |
|
pure virtual |
Get the bone table of the scene
|
virtual |
GetClass returns the name of the class of the object.
Reimplemented from SimplygonSDK::IObject.
|
pure virtual |
|
pure virtual |
Combines all the geometries from the scene and returns a copy.
selectionSetID | is the ID of the selection set containing node ids to combine |
|
pure virtual |
Adds/Removes/Gets a custom data field.
name | is the name of the field to be fetched |
|
pure virtual |
Get the inferior (minimum) extent of the scene
realReturnDataPtr | pointer to a user-provided data area to receive the return value. Note! Needs to be at least 3 elements in size |
|
pure virtual |
Get the MappingImage object for the scene.
|
pure virtual |
Get the material table of the scene
|
pure virtual |
Gets a node defined by an id.
node_id | is the id of the node to get |
|
pure virtual |
Gets a node defined by an id from the specified node tree.
node_id | is the id of the node to get |
node | id is the id of the node to get |
|
pure virtual |
Gets a node defined by a path. Please note that the path must contain names for each level to be able to find the specified node.
path | the path of the node to get |
|
pure virtual |
Get the scene radius.
|
pure virtual |
Get the root node of the scene.
|
pure virtual |
Get the selection set table of the scene
|
pure virtual |
Get the superior (maximum) extent of the scene
realReturnDataPtr | pointer to a user-provided data area to receive the return value. Note! Needs to be at least 3 elements in size |
|
pure virtual |
Get the texture table of the scene
|
pure virtual |
Traverses the scene meshes in the scene and returns the total triangle count
|
pure virtual |
Checks if a custom field is present in the scene
name | is the name of the field to be checked |
|
virtual |
The IsA function returns true if the object is a or is a descendant of the class named as the type parameter
type | is the name of the class to check if the object is, or is a descendant of |
Reimplemented from SimplygonSDK::IObject.
|
inlinestatic |
The IsClassA function returns true if IScene is a or is a descendant of the class named as the type parameter
type | is the name of the class to check if the class is, or is a descendant of |
Definition at line 14028 of file SimplygonSDK.h.
|
pure virtual |
Loads a scene from file
path | is the path of the scene file |
|
pure virtual |
Combines all the geometries from the scene and returns a copy.
|
pure virtual |
Combines all the geometries from the selection set and returns a copy. If the selection set ID is -1, then all the geometries will be copied.
selectionSetID | is the ID of the selection set containing node ids to combine |
|
pure virtual |
Creates a new deep copy of the scene, and all things assigned to it, including all nodes, geometry data, materials and tables.
|
pure virtual |
Removes a custom data field.
name | is the name of the field to be removed |
|
pure virtual |
Get the CustomFields array collection, where custom data is stored for the scene
|
pure virtual |
Get the CustomFields array collection, where custom data is stored for the scene
nodeType | is the type of object to remove from the scene (i.e ISceneMesh) |
|
pure virtual |
Get the CustomFields array collection, where custom data is stored for the scene
selectionSetID | is the ID of the selection set containing the nodes to remove |
|
pure virtual |
Removes all bones in the scene that are not linked by any ISceneMesh's geometry data. Note that the removal only removes leaf nodes in the scene.
SafeCast makes sure the pointer is of a class that can be cast into a IScene pointer, and if this is possible, returns the cast pointer.
ptr | is the pointer to be cast into a IScene pointer |
Definition at line 14041 of file SimplygonSDK.h.
|
pure virtual |
Saves a scene to file
path | is the path to which the scene file will be saved |
|
pure virtual |
Selects all nodes of the type specified in the parameter and returns the selection set ID. If no types were found, it returns -1.
nodeTypeName | the type of node to select, for example "ISceneMesh" |
|
pure virtual |
Show a debug window with the scene graph tree. This debug method returns when the window is closed.