FBX C++ API Reference
|
#include <fbxproperty.h>
Class to hold user properties.
Definition at line 37 of file fbxproperty.h.
Classes | |
class | FbxPropertyNameCache |
This is an internal class that you can use to build and clear the name map of properties. You can use the name map to speed up searching for property names. More... | |
Public Member Functions | |
bool | CopyValue (const FbxProperty &pProperty) |
Copies the value of a property. More... | |
Static Public Attributes | |
static const char * | sHierarchicalSeparator |
Hierarchical separator of properties. More... | |
Constructor and Destructor. | |
static FbxProperty | Create (const FbxProperty &pCompoundProperty, const FbxDataType &pDataType, const char *pName, const char *pLabel="", bool pCheckForDup=true, bool *pWasFound=((void *) 0)) |
Creates a runtime property on the specified property. More... | |
static FbxProperty | Create (FbxObject *pObject, const FbxDataType &pDataType, const char *pName, const char *pLabel="", bool pCheckForDup=true, bool *pWasFound=((void *) 0)) |
Creates a runtime property on the specified object. More... | |
static FbxProperty | CreateFrom (const FbxProperty &pCompoundProperty, FbxProperty &pFromProperty, bool pCheckForDup=true) |
Creates a dynamic property from another property on the specified property. More... | |
static FbxProperty | CreateFrom (FbxObject *pObject, FbxProperty &pFromProperty, bool pCheckForDup=true) |
Creates a dynamic property from another property on the specified object. More... | |
void | Destroy () |
Destroys a dynamic property. More... | |
void | DestroyRecursively () |
Destroys a dynamic property and its children. More... | |
void | DestroyChildren () |
Destroys children of a dynamic property. More... | |
FbxProperty () | |
Static property constructor. More... | |
FbxProperty (const FbxProperty &pProperty) | |
Copy constructor for properties. More... | |
FbxProperty (const FbxPropertyHandle &pPropertyHandle) | |
Copy constructor for properties. More... | |
~FbxProperty () | |
Static property destructor. More... | |
Property Identification. | |
FbxDataType | GetPropertyDataType () const |
Returns the property data type. More... | |
FbxString | GetName () const |
Returns the internal name of the property. More... | |
const char * | GetNameAsCStr () const |
Returns the internal name of the property. More... | |
FbxString | GetHierarchicalName () const |
Returns the hierarchical name of the property. More... | |
FbxString | GetLabel (bool pReturnNameIfEmpty=true) const |
Returns the property label. More... | |
void | SetLabel (const FbxString &pLabel) |
Sets a label for the property. More... | |
FbxObject * | GetFbxObject () const |
Returns the object that contains the property. More... | |
User data | |
void | SetUserTag (int pTag) |
Sets the user tag. More... | |
int | GetUserTag () |
Gets the user tag. More... | |
void | SetUserDataPtr (void *pUserData) |
Sets the user data pointer. More... | |
void * | GetUserDataPtr () |
Gets the user data pointer. More... | |
Property Flags. | |
void | ModifyFlag (FbxPropertyFlags::EFlags pFlag, bool pValue) |
Changes the property attribute. More... | |
bool | GetFlag (FbxPropertyFlags::EFlags pFlag) const |
Returns the state of the property attribute. More... | |
FbxPropertyFlags::EFlags | GetFlags () const |
Returns the state of all of the property attributes. More... | |
FbxPropertyFlags::EInheritType | GetFlagInheritType (FbxPropertyFlags::EFlags pFlag) const |
Returns the inheritance type of the given flag, similar to GetValueInheritType(). More... | |
bool | SetFlagInheritType (FbxPropertyFlags::EFlags pFlag, FbxPropertyFlags::EInheritType pType) |
Sets the inheritance type for the specific flag, similar to SetValueInheritType(). More... | |
bool | ModifiedFlag (FbxPropertyFlags::EFlags pFlag) const |
Checks if the property flag has been modified from its default value. More... | |
Assignment and comparison operators | |
FbxProperty & | operator= (const FbxProperty &pProperty) |
Assignment operator. More... | |
bool | operator== (const FbxProperty &pProperty) const |
Equivalence operator. More... | |
bool | operator!= (const FbxProperty &pProperty) const |
Non-equivalence operator. More... | |
bool | operator< (const FbxProperty &pProperty) const |
Lesser operator, used to sort property in map. More... | |
bool | operator> (const FbxProperty &pProperty) const |
Greater operator, used to sort property in map. More... | |
bool | operator== (int pValue) const |
Equivalence operator. More... | |
bool | operator!= (int pValue) const |
Non-equivalence operator. More... | |
bool | CompareValue (const FbxProperty &pProperty) const |
Compares this property's value to another property's value. More... | |
Value management. | |
static bool | HasDefaultValue (FbxProperty &pProperty) |
Checks if the specified property's value has changed from its default value. More... | |
template<class T > | |
T | Get () const |
Gets the value of the property. More... | |
template<class T > | |
bool | Set (const T &pValue) |
Sets the value of the property. More... | |
bool | IsValid () const |
Judges the property's validity. More... | |
FbxPropertyFlags::EInheritType | GetValueInheritType () const |
Queries the inheritance type of the property. More... | |
bool | SetValueInheritType (FbxPropertyFlags::EInheritType pType) |
Sets the inheritance type of the property. More... | |
bool | Modified () const |
Checks if the property's value has been modified from its default value. More... | |
Property Limits. | |
Property limits are provided for convenience if some applications desire to bound the range of possible values for a given type property. FBX will never apply these limits internally, however it will store and retrieve the limits values from files, and will assure that they are persistent in memory while the property exists. Notes:
| |
bool | SupportSetLimitAsDouble () const |
Returns whether setting limits as a double number on this property type is allowed. More... | |
bool | SetMinLimit (double pMin) |
Sets a minimum property value limit. More... | |
bool | HasMinLimit () const |
Returns whether a minimum limit exists, if it returns false, calling GetMinLimit() produces undefined behavior. More... | |
double | GetMinLimit () const |
Returns the minimum property value limit. More... | |
bool | HasMaxLimit () const |
Returns whether a maximum limit exists, if it returns false, calling GetMaxLimit() produces undefined behavior. More... | |
bool | SetMaxLimit (double pMax) |
Sets a maximum property value limit. More... | |
double | GetMaxLimit () const |
Returns the maximum property value. More... | |
bool | SetLimits (double pMin, double pMax) |
Sets the minimum and maximum value limit of the property. More... | |
Enum and property list | |
int | AddEnumValue (const char *pStringValue) |
Adds a string value at the end of the enumeration list. More... | |
void | InsertEnumValue (int pIndex, const char *pStringValue) |
Inserts a string value at the specific index. More... | |
int | GetEnumCount () const |
Returns the number of elements in the enumeration list. More... | |
void | SetEnumValue (int pIndex, const char *pStringValue) |
Sets a string value at the specific index. More... | |
void | RemoveEnumValue (int pIndex) |
Removes the string value at the specified index. More... | |
const char * | GetEnumValue (int pIndex) const |
Returns a string value at the specified index. More... | |
Hierarchical properties | |
bool | IsRoot () const |
Judges if this property is the root property. More... | |
bool | IsChildOf (const FbxProperty &pParent) const |
Judges whether this property is a child of the specified property. More... | |
bool | IsDescendentOf (const FbxProperty &pAncestor) const |
Judges whether this property is a descendant of the specified property. More... | |
FbxProperty | GetParent () const |
Returns the parent property of this property. More... | |
FbxProperty | GetChild () const |
Returns the first child of this property. More... | |
FbxProperty | GetSibling () const |
Returns the sibling of this property. More... | |
FbxProperty | GetFirstDescendent () const |
Returns the first property that is a descendant of this property. More... | |
FbxProperty | GetNextDescendent (const FbxProperty &pProperty) const |
Returns the property that follows pProperty that is a descendant of this property. More... | |
FbxProperty | Find (const char *pName, bool pCaseSensitive=true) const |
Searches a property using its name. More... | |
FbxProperty | Find (const char *pName, const FbxDataType &pDataType, bool pCaseSensitive=true) const |
Searches a property using its name and data type. More... | |
FbxProperty | FindHierarchical (const char *pName, bool pCaseSensitive=true) const |
Searches a property using its full name. More... | |
FbxProperty | FindHierarchical (const char *pName, const FbxDataType &pDataType, bool pCaseSensitive=true) const |
Searches a property using its full name and data type. More... | |
Optimizations | |
void | BeginCreateOrFindProperty () |
Internal function for building a property name map. More... | |
void | EndCreateOrFindProperty () |
Internal function for clearing the property name map. More... | |
Animation Curve Management | |
FbxAnimEvaluator * | GetAnimationEvaluator () const |
Retrieve the proper animation evaluator to use for this property. More... | |
bool | IsAnimated (FbxAnimLayer *pAnimLayer=((void *) 0)) const |
Find out if the property is animated: has a curve node with curves. More... | |
template<class T > | |
T | EvaluateValue (const FbxTime &pTime=FbxTime((0x7fffffffffffffffLL)), bool pForceEval=false) |
Evaluate the value of a property if it has animation and return the result as the template type. More... | |
FbxPropertyValue & | EvaluateValue (const FbxTime &pTime=FbxTime((0x7fffffffffffffffLL)), bool pForceEval=false) |
Evaluate the value of a property if it has animation and return the result. More... | |
FbxAnimCurveNode * | CreateCurveNode (FbxAnimLayer *pAnimLayer) |
Creates a FbxAnimCurveNode on the specified layer. More... | |
FbxAnimCurveNode * | GetCurveNode (bool pCreate=false) |
Get the property's animation curve node on the default animation stack and base layer. More... | |
FbxAnimCurveNode * | GetCurveNode (FbxAnimStack *pAnimStack, bool pCreate=false) |
Get the property's animation curve node on the specified animation stack, using its base layer. More... | |
FbxAnimCurveNode * | GetCurveNode (FbxAnimLayer *pAnimLayer, bool pCreate=false) |
Get the property's animation curve node on the specified animation layer. More... | |
FbxAnimCurve * | GetCurve (FbxAnimLayer *pAnimLayer, bool pCreate=false) |
Get the FbxAnimCurve from the specified animation layer. More... | |
FbxAnimCurve * | GetCurve (FbxAnimLayer *pAnimLayer, const char *pChannel, bool pCreate=false) |
Get the FbxAnimCurve from the specified animation layer. More... | |
FbxAnimCurve * | GetCurve (FbxAnimLayer *pAnimLayer, const char *pName, const char *pChannel, bool pCreate) |
Get the FbxAnimCurve of the specified channel from the specified animation layer. More... | |
General Object Connection and Relationship Management | |
bool | ConnectSrcObject (FbxObject *pObject, FbxConnection::EType pType=FbxConnection::eNone) |
Connects this property to one source object. More... | |
bool | IsConnectedSrcObject (const FbxObject *pObject) const |
Judges whether this property connects with the source object. More... | |
bool | DisconnectSrcObject (FbxObject *pObject) |
Disconnects this property from one source object. More... | |
bool | DisconnectAllSrcObject () |
Disconnects this property from all the source objects. More... | |
bool | DisconnectAllSrcObject (const FbxCriteria &pCriteria) |
Disconnects this property from all source objects that satisfy a given criteria. More... | |
int | GetSrcObjectCount () const |
Returns the number of source objects with which this property connects. More... | |
int | GetSrcObjectCount (const FbxCriteria &pCriteria) const |
Returns the number of source objects that satisfy the given criteria with which this property connects. More... | |
FbxObject * | GetSrcObject (const int pIndex=0) const |
Returns the source object at the specified index with which this property connects. More... | |
FbxObject * | GetSrcObject (const FbxCriteria &pCriteria, const int pIndex=0) const |
Returns the source object that satisfies the criteria at the specified index with which this property connects. More... | |
FbxObject * | FindSrcObject (const char *pName, const int pStartIndex=0) const |
Searches the source object with the specified name, starting with the specified index. More... | |
FbxObject * | FindSrcObject (const FbxCriteria &pCriteria, const char *pName, const int pStartIndex=0) const |
Searches the source object with the specified name which satisfies the given criteria, starting with the specified index. More... | |
template<class T > | |
bool | DisconnectAllSrcObject () |
Disconnects this property from all source objects of the specified class type. More... | |
template<class T > | |
bool | DisconnectAllSrcObject (const FbxCriteria &pCriteria) |
Disconnects this property from all source objects which are of the specified class type and satisfy the given criteria. More... | |
template<class T > | |
int | GetSrcObjectCount () const |
Returns the number of source objects of a specific class type with which this property connects. More... | |
template<class T > | |
int | GetSrcObjectCount (const FbxCriteria &pCriteria) const |
Returns the number of source objects which are of the specified class type and satisfy the given criteria with which this property connects. More... | |
template<class T > | |
T * | GetSrcObject (const int pIndex=0) const |
Returns the source object of the specified class type at the specified index. More... | |
template<class T > | |
T * | GetSrcObject (const FbxCriteria &pCriteria, const int pIndex=0) const |
Returns the source object which is of the specified class type and satisfies the given criteria at the specified index. More... | |
template<class T > | |
T * | FindSrcObject (const char *pName, const int pStartIndex=0) const |
Searches the source object with the specified name which is of the specified class type, starting with the specified index. More... | |
template<class T > | |
T * | FindSrcObject (const FbxCriteria &pCriteria, const char *pName, const int pStartIndex=0) const |
Searches the source object with the specified name which is of the specified class type and satisfies the given criteria, starting with the specified index. More... | |
bool | ConnectDstObject (FbxObject *pObject, FbxConnection::EType pType=FbxConnection::eNone) |
Connects this property to one destination object. More... | |
bool | IsConnectedDstObject (const FbxObject *pObject) const |
Judges whether this property connects with the destination object. More... | |
bool | DisconnectDstObject (FbxObject *pObject) |
Disconnects this property from the destination object. More... | |
bool | DisconnectAllDstObject () |
Disconnects this property from all the destination objects. More... | |
bool | DisconnectAllDstObject (const FbxCriteria &pCriteria) |
Disconnects this property from all the destination objects that satisfy given criteria. More... | |
int | GetDstObjectCount () const |
Returns the number of destination objects with which this property connects. More... | |
int | GetDstObjectCount (const FbxCriteria &pCriteria) const |
Returns the number of destination objects that satisfy the given criteria with which this property connects. More... | |
FbxObject * | GetDstObject (const int pIndex=0) const |
Returns the destination object at the specified index with which this property connects. More... | |
FbxObject * | GetDstObject (const FbxCriteria &pCriteria, const int pIndex=0) const |
Returns the destination object that satisfies given criteria at the specified index with which this property connects. More... | |
FbxObject * | FindDstObject (const char *pName, const int pStartIndex=0) const |
Searches the destination object with the specified name, starting with the specified index. More... | |
FbxObject * | FindDstObject (const FbxCriteria &pCriteria, const char *pName, const int pStartIndex=0) const |
Searches the destination object with the specified name which satisfies the given criteria, starting with the specified index. More... | |
template<class T > | |
bool | DisconnectAllDstObject () |
Disconnects this property from all the destination objects of the specified class type. More... | |
template<class T > | |
bool | DisconnectAllDstObject (const FbxCriteria &pCriteria) |
Disconnects this property from all the destination objects which are of the specified class type and satisfy the given criteria. More... | |
template<class T > | |
int | GetDstObjectCount () const |
Returns the number of destination objects of the specified class type with which this property connects. More... | |
template<class T > | |
int | GetDstObjectCount (const FbxCriteria &pCriteria) const |
Returns the number of destination objects which are of the specified class type and satisfy the given criteria with which this property connects. More... | |
template<class T > | |
T * | GetDstObject (const int pIndex=0) const |
Returns the destination object of the specified class type at the specified index with which this property connects. More... | |
template<class T > | |
T * | GetDstObject (const FbxCriteria &pCriteria, const int pIndex=0) const |
Returns the destination object which is of the specified class type and satisfies the given criteria at the specified index with which this property connects. More... | |
template<class T > | |
T * | FindDstObject (const char *pName, const int pStartIndex=0) const |
Searches the destination object with the specified name which is of the specified class type, starting with the specified index. More... | |
template<class T > | |
T * | FindDstObject (const FbxCriteria &pCriteria, const char *pName, const int pStartIndex=0) const |
Searches the destination object with the specified name which is of the specified class type and satisfies the given criteria, starting with the specified index. More... | |
General Property Connection and Relationship Management | |
bool | ConnectSrcProperty (const FbxProperty &pProperty) |
Connects this property to a source property. More... | |
bool | IsConnectedSrcProperty (const FbxProperty &pProperty) |
Judges whether this property connects with the specified source property. More... | |
bool | DisconnectSrcProperty (const FbxProperty &pProperty) |
Disconnects this property from the specified source property. More... | |
int | GetSrcPropertyCount () const |
Returns the number of source properties with which this property connects. More... | |
bool | ConnectDstProperty (const FbxProperty &pProperty) |
Connects this property to a destination property. More... | |
bool | IsConnectedDstProperty (const FbxProperty &pProperty) |
Judges if this property connects with the specified destination property. More... | |
bool | DisconnectDstProperty (const FbxProperty &pProperty) |
Disconnects this property from the specified destination property. More... | |
int | GetDstPropertyCount () const |
Returns the number of destination properties with which this property connects. More... | |
void | ClearConnectCache () |
Clears the connection cache of this property, this cache is used to store the connections that satisfy the given criteria. More... | |
FbxProperty | GetSrcProperty (const int pIndex=0) const |
Returns the source property at the specified index with which this property connects. More... | |
FbxProperty | FindSrcProperty (const char *pName, const int pStartIndex=0) const |
Searches the source property with the specified name, starting with the specified index with which this property connects. More... | |
FbxProperty | GetDstProperty (const int pIndex=0) const |
Returns the destination property at the specified index with which this property connects. More... | |
FbxProperty | FindDstProperty (const char *pName, const int pStartIndex=0) const |
Searches the destination property with the specified name, starting with the specified index with which this property connects. More... | |
FbxProperty | ( | ) |
Static property constructor.
FbxProperty | ( | const FbxProperty & | pProperty | ) |
Copy constructor for properties.
pProperty | The property copied to this one. |
FbxProperty | ( | const FbxPropertyHandle & | pPropertyHandle | ) |
Copy constructor for properties.
pPropertyHandle | The property handle copied to this property handle. |
~FbxProperty | ( | ) |
Static property destructor.
|
static |
Creates a runtime property on the specified property.
pCompoundProperty | The parent property of this property. |
pDataType | The data type of this property. |
pName | The property name. |
pLabel | The label of this property. |
pCheckForDup | If true , parent property checks if it has a child property already with pName, if false , the new property is created. |
pWasFound | If pCheckForDup is true , this flag is set to indicate whether the pCompoundProperty already has a child property with pName. |
|
static |
Creates a runtime property on the specified object.
pObject | The object on which the property will be created. |
pDataType | The data type of this property. |
pName | The property name. |
pLabel | The label of this property. |
pCheckForDup | If true , pObject checks whether it already has a property with pName, if false , a new property is created. |
pWasFound | If pCheckForDup is true , this flag is set to indicate whether the pObject already has a child property with pName. |
|
static |
Creates a dynamic property from another property on the specified property.
pCompoundProperty | The parent property of this property. |
pFromProperty | The property copied by this property. |
pCheckForDup | If true , parent property checks if it already has a child property that has the name of pFromProperty, if false , a new property is created. |
|
static |
Creates a dynamic property from another property on the specified object.
pObject | The object that contains this property. |
pFromProperty | The property copied by this property. |
pCheckForDup | If true , pObject checks if it already has a property that has the name of pFromProperty, if false , a new property is created. |
void Destroy | ( | ) |
Destroys a dynamic property.
void DestroyRecursively | ( | ) |
Destroys a dynamic property and its children.
void DestroyChildren | ( | ) |
Destroys children of a dynamic property.
FbxDataType GetPropertyDataType | ( | ) | const |
Returns the property data type.
FbxString GetName | ( | ) | const |
Returns the internal name of the property.
const char* GetNameAsCStr | ( | ) | const |
Returns the internal name of the property.
FbxString GetHierarchicalName | ( | ) | const |
Returns the hierarchical name of the property.
FbxString GetLabel | ( | bool | pReturnNameIfEmpty = true | ) | const |
Returns the property label.
pReturnNameIfEmpty | If true , lets this method return the internal name if the label is empty. |
true
and the label has not been defined. void SetLabel | ( | const FbxString & | pLabel | ) |
Sets a label for the property.
pLabel | Label string. |
FbxObject* GetFbxObject | ( | ) | const |
Returns the object that contains the property.
void SetUserTag | ( | int | pTag | ) |
Sets the user tag.
pTag | The user tag to be set. |
int GetUserTag | ( | ) |
Gets the user tag.
void SetUserDataPtr | ( | void * | pUserData | ) |
Sets the user data pointer.
pUserData | The user data pointer. |
void* GetUserDataPtr | ( | ) |
Gets the user data pointer.
void ModifyFlag | ( | FbxPropertyFlags::EFlags | pFlag, |
bool | pValue | ||
) |
Changes the property attribute.
pFlag | Property attribute identifier. |
pValue | New state of pFlag. |
bool GetFlag | ( | FbxPropertyFlags::EFlags | pFlag | ) | const |
Returns the state of the property attribute.
pFlag | Property attribute identifier. |
FbxPropertyFlags::EFlags GetFlags | ( | ) | const |
Returns the state of all of the property attributes.
FbxPropertyFlags::EInheritType GetFlagInheritType | ( | FbxPropertyFlags::EFlags | pFlag | ) | const |
Returns the inheritance type of the given flag, similar to GetValueInheritType().
pFlag | The flag to be queried. |
bool SetFlagInheritType | ( | FbxPropertyFlags::EFlags | pFlag, |
FbxPropertyFlags::EInheritType | pType | ||
) |
Sets the inheritance type for the specific flag, similar to SetValueInheritType().
pFlag | The flag to be set. |
pType | The inheritance type to be set. |
True
on success, false
otherwise. bool ModifiedFlag | ( | FbxPropertyFlags::EFlags | pFlag | ) | const |
Checks if the property flag has been modified from its default value.
pFlag | The flag to be queried. |
True
if the value of this property has changed, false
otherwise FbxProperty& operator= | ( | const FbxProperty & | pProperty | ) |
Assignment operator.
pProperty | The property assigned to this property. |
bool operator== | ( | const FbxProperty & | pProperty | ) | const |
Equivalence operator.
pProperty | The property compared to this property. |
True
if equal, false
otherwise. bool operator!= | ( | const FbxProperty & | pProperty | ) | const |
Non-equivalence operator.
pProperty | The property compared to this property. |
True
if unequal, false
otherwise. bool operator< | ( | const FbxProperty & | pProperty | ) | const |
Lesser operator, used to sort property in map.
pProperty | The property compared to this property. |
true
if less, false
otherwise. bool operator> | ( | const FbxProperty & | pProperty | ) | const |
Greater operator, used to sort property in map.
pProperty | The property compared to this property. |
true
if greater, false
otherwise.
|
inline |
Equivalence operator.
pValue | The value compared to this property. |
True
if this property is valid and pValue doesn't equal zero, or this property is invalid and pValue equals zero, false
otherwise. Definition at line 260 of file fbxproperty.h.
|
inline |
Non-equivalence operator.
pValue | The value compared to this property. |
True
if this property is valid and pValue equals zero, or this property is invalid and pValue doesn't equal zero, false
otherwise. Definition at line 266 of file fbxproperty.h.
bool CompareValue | ( | const FbxProperty & | pProperty | ) | const |
Compares this property's value to another property's value.
pProperty | The property whose value is compared with this property's value. |
True
if equal, false
otherwise. bool CopyValue | ( | const FbxProperty & | pProperty | ) |
Copies the value of a property.
pProperty | The property from which to derive the value. |
True
if value has been copied successfully, false
otherwise.
|
inline |
Gets the value of the property.
T | The data type of the value. |
Definition at line 289 of file fbxproperty.h.
|
inline |
Sets the value of the property.
pValue | The new value |
True
if type is compatible and the value is set successfully, false
otherwise. Definition at line 295 of file fbxproperty.h.
bool IsValid | ( | ) | const |
Judges the property's validity.
True
if this property is valid, false
otherwise.
|
static |
Checks if the specified property's value has changed from its default value.
pProperty | Property that is tested. |
True
if the property value is still the default, false
otherwise. FbxPropertyFlags::EInheritType GetValueInheritType | ( | ) | const |
Queries the inheritance type of the property.
Use this method to determine if this property's value is overridden from the default value, or from the referenced object, if this object is a clone.
bool SetValueInheritType | ( | FbxPropertyFlags::EInheritType | pType | ) |
Sets the inheritance type of the property.
Use the method to explicitly override the default value of the property, or the referenced object's property value, if this object is a clone.
You can also use this to explicitly inherit the default value of the property, or the referenced object's property value, if this object is a clone.
pType | The new inheritance type. |
True
on success, false
otherwise. bool Modified | ( | ) | const |
Checks if the property's value has been modified from its default value.
True
if the value of the property has changed, false
otherwise. true
. If the inheritance type of the property's value is eInherit, that means the property's value inherits the referenced object's property value, so the property's value is not modified and it returns false
. bool SupportSetLimitAsDouble | ( | ) | const |
Returns whether setting limits as a double number on this property type is allowed.
True
if allowed, false
otherwise. bool SetMinLimit | ( | double | pMin | ) |
Sets a minimum property value limit.
pMin | Minimum value allowed. |
True
if the limit has been set, false
otherwise. bool HasMinLimit | ( | ) | const |
Returns whether a minimum limit exists, if it returns false, calling GetMinLimit() produces undefined behavior.
True
when a minimum limit exists, false
otherwise. double GetMinLimit | ( | ) | const |
Returns the minimum property value limit.
bool HasMaxLimit | ( | ) | const |
Returns whether a maximum limit exists, if it returns false, calling GetMaxLimit() produces undefined behavior.
True
when a maximum limit exists, false
otherwise. bool SetMaxLimit | ( | double | pMax | ) |
Sets a maximum property value limit.
pMax | Maximum value allowed. |
True
if the limit has been set, false
otherwise. double GetMaxLimit | ( | ) | const |
Returns the maximum property value.
bool SetLimits | ( | double | pMin, |
double | pMax | ||
) |
Sets the minimum and maximum value limit of the property.
pMin | Minimum value allowed. |
pMax | Maximum value allowed. |
True
if both the min and max limit have been set, false
otherwise. int AddEnumValue | ( | const char * | pStringValue | ) |
Adds a string value at the end of the enumeration list.
pStringValue | The string value to be added. |
void InsertEnumValue | ( | int | pIndex, |
const char * | pStringValue | ||
) |
Inserts a string value at the specific index.
pIndex | Zero bound index. |
pStringValue | The string value to be inserted. |
int GetEnumCount | ( | ) | const |
Returns the number of elements in the enumeration list.
void SetEnumValue | ( | int | pIndex, |
const char * | pStringValue | ||
) |
Sets a string value at the specific index.
pIndex | Zero bound index. |
pStringValue | The string value at the specific index. |
void RemoveEnumValue | ( | int | pIndex | ) |
Removes the string value at the specified index.
pIndex | Index of the string value to be removed. |
const char* GetEnumValue | ( | int | pIndex | ) | const |
Returns a string value at the specified index.
pIndex | Zero bound index. |
|
inline |
Judges if this property is the root property.
True
when this property is a root property, false
otherwise. Definition at line 468 of file fbxproperty.h.
|
inline |
Judges whether this property is a child of the specified property.
pParent | The specified property. |
True
when this property is a child of the specified property, false
otherwise. Definition at line 474 of file fbxproperty.h.
|
inline |
Judges whether this property is a descendant of the specified property.
pAncestor | The specified property. |
True
when this property is a descendant of the specified property, false
otherwise. Definition at line 480 of file fbxproperty.h.
|
inline |
Returns the parent property of this property.
Definition at line 485 of file fbxproperty.h.
|
inline |
Returns the first child of this property.
Definition at line 490 of file fbxproperty.h.
|
inline |
Returns the sibling of this property.
Definition at line 495 of file fbxproperty.h.
|
inline |
Returns the first property that is a descendant of this property.
Definition at line 500 of file fbxproperty.h.
|
inline |
Returns the property that follows pProperty that is a descendant of this property.
pProperty | The last found descendant. |
Definition at line 506 of file fbxproperty.h.
|
inline |
Searches a property using its name.
pName | The name of the property as a NULL terminated string. |
pCaseSensitive | Whether the name is case-sensitive. |
Definition at line 514 of file fbxproperty.h.
|
inline |
Searches a property using its name and data type.
pName | The name of the property as a NULL terminated string. |
pDataType | The data type of the property. |
pCaseSensitive | Whether the name is case-sensitive. |
Definition at line 523 of file fbxproperty.h.
|
inline |
Searches a property using its full name.
pName | The full name of the property as a NULL terminated string. |
pCaseSensitive | whether the name is case-sensitive. |
Definition at line 531 of file fbxproperty.h.
|
inline |
Searches a property using its full name and data type.
pName | The full name of the property as a NULL terminated string. |
pDataType | The data type of the property. |
pCaseSensitive | whether the name is case-sensitive. |
Definition at line 540 of file fbxproperty.h.
|
inline |
Internal function for building a property name map.
Definition at line 548 of file fbxproperty.h.
|
inline |
Internal function for clearing the property name map.
Definition at line 551 of file fbxproperty.h.
FbxAnimEvaluator* GetAnimationEvaluator | ( | ) | const |
Retrieve the proper animation evaluator to use for this property.
bool IsAnimated | ( | FbxAnimLayer * | pAnimLayer = ((void *) 0) | ) | const |
Find out if the property is animated: has a curve node with curves.
pAnimLayer | The animation layer to test for curve presence. Set to NULL if you want to use the default animation layer of the default animation stack. |
true
if the property is animated. T EvaluateValue | ( | const FbxTime & | pTime = FbxTime((0x7fffffffffffffffLL)) , |
bool | pForceEval = false |
||
) |
Evaluate the value of a property if it has animation and return the result as the template type.
pTime | The time used for evaluate. If FBXSDK_TIME_INFINITE is used, this returns the default value, without animation curves evaluation. |
pForceEval | Force the evaluator to refresh the evaluation state cache even if its already up-to-date. |
FbxPropertyValue& EvaluateValue | ( | const FbxTime & | pTime = FbxTime((0x7fffffffffffffffLL)) , |
bool | pForceEval = false |
||
) |
Evaluate the value of a property if it has animation and return the result.
pTime | The time used for evaluate. If FBXSDK_TIME_INFINITE is used, this returns the default value, without animation curves evaluation. |
pForceEval | Force the evaluator to refresh the evaluation state cache even if its already up-to-date. |
FbxAnimCurveNode* CreateCurveNode | ( | FbxAnimLayer * | pAnimLayer | ) |
Creates a FbxAnimCurveNode on the specified layer.
pAnimLayer | The animation layer the FbxAnimCurveNode object is attached to. |
true
. FbxAnimCurveNode* GetCurveNode | ( | bool | pCreate = false | ) |
Get the property's animation curve node on the default animation stack and base layer.
pCreate | If true , create the animation curve node and return it if none were found. |
FbxAnimCurveNode* GetCurveNode | ( | FbxAnimStack * | pAnimStack, |
bool | pCreate = false |
||
) |
Get the property's animation curve node on the specified animation stack, using its base layer.
pAnimStack | The animation stack to use to get or create the property's animation curve node. NULL can be passed to automatically specify the default animation stack. |
pCreate | If true , create the animation curve node and return it if none were found. |
FbxAnimCurveNode* GetCurveNode | ( | FbxAnimLayer * | pAnimLayer, |
bool | pCreate = false |
||
) |
Get the property's animation curve node on the specified animation layer.
pAnimLayer | The animation layer to use to get or create the property's animation curve node. Cannot be NULL. |
pCreate | If true , create the animation curve node and return it if none were found. |
|
inline |
Get the FbxAnimCurve from the specified animation layer.
This function expects to find a FbxAnimCurveNode object with the same name as the property and it attempts to retrieve the FbxAnimCurve from it.
pAnimLayer | The searched animation layer. |
pCreate | Create a FbxAnimCurve if not found. |
false
and the curve is not found. Definition at line 636 of file fbxproperty.h.
|
inline |
Get the FbxAnimCurve from the specified animation layer.
This function expects to find a FbxAnimCurveNode object with the same name as the property and it attempts to retrieve the FbxAnimCurve from it.
pAnimLayer | The searched animation layer. |
pChannel | Name of the channel we are looking for the animation curve. If NULL use the first defined channel. |
pCreate | Create a FbxAnimCurve if not found. |
false
and the curve is not found. Definition at line 651 of file fbxproperty.h.
FbxAnimCurve* GetCurve | ( | FbxAnimLayer * | pAnimLayer, |
const char * | pName, | ||
const char * | pChannel, | ||
bool | pCreate | ||
) |
Get the FbxAnimCurve of the specified channel from the specified animation layer.
This function looks for the FbxAnimCurveNode named pName and the channel pChannel. It will retrieves the FbxAnimCurve from it.
pAnimLayer | The searched animation layer. |
pName | Name of the curve node. It is an error to leave this field empty. |
pChannel | Name of the channel we are looking for the animation curve. If NULL use the first defined channel. |
pCreate | Create a FbxAnimCurve if not found. |
false
and the curve is not found. bool ConnectSrcObject | ( | FbxObject * | pObject, |
FbxConnection::EType | pType = FbxConnection::eNone |
||
) |
Connects this property to one source object.
pObject | The source object to which this property connects. |
pType | The connection type between the property and the object. |
True
on success, false
otherwise. bool IsConnectedSrcObject | ( | const FbxObject * | pObject | ) | const |
Judges whether this property connects with the source object.
pObject | The source object. |
True
if this property connects with the source object, false
otherwise. bool DisconnectSrcObject | ( | FbxObject * | pObject | ) |
Disconnects this property from one source object.
pObject | The source object from which this property will be disconnected. |
True
on success, false
otherwise. bool DisconnectAllSrcObject | ( | ) |
Disconnects this property from all the source objects.
True
if it disconnects all the source objects successfully, false
otherwise. bool DisconnectAllSrcObject | ( | const FbxCriteria & | pCriteria | ) |
Disconnects this property from all source objects that satisfy a given criteria.
pCriteria | The given criteria. |
True
if it disconnects all the source objects successfully, false
otherwise. int GetSrcObjectCount | ( | ) | const |
Returns the number of source objects with which this property connects.
int GetSrcObjectCount | ( | const FbxCriteria & | pCriteria | ) | const |
Returns the number of source objects that satisfy the given criteria with which this property connects.
pCriteria | The given criteria. |
FbxObject* GetSrcObject | ( | const int | pIndex = 0 | ) | const |
Returns the source object at the specified index with which this property connects.
pIndex | The specified index whose default value is 0. |
FbxObject* GetSrcObject | ( | const FbxCriteria & | pCriteria, |
const int | pIndex = 0 |
||
) | const |
Returns the source object that satisfies the criteria at the specified index with which this property connects.
pCriteria | The given criteria. |
pIndex | The specified index whose default value is 0. |
FbxObject* FindSrcObject | ( | const char * | pName, |
const int | pStartIndex = 0 |
||
) | const |
Searches the source object with the specified name, starting with the specified index.
pName | The object name. |
pStartIndex | The start index. |
FbxObject* FindSrcObject | ( | const FbxCriteria & | pCriteria, |
const char * | pName, | ||
const int | pStartIndex = 0 |
||
) | const |
Searches the source object with the specified name which satisfies the given criteria, starting with the specified index.
pCriteria | The given criteria. |
pName | The object name. |
pStartIndex | The start index. |
|
inline |
Disconnects this property from all source objects of the specified class type.
T | The specified class type. |
True
if it disconnects all source objects successfully, false
otherwise. Definition at line 749 of file fbxproperty.h.
|
inline |
Disconnects this property from all source objects which are of the specified class type and satisfy the given criteria.
T | The specified class type. |
pCriteria | The given criteria. |
True
if it disconnects all source objects successfully, false
otherwise. Definition at line 756 of file fbxproperty.h.
|
inline |
Returns the number of source objects of a specific class type with which this property connects.
T | The specified class type. |
Definition at line 762 of file fbxproperty.h.
|
inline |
Returns the number of source objects which are of the specified class type and satisfy the given criteria with which this property connects.
T | The specified class type. |
pCriteria | The given criteria. |
Definition at line 769 of file fbxproperty.h.
|
inline |
Returns the source object of the specified class type at the specified index.
T | The specified class type. |
pIndex | The specified index whose default value is 0. |
Definition at line 776 of file fbxproperty.h.
|
inline |
Returns the source object which is of the specified class type and satisfies the given criteria at the specified index.
T | The specified class type. |
pCriteria | The given criteria. |
pIndex | The specified index whose default value is 0. |
Definition at line 784 of file fbxproperty.h.
|
inline |
Searches the source object with the specified name which is of the specified class type, starting with the specified index.
T | The specified class type. |
pName | The object name. |
pStartIndex | The start index. |
Definition at line 792 of file fbxproperty.h.
|
inline |
Searches the source object with the specified name which is of the specified class type and satisfies the given criteria, starting with the specified index.
T | The specified class type. |
pCriteria | The given criteria. |
pName | The object name. |
pStartIndex | The start index. |
Definition at line 801 of file fbxproperty.h.
bool ConnectDstObject | ( | FbxObject * | pObject, |
FbxConnection::EType | pType = FbxConnection::eNone |
||
) |
Connects this property to one destination object.
pObject | The destination object with which this property connects. |
pType | The connection type between this property and the object. |
True
on success, false
otherwise. bool IsConnectedDstObject | ( | const FbxObject * | pObject | ) | const |
Judges whether this property connects with the destination object.
pObject | The destination object. |
True
if this property connects with the destination object, false
otherwise. bool DisconnectDstObject | ( | FbxObject * | pObject | ) |
Disconnects this property from the destination object.
pObject | The destination object from which this property disconnects from. |
True
on success, false
otherwise. bool DisconnectAllDstObject | ( | ) |
Disconnects this property from all the destination objects.
True
if it disconnects all the destination objects successfully, false
otherwise. bool DisconnectAllDstObject | ( | const FbxCriteria & | pCriteria | ) |
Disconnects this property from all the destination objects that satisfy given criteria.
pCriteria | The given criteria. |
True
if it disconnects all the destination objects successfully, false
otherwise. int GetDstObjectCount | ( | ) | const |
Returns the number of destination objects with which this property connects.
int GetDstObjectCount | ( | const FbxCriteria & | pCriteria | ) | const |
Returns the number of destination objects that satisfy the given criteria with which this property connects.
pCriteria | The given criteria. |
FbxObject* GetDstObject | ( | const int | pIndex = 0 | ) | const |
Returns the destination object at the specified index with which this property connects.
pIndex | The specified index whose default value is 0. |
FbxObject* GetDstObject | ( | const FbxCriteria & | pCriteria, |
const int | pIndex = 0 |
||
) | const |
Returns the destination object that satisfies given criteria at the specified index with which this property connects.
pCriteria | The given criteria. |
pIndex | The specified index whose default value is 0. |
FbxObject* FindDstObject | ( | const char * | pName, |
const int | pStartIndex = 0 |
||
) | const |
Searches the destination object with the specified name, starting with the specified index.
pName | The object name. |
pStartIndex | The start index. |
FbxObject* FindDstObject | ( | const FbxCriteria & | pCriteria, |
const char * | pName, | ||
const int | pStartIndex = 0 |
||
) | const |
Searches the destination object with the specified name which satisfies the given criteria, starting with the specified index.
pCriteria | The given criteria. |
pName | The object name. |
pStartIndex | The start index. |
|
inline |
Disconnects this property from all the destination objects of the specified class type.
T | The specified class type. |
True
if it disconnects all the destination objects successfully, false
otherwise. Definition at line 876 of file fbxproperty.h.
|
inline |
Disconnects this property from all the destination objects which are of the specified class type and satisfy the given criteria.
T | The specified class type. |
pCriteria | The given criteria. |
True
if it disconnects all the destination objects successfully, false
otherwise. Definition at line 883 of file fbxproperty.h.
|
inline |
Returns the number of destination objects of the specified class type with which this property connects.
T | The specified class type. |
Definition at line 889 of file fbxproperty.h.
|
inline |
Returns the number of destination objects which are of the specified class type and satisfy the given criteria with which this property connects.
T | The specified class type. |
pCriteria | The given criteria. |
Definition at line 896 of file fbxproperty.h.
|
inline |
Returns the destination object of the specified class type at the specified index with which this property connects.
T | The specified class type. |
pIndex | The specified index whose default value is 0. |
Definition at line 903 of file fbxproperty.h.
|
inline |
Returns the destination object which is of the specified class type and satisfies the given criteria at the specified index with which this property connects.
T | The specified class type. |
pCriteria | The given criteria. |
pIndex | The specified index whose default value is 0. |
Definition at line 911 of file fbxproperty.h.
|
inline |
Searches the destination object with the specified name which is of the specified class type, starting with the specified index.
T | The specified class type. |
pName | The object name. |
pStartIndex | The start index. |
Definition at line 919 of file fbxproperty.h.
|
inline |
Searches the destination object with the specified name which is of the specified class type and satisfies the given criteria, starting with the specified index.
T | The specified class type. |
pCriteria | The given criteria. |
pName | The object name. |
pStartIndex | The start index. |
Definition at line 928 of file fbxproperty.h.
bool ConnectSrcProperty | ( | const FbxProperty & | pProperty | ) |
Connects this property to a source property.
pProperty | The source property with which this property connects. |
True
on success, false
otherwise. bool IsConnectedSrcProperty | ( | const FbxProperty & | pProperty | ) |
Judges whether this property connects with the specified source property.
pProperty | The specified source property. |
True
if this property connects with the specified source property, false
otherwise. bool DisconnectSrcProperty | ( | const FbxProperty & | pProperty | ) |
Disconnects this property from the specified source property.
pProperty | The specified source property. |
True
on success, false
otherwise. int GetSrcPropertyCount | ( | ) | const |
Returns the number of source properties with which this property connects.
bool ConnectDstProperty | ( | const FbxProperty & | pProperty | ) |
Connects this property to a destination property.
pProperty | The destination property with which this property connects. |
True
on success, false
otherwise. bool IsConnectedDstProperty | ( | const FbxProperty & | pProperty | ) |
Judges if this property connects with the specified destination property.
pProperty | The specified destination property. |
True
if this property connects with the specified destination property, false
otherwise. bool DisconnectDstProperty | ( | const FbxProperty & | pProperty | ) |
Disconnects this property from the specified destination property.
pProperty | The specified destination property. |
True
on success, false
otherwise. int GetDstPropertyCount | ( | ) | const |
Returns the number of destination properties with which this property connects.
void ClearConnectCache | ( | ) |
Clears the connection cache of this property, this cache is used to store the connections that satisfy the given criteria.
FbxProperty GetSrcProperty | ( | const int | pIndex = 0 | ) | const |
Returns the source property at the specified index with which this property connects.
pIndex | The specified index. |
FbxProperty FindSrcProperty | ( | const char * | pName, |
const int | pStartIndex = 0 |
||
) | const |
Searches the source property with the specified name, starting with the specified index with which this property connects.
pName | The specified property name. |
pStartIndex | The start index. |
FbxProperty GetDstProperty | ( | const int | pIndex = 0 | ) | const |
Returns the destination property at the specified index with which this property connects.
pIndex | The specified index. |
FbxProperty FindDstProperty | ( | const char * | pName, |
const int | pStartIndex = 0 |
||
) | const |
Searches the destination property with the specified name, starting with the specified index with which this property connects.
pName | The specified property name. |
pStartIndex | The start index. |
|
static |
Hierarchical separator of properties.
Definition at line 1013 of file fbxproperty.h.