#include
<kfbxscene.h>
The FBX SDK requires unique names for nodes, textures, materials, generic nodes, videos and gobos contained in a given scene. To build a valid node tree, new nodes must be inserted under the scene's root node.
This class also provides access to global settings and take information.
Definition at line 93 of file kfbxscene.h.
Node Tree Access |
|
KFbxNode * | GetRootNode () const |
Get the root node. |
|
K_DEPRECATED void | FillNodeArray (KArrayTemplate< KFbxNode * > &pNodeArray, kFbxClassId classId, bool pDepthFirst=false) |
Fill a node array will all existing node
with a given node attribute type. |
|
Texture Material and Video Access |
|
void | FillTextureArray (KArrayTemplate< KFbxTexture * > &pTextureArray) |
Clear then fill a texture array with all
existing textures included in the scene. |
|
void | FillMaterialArray (KArrayTemplate< KFbxSurfaceMaterial * > &pMaterialArray) |
Clear then fill a material array with all
existing materials included in the scene. |
|
Generic Node Access |
|
int | GetGenericNodeCount () const |
Get number of generic nodes. |
|
KFbxGenericNode * | GetGenericNode (int pIndex) |
Get generic node at given index. |
|
KFbxGenericNode * | GetGenericNode (char *pName) |
Access a generic node from its name.
|
|
bool | AddGenericNode (KFbxGenericNode *pGenericNode) |
Add the generic node to this scene. |
|
bool | RemoveGenericNode (KFbxGenericNode *pGenericNode) |
Remove the generic node from this scene.
|
|
Character Management |
|
int | GetCharacterCount () const |
Get number of characters. |
|
KFbxCharacter * | GetCharacter (int pIndex) |
Get character at given index. |
|
int | CreateCharacter (char *pName) |
Create a new character. |
|
void | DestroyCharacter (int pIndex) |
Destroy character. |
|
ControlSetPlug Management |
|
int | GetControlSetPlugCount () const |
Get number of ControlSetPlugs. |
|
KFbxControlSetPlug * | GetControlSetPlug (int pIndex) |
Get ControlSetPlug at given index. |
|
int | CreateControlSetPlug (char *pName) |
Create a new ControlSetPlug. |
|
void | DestroyControlSetPlug (int pIndex) |
Destroy ControlSetPlug. |
|
Character Pose Management |
|
int | GetCharacterPoseCount () const |
Get number of character poses. |
|
KFbxCharacterPose * | GetCharacterPose (int pIndex) |
Get character pose at given index. |
|
int | CreateCharacterPose (char *pName) |
Create a new character pose. |
|
void | DestroyCharacterPose (int pIndex) |
Destroy character pose. |
|
Pose Management |
|
int | GetPoseCount () const |
Get number of poses. |
|
KFbxPose * | GetPose (int pIndex) |
Get pose at given index. |
|
bool | AddPose (KFbxPose *pPose) |
Add a pose to this scene. |
|
bool | RemovePose (KFbxPose *pPose) |
Remove the specified pose from the scene.
|
|
bool | RemovePose (int pIndex) |
Remove the pose at the given index from the
scene. |
|
Scene information |
|
KFbxDocumentInfo * | GetSceneInfo () |
Get the scene information. |
|
void | SetSceneInfo (KFbxDocumentInfo *pSceneInfo) |
Set the scene information. |
|
Global Settings |
|
KFbxGlobalSettings & | GetGlobalSettings () |
Access global settings. |
|
const KFbxGlobalSettings & | GetGlobalSettings () const |
Const access to global settings. |
|
Global Settings |
|
The methods in this section are deprecated.
Only a subset of the data members remains valid and is now stored directly in the KFbxGlobalSettings object. The valid methods are: Set/GetAmbientColor Set/GetDefaultCamera Set/GetTimeMode Set/GetTimelineDefaultTimeSpan See the KFbxGlobalSettings class for the description of these methods. All the other data members are left to their default values and not processed by the system. For legacy reasons (FBX format 6.x and earlier) will still read and write the full data set of these classes but only the above mentioned ones will be correctly carried over to the system. When using these deprecated methods, the system will
systematically overwrite the AmbientColor, DefaultCamera, TimeMode
and TimeLineDefaultTimeSpan values with the ones stored in the
KFbxGlobalSettings.
Changing values directly from the GlobalLightSettings,
GlobalCameraSettings or GlobalTimeSettings will not affect the
values stored in the GlobalSettings. Similarly, changing the
properties in the GlobalSettings will not affect the values in the
Light,Camera,Time settings until one of these methods is called. It
is, however, guaranteed that the values will be synced during the
file write to FBX 6.x format. |
|
K_DEPRECATED KFbxGlobalLightSettings & |
GetGlobalLightSettings () |
Access global light settings. |
|
K_DEPRECATED KFbxGlobalCameraSettings & |
GetGlobalCameraSettings () |
Access global camera settings. |
|
K_DEPRECATED KFbxGlobalTimeSettings & |
GetGlobalTimeSettings () |
Access global time settings. |
|
Global Evaluator |
|
void | SetEvaluator (KFbxAnimEvaluator *pEvaluator) |
Set the global evaluator used by this scene
evaluation engine. |
|
KFbxAnimEvaluator * | GetEvaluator () |
Get the global evaluator used by this scene
evaluation engine. |
|
Public Member Functions |
|
void | Clear () |
Delete the node tree below the root node and
restore default settings. |
void Clear | ( | ) | [virtual] |
Delete the node tree below the root node and restore default settings.
Reimplemented from KFbxDocument.
KFbxNode* GetRootNode | ( | ) | const |
Get the root node.
K_DEPRECATED void FillNodeArray | ( | KArrayTemplate< KFbxNode * > & | pNodeArray, | |
kFbxClassId | classId, | |||
bool | pDepthFirst =
false |
|||
) |
Fill a node array will all existing node with a given node attribute type.
pNodeArray | An array of pointers to KFbxNode objects. | |
classId | Node class id searched. | |
pDepthFirst | If true , the node tree is scanned depth
first. |
void FillTextureArray | ( | KArrayTemplate< KFbxTexture * > & | pTextureArray | ) |
Clear then fill a texture array with all existing textures included in the scene.
pTextureArray | An array of texture pointers. |
void FillMaterialArray | ( | KArrayTemplate< KFbxSurfaceMaterial * > & | pMaterialArray | ) |
Clear then fill a material array with all existing materials included in the scene.
pMaterialArray | An array of material pointers. |
int GetGenericNodeCount | ( | ) | const |
Get number of generic nodes.
KFbxGenericNode* GetGenericNode | ( | int | pIndex | ) |
Get generic node at given index.
pIndex | Position in the list of the generic nodes. |
NULL
if the index
is out of bounds.KFbxGenericNode* GetGenericNode | ( | char * | pName | ) |
Access a generic node from its name.
pName |
bool AddGenericNode | ( | KFbxGenericNode * | pGenericNode | ) |
Add the generic node to this scene.
pGenericNode | Pointer to the generic node to be added. |
NULL
, this method will
return false
otherwise true
.bool RemoveGenericNode | ( | KFbxGenericNode * | pGenericNode | ) |
Remove the generic node from this scene.
pGenericNode | Pointer to the generic node to be removed. |
NULL
, this method will
return false
otherwise true
.int GetCharacterCount | ( | ) | const |
Get number of characters.
KFbxCharacter* GetCharacter | ( | int | pIndex | ) |
Get character at given index.
pIndex | Position in the list of the characters. |
NULL
if index is out
of bounds.int CreateCharacter | ( | char * | pName | ) |
Create a new character.
pName | Name given to character. |
void DestroyCharacter | ( | int | pIndex | ) |
Destroy character.
pIndex | Specify which character to destroy. |
int GetControlSetPlugCount | ( | ) | const |
Get number of ControlSetPlugs.
KFbxControlSetPlug* GetControlSetPlug | ( | int | pIndex | ) |
Get ControlSetPlug at given index.
pIndex | Position in the list of the ControlSetPlug |
NULL
if index is out
of bounds.int CreateControlSetPlug | ( | char * | pName | ) |
Create a new ControlSetPlug.
pName | Name given to ControlSetPlug. |
void DestroyControlSetPlug | ( | int | pIndex | ) |
Destroy ControlSetPlug.
pIndex | Specify which ControlSetPlug to destroy. |
int GetCharacterPoseCount | ( | ) | const |
Get number of character poses.
KFbxCharacterPose* GetCharacterPose | ( | int | pIndex | ) |
Get character pose at given index.
pIndex | Position in the list of character poses. |
NULL
if index is
out of bounds.int CreateCharacterPose | ( | char * | pName | ) |
Create a new character pose.
pName | Name given to character pose. |
void DestroyCharacterPose | ( | int | pIndex | ) |
Destroy character pose.
pIndex | Specify which character pose to destroy. |
int GetPoseCount | ( | ) | const |
Get number of poses.
Get pose at given index.
pIndex | Position in the list of poses. |
NULL
if index is out of
bounds.bool AddPose | ( | KFbxPose * | pPose | ) |
Add a pose to this scene.
pPose | The pose to be added to the scene. |
true
otherwise, if the pose is already in the scene,
returns false
.bool RemovePose | ( | KFbxPose * | pPose | ) |
Remove the specified pose from the scene.
pPose | The pose to be removed from the scene. |
true
otherwise, if the pose could not be found returns
false
.bool RemovePose | ( | int | pIndex | ) |
Remove the pose at the given index from the scene.
pIndex | The zero-based index of the pose to be removed. |
true
otherwise, if the pose could not be found returns
false
.KFbxDocumentInfo* GetSceneInfo | ( | ) | [inline] |
Get the scene information.
Definition at line 319 of file kfbxscene.h.
References KFbxDocument::GetDocumentInfo().
void SetSceneInfo | ( | KFbxDocumentInfo * | pSceneInfo | ) | [inline] |
Set the scene information.
pSceneInfo | Pointer to the scene information object. |
Definition at line 324 of file kfbxscene.h.
References KFbxDocument::SetDocumentInfo().
KFbxGlobalSettings& GetGlobalSettings | ( | ) |
Access global settings.
const KFbxGlobalSettings& GetGlobalSettings | ( | ) | const |
Const access to global settings.
K_DEPRECATED KFbxGlobalLightSettings& GetGlobalLightSettings | ( | ) |
Access global light settings.
K_DEPRECATED KFbxGlobalCameraSettings& GetGlobalCameraSettings | ( | ) |
Access global camera settings.
K_DEPRECATED KFbxGlobalTimeSettings& GetGlobalTimeSettings | ( | ) |
Access global time settings.
void SetEvaluator | ( | KFbxAnimEvaluator * | pEvaluator | ) |
Set the global evaluator used by this scene evaluation engine.
pEvaluator | The evaluator to be used for evaluation processing of this scene |
KFbxAnimEvaluator* GetEvaluator | ( | ) |
Get the global evaluator used by this scene evaluation engine.
Referenced by KFbxCharacterPose::GetGlobalPosition(), and KFbxCharacterPose::GetLocalPosition().