#include<kfbxobject.h>
Definition at line145of filekfbxobject.h.
UpdateId Management | |
enum | eFbxUpdateIdType |
virtual kFbxUpdateId | GetUpdateId(eFbxUpdateIdType pUpdateId=eUpdateId_Object) const |
virtual kFbxUpdateId | IncUpdateId(eFbxUpdateIdType pUpdateId=eUpdateId_Object) |
Properties access | |
enum | eFbxPropertyNotify |
KFbxProperty | RootProperty |
KFbxProperty | GetFirstProperty() const |
KFbxProperty | GetNextProperty(KFbxPropertyconst&pProperty) const |
KFbxProperty | FindProperty(const char *pName, bool pCaseSensitive=true) const |
Find a property using its name and its data type. | |
KFbxProperty | FindProperty(const char *pName,KFbxDataTypeconst&pDataType, bool pCaseSensitive=true) const |
KFbxProperty | FindPropertyHierarchical(const char *pName, bool pCaseSensitive=true) const |
KFbxProperty | FindPropertyHierarchical(const char *pName,KFbxDataTypeconst&pDataType, bool pCaseSensitive=true) const |
KFbxProperty& | GetRootProperty() |
constKFbxProperty& | GetRootProperty() const |
KFbxProperty | GetClassRootProperty() |
virtual bool | PropertyNotify(eFbxPropertyNotify pType,KFbxProperty*pProperty) |
Cloning and references | |
virtualKFbxObject* | Clone(KFbxObject*pContainer,KFbxObject::ECloneTypepCloneType) const |
Creates a clone of this object. | |
bool | IsAReferenceTo(void) const |
Check if this object is a reference clone of another. | |
KFbxObject* | GetReferenceTo(void) const |
If this object is a reference clone, this method returns the original object from which this one was cloned. | |
bool | IsReferencedBy(void) const |
Check if any objects were reference cloned from this one. | |
int | GetReferencedByCount(void) const |
Get the number of objects that were reference cloned from this one. | |
KFbxObject* | GetReferencedBy(int pIndex) const |
Get a reference clone of this object. | |
Object Name Management | |
void | SetName(char const *pName) |
Set the name of the object. | |
char const * | GetName() const |
Return the full name of the object. | |
KString | GetNameWithoutNameSpacePrefix() const |
Return the name of the object without the namespace qualifier. | |
KString | GetNameWithNameSpacePrefix() const |
Return the name of the object with the namespace qualifier. | |
void | SetInitialName(char const *pName) |
Set the initial name of the object. | |
char const * | GetInitialName() const |
Return the initial name of the object. | |
KString | GetNameSpaceOnly() |
Return the namespace of the object. | |
void | SetNameSpace(KStringpNameSpace) |
Set the namespace of the object. | |
KArrayTemplate<KString*> | GetNameSpaceArray(char identifier) |
Return an array of all the namespace of the object. | |
KString | GetNameOnly() const |
Get the name only (no namespace or prefix) of the object. | |
KString | GetNameSpacePrefix() const |
Get the namespace qualifier. | |
KFbxObjectID const& | GetUniqueID() const |
Get the unique id of object. | |
staticKString | RemovePrefix(char *pName) |
Remove the prefix of pName. | |
staticKString | StripPrefix(KString&lName) |
Strip the prefix of pName. | |
staticKString | StripPrefix(const char *pName) |
Strip the prefix of pName. | |
Off-loading Management | |
| |
int | ContentUnload() |
Unload this object content using the offload peripheral currently set in the document then flush it from memory. | |
int | ContentLoad() |
Load this object content using the offload peripheral currently set in the document. | |
bool | ContentIsLoaded() const |
Returns true if this object content is currently loaded. | |
void | ContentDecrementLockCount() |
Decrement the content lock count of an object. | |
void | ContentIncrementLockCount() |
Increment the content lock count of an object. | |
bool | ContentIsLocked() const |
Returns true if this object content is locked. | |
virtual void | ContentClear() |
Clear this object content from memory. | |
virtualKFbxPeripheral* | GetPeripheral() |
Retrieve the peripheral of that object. | |
Off-loading Serialization section | |
The methods in this section are, usually, called by a peripheral. | |
virtual bool | ContentWriteTo(KFbxStream&pStream) const |
Write the content of the object to the given stream. | |
virtual bool | ContentReadFrom(constKFbxStream&pStream) |
Read the content of the object from the given stream. | |
Selection management | |
virtual bool | GetSelected() |
virtual void | SetSelected(bool pSelected) |
Evaluation Info | |
virtual bool | Evaluate(KFbxProperty&pProperty,KFbxEvaluationInfoconst *pEvaluationInfo) |
General Object Connection and Relationship Management | |
bool | ConnectSrcObject(KFbxObject*pObject, kFbxConnectionType pType=eFbxConnectionNone) |
bool | IsConnectedSrcObject(constKFbxObject*pObject) const |
bool | DisconnectSrcObject(KFbxObject*pObject) |
bool | DisconnectAllSrcObject() |
bool | DisconnectAllSrcObject(KFbxCriteriaconst&pCriteria) |
bool | DisconnectAllSrcObject(kFbxClassIdpClassId) |
bool | DisconnectAllSrcObject(kFbxClassIdpClassId,KFbxCriteriaconst&pCriteria) |
int | GetSrcObjectCount() const |
int | GetSrcObjectCount(KFbxCriteriaconst&pCriteria) const |
int | GetSrcObjectCount(kFbxClassIdpClassId) const |
int | GetSrcObjectCount(kFbxClassIdpClassId,KFbxCriteriaconst&pCriteria) const |
KFbxObject* | GetSrcObject(int pIndex=0) const |
KFbxObject* | GetSrcObject(KFbxCriteriaconst&pCriteria, int pIndex=0) const |
KFbxObject* | GetSrcObject(kFbxClassIdpClassId, int pIndex=0) const |
KFbxObject* | GetSrcObject(kFbxClassIdpClassId,KFbxCriteriaconst&pCriteria, int pIndex=0) const |
KFbxObject* | FindSrcObject(const char *pName, int pStartIndex=0) const |
KFbxObject* | FindSrcObject(KFbxCriteriaconst&pCriteria, const char *pName, int pStartIndex=0) const |
KFbxObject* | FindSrcObject(kFbxClassIdpClassId, const char *pName, int pStartIndex=0) const |
KFbxObject* | FindSrcObject(kFbxClassIdpClassId,KFbxCriteriaconst&pCriteria, const char *pName, int pStartIndex=0) const |
template<class T> | |
bool | DisconnectAllSrcObject(T const *pFBX_TYPE) |
template<class T> | |
bool | DisconnectAllSrcObject(T const *pFBX_TYPE,KFbxCriteriaconst&pCriteria) |
template<class T> | |
int | GetSrcObjectCount(T const *pFBX_TYPE) const |
template<class T> | |
int | GetSrcObjectCount(T const *pFBX_TYPE,KFbxCriteriaconst&pCriteria) const |
template<class T> | |
T * | GetSrcObject(T const *pFBX_TYPE, int pIndex=0) const |
template<class T> | |
T * | GetSrcObject(T const *pFBX_TYPE,KFbxCriteriaconst&pCriteria, int pIndex=0) const |
template<class T> | |
T * | FindSrcObject(T const *pFBX_TYPE, const char *pName, int pStartIndex=0) const |
template<class T> | |
T * | FindSrcObject(T const *pFBX_TYPE,KFbxCriteriaconst&pCriteria, const char *pName, int pStartIndex=0) const |
bool | ConnectDstObject(KFbxObject*pObject, kFbxConnectionType pType=eFbxConnectionNone) |
bool | IsConnectedDstObject(constKFbxObject*pObject) const |
bool | DisconnectDstObject(KFbxObject*pObject) |
bool | DisconnectAllDstObject() |
bool | DisconnectAllDstObject(KFbxCriteriaconst&pCriteria) |
bool | DisconnectAllDstObject(kFbxClassIdpClassId) |
bool | DisconnectAllDstObject(kFbxClassIdpClassId,KFbxCriteriaconst&pCriteria) |
int | GetDstObjectCount() const |
int | GetDstObjectCount(KFbxCriteriaconst&pCriteria) const |
int | GetDstObjectCount(kFbxClassIdpClassId) const |
int | GetDstObjectCount(kFbxClassIdpClassId,KFbxCriteriaconst&pCriteria) const |
KFbxObject* | GetDstObject(int pIndex=0) const |
KFbxObject* | GetDstObject(KFbxCriteriaconst&pCriteria, int pIndex=0) const |
KFbxObject* | GetDstObject(kFbxClassIdpClassId, int pIndex=0) const |
KFbxObject* | GetDstObject(kFbxClassIdpClassId,KFbxCriteriaconst&pCriteria, int pIndex=0) const |
KFbxObject* | FindDstObject(const char *pName, int pStartIndex=0) const |
KFbxObject* | FindDstObject(KFbxCriteriaconst&pCriteria, const char *pName, int pStartIndex=0) const |
KFbxObject* | FindDstObject(kFbxClassIdpClassId, const char *pName, int pStartIndex=0) const |
KFbxObject* | FindDstObject(kFbxClassIdpClassId,KFbxCriteriaconst&pCriteria, const char *pName, int pStartIndex=0) const |
template<class T> | |
bool | DisconnectAllDstObject(T const *pFBX_TYPE) |
template<class T> | |
bool | DisconnectAllDstObject(T const *pFBX_TYPE,KFbxCriteriaconst&pCriteria) |
template<class T> | |
int | GetDstObjectCount(T const *pFBX_TYPE) const |
template<class T> | |
int | GetDstObjectCount(T const *pFBX_TYPE,KFbxCriteriaconst&pCriteria) const |
template<class T> | |
T * | GetDstObject(T const *pFBX_TYPE, int pIndex=0) const |
template<class T> | |
T * | GetDstObject(T const *pFBX_TYPE,KFbxCriteriaconst&pCriteria, int pIndex=0) const |
template<class T> | |
T * | FindDstObject(T const *pFBX_TYPE, const char *pName, int pStartIndex=0) const |
template<class T> | |
T * | FindDstObject(T const *pFBX_TYPE,KFbxCriteriaconst&pCriteria, const char *pName, int pStartIndex=0) const |
General Property Connection and Relationship Management | |
bool | ConnectSrcProperty(KFbxPropertyconst&pProperty) |
bool | IsConnectedSrcProperty(KFbxPropertyconst&pProperty) |
bool | DisconnectSrcProperty(KFbxPropertyconst&pProperty) |
int | GetSrcPropertyCount() const |
KFbxProperty | GetSrcProperty(int pIndex=0) const |
KFbxProperty | FindSrcProperty(const char *pName, int pStartIndex=0) const |
bool | ConnectDstProperty(KFbxPropertyconst&pProperty) |
bool | IsConnectedDstProperty(KFbxPropertyconst&pProperty) |
bool | DisconnectDstProperty(KFbxPropertyconst&pProperty) |
int | GetDstPropertyCount() const |
KFbxProperty | GetDstProperty(int pIndex=0) const |
KFbxProperty | FindDstProperty(const char *pName, int pStartIndex=0) const |
User data | |
void | SetUserDataPtr(KFbxObjectID const&pUserID, void *pUserData) |
void * | GetUserDataPtr(KFbxObjectID const&pUserID) const |
void | SetUserDataPtr(void *pUserData) |
void * | GetUserDataPtr() const |
Document Management | |
KFbxDocument* | GetDocument() const |
Get a pointer to the document containing this object. | |
KFbxDocument* | GetRootDocument() const |
Get a const pointer to the root document containing this object. | |
KFbxScene* | GetScene() const |
Get a pointer to the scene containing this object. | |
Logging. | |
void | EmitMessage(KFbxMessage *pMessage) const |
Emit a message in all available message emitter in the document or SDK manager. | |
Localization helper. | |
virtual const char * | Localize(const char *pID, const char *pDefault=NULL) const |
Localization helper function. | |
Application Implementation Management | |
KFbxLibrary* | GetParentLibrary(void) const |
Get a handle on the parent library if exists. | |
bool | AddImplementation(KFbxImplementation *pImplementation) |
Adds an implementation. | |
bool | RemoveImplementation(KFbxImplementation *pImplementation) |
Removes an implementation. | |
bool | HasDefaultImplementation(void) const |
Tells if this shading node has a default implementation. | |
KFbxImplementation * | GetDefaultImplementation(void) const |
Returns the default implementation. | |
bool | SetDefaultImplementation(KFbxImplementation *pImplementation) |
Sets the default implementation. | |
int | GetImplementationCount(constKFbxImplementationFilter*pCriteria=NULL) const |
Returns the number of implementations that correspond to a given criteria. | |
KFbxImplementation * | GetImplementation(int pIndex, constKFbxImplementationFilter*pCriteria=NULL) const |
Returns a handle on the (pIndex)th implementation that corresponds to the given criteria. | |
Object Storage&&Retrieval | |
virtualKString | GetUrl() const |
virtual bool | SetUrl(char *pUrl) |
virtual bool | PopulateLoadSettings(KFbxObject*pSettings, char *pFileName=0) |
virtual bool | Load(char *pFileName=0) |
virtual bool | PopulateSaveSettings(KFbxObject*pSettings, char *pFileName=0) |
virtual bool | Save(char *pFileName=0) |
Public Types | |
enum | ECloneType{ , eREFERENCE_CLONE, eDEEP_CLONE } |
Types of clones that can be created for KFbxObjects.More... |
enumECloneType |
Types of clones that can be created for KFbxObjects.
Definition at line151of filekfbxobject.h.
virtualKFbxObject* Clone | ( | KFbxObject* | pContainer, | |
KFbxObject::ECloneType | pCloneType | |||
) | const[virtual] |
Creates a clone of this object.
pContainer | The object, typically a document or scene, that will contain the new clone. Can be NULL. | |
pCloneType | The type of clone to create |
Reimplemented inKFbxControlSetPlug,KFbxIOSettings,KFbxGeometry,KFbxNodeAttribute,KFbxNurbsCurve, andKFbxProceduralGeometry.
bool IsAReferenceTo | ( | void | ) | const |
Check if this object is a reference clone of another.
KFbxObject* GetReferenceTo | ( | void | ) | const |
If this object is a reference clone, this method returns the original object from which this one was cloned.
bool IsReferencedBy | ( | void | ) | const |
Check if any objects were reference cloned from this one.
int GetReferencedByCount | ( | void | ) | const |
Get the number of objects that were reference cloned from this one.
KFbxObject* GetReferencedBy | ( | int | pIndex | ) | const |
Get a reference clone of this object.
pIndex | Valid values are [0,GetReferencedByCount()) |
void SetName | ( | char const * | pName | ) |
Set the name of the object.
pName | ANULL terminated string. |
char const* GetName | ( | ) | const |
Return the full name of the object.
NULL
terminated string.Referenced byKFbxNameFilter::Match().
KStringGetNameWithoutNameSpacePrefix | ( | ) | const |
Return the name of the object without the namespace qualifier.
KStringGetNameWithNameSpacePrefix | ( | ) | const |
Return the name of the object with the namespace qualifier.
void SetInitialName | ( | char const * | pName | ) |
Set the initial name of the object.
pName | ANULL terminated string. |
char const* GetInitialName | ( | ) | const |
Return the initial name of the object.
NULL
terminated string.KStringGetNameSpaceOnly | ( | ) |
Return the namespace of the object.
NULL
terminated string.void SetNameSpace | ( | KString | pNameSpace | ) |
Set the namespace of the object.
pNameSpace | Set the namespace as pNameSpace |
NULL
terminated string.KArrayTemplate<KString*>GetNameSpaceArray | ( | char | identifier | ) |
Return an array of all the namespace of the object.
identifier | The identifier of the namespace. |
NULL
terminated string.KStringGetNameOnly | ( | ) | const |
Get the name only (no namespace or prefix) of the object.
NULL
terminated string.KStringGetNameSpacePrefix | ( | ) | const |
Get the namespace qualifier.
staticKStringRemovePrefix | ( | char * | pName | ) | [static] |
Remove the prefix of pName.
pName | Whose prefix is removed. |
Strip the prefix of pName.
lName | Whose prefix is stripped. |
staticKStringStripPrefix | ( | const char * | pName | ) | [static] |
Strip the prefix of pName.
pName | Whose prefix is stripped. |
KFbxObjectID const&GetUniqueID | ( | ) | const |
Get the unique id of object.
int ContentUnload | ( | ) |
Unload this object content using the offload peripheral currently set in the document then flush it from memory.
int ContentLoad | ( | ) |
Load this object content using the offload peripheral currently set in the document.
bool ContentIsLoaded | ( | ) | const |
Returns true if this object content is currently loaded.
void ContentDecrementLockCount | ( | ) |
Decrement the content lock count of an object.
If the content lock count of an object is greater than 0, the content of the object is considered locked.
void ContentIncrementLockCount | ( | ) |
Increment the content lock count of an object.
If the content lock count of an object is greater than 0, the content of the object is considered locked.
bool ContentIsLocked | ( | ) | const |
Returns true if this object content is locked.
The content is locked if the content lock count is greater than 0
virtual void ContentClear | ( | ) | [protected, virtual] |
Clear this object content from memory.
This method has to be overridden in the derived classes.
virtualKFbxPeripheral* GetPeripheral | ( | ) | [protected, virtual] |
Retrieve the peripheral of that object.
Reimplemented inKFbxDocument.
virtual bool ContentWriteTo | ( | KFbxStream& | pStream | ) | const[virtual] |
Write the content of the object to the given stream.
pStream | The destination stream. |
Reimplemented inKFbxGeometryBase, andKFbxPatch.
virtual bool ContentReadFrom | ( | constKFbxStream& | pStream | ) | [virtual] |
Read the content of the object from the given stream.
pStream | The source streak. |
Reimplemented inKFbxGeometryBase, andKFbxPatch.
KFbxPropertyFindProperty | ( | const char * | pName, | |
bool | pCaseSensitive=true | |||
) | const[inline] |
Find a property using its name and its data type.
pName | The name of the property as aNULL terminated string. | |
pCaseSensitive |
Definition at line431of filekfbxobject.h.
KFbxDocument* GetDocument | ( | ) | const |
Get a pointer to the document containing this object.
NULL
if the object does not belong to any document.Referenced byKFbxDocument::IsARootDocument().
KFbxDocument* GetRootDocument | ( | ) | const |
Get a const pointer to the root document containing this object.
NULL
if the object does not belong to any document.KFbxScene* GetScene | ( | ) | const |
Get a pointer to the scene containing this object.
NULL
if the object does not belong to any scene.void EmitMessage | ( | KFbxMessage * | pMessage | ) | const |
Emit a message in all available message emitter in the document or SDK manager.
pMessage | the message to emit. Ownership is transfered, do not delete. |
virtual const char* Localize | ( | const char * | pID, | |
const char * | pDefault=NULL | |||
) | const[virtual] |
Localization helper function.
Calls the FBX SDK manager implementation. sub-classes which manage their own localization could over-ride this.
pID | the identifier for the text to localize. | |
pDefault | the default text. Uses pID if NULL. |
Reimplemented inKFbxLibrary.
KFbxLibrary* GetParentLibrary | ( | void | ) | const |
Get a handle on the parent library if exists.
Reimplemented inKFbxLibrary.
bool AddImplementation | ( | KFbxImplementation * | pImplementation | ) |
Adds an implementation.
pImplementation | a handle on an implementation |
bool RemoveImplementation | ( | KFbxImplementation * | pImplementation | ) |
Removes an implementation.
pImplementation | a handle on an implementation |
bool HasDefaultImplementation | ( | void | ) | const |
Tells if this shading node has a default implementation.
KFbxImplementation* GetDefaultImplementation | ( | void | ) | const |
Returns the default implementation.
bool SetDefaultImplementation | ( | KFbxImplementation * | pImplementation | ) |
Sets the default implementation.
pImplementation | a handle on an implementation |
int GetImplementationCount | ( | constKFbxImplementationFilter* | pCriteria=NULL | ) | const |
Returns the number of implementations that correspond to a given criteria.
pCriteria | filtering criteria that identifyies the kind of implementations to take into account. |
KFbxImplementation* GetImplementation | ( | int | pIndex, | |
constKFbxImplementationFilter* | pCriteria=NULL | |||
) | const |
Returns a handle on the (pIndex)th implementation that corresponds to the given criteria.
pIndex | ||
pCriteria | filtering criteria that identifyies the kind of implementations to take into account. |