This reference page is linked to from the following overview topics: FBX SDK 2014.
#include <fbxproperty.h>
This template class is used to contain user properties of specific data types.
Definition at line 1197 of file fbxproperty.h.
Static initialization. |
|
| FbxProperty & | StaticInit (FbxObject *pObject, const char *pName, const T &pValue, bool pForceSet, FbxPropertyAttr::EFlags pFlags=FbxPropertyAttr::eNone) |
| Creates a property and initializes it using
a specific value and flag. |
|
| FbxProperty & | StaticInit (FbxObject *pObject, const char *pName, const FbxDataType &pDataType, const T &pValue, bool pForceSet, FbxPropertyAttr::EFlags pFlags=FbxPropertyAttr::eNone) |
| Creates a property and initializes it using
a specific value and flag. |
|
| FbxProperty & | StaticInit (FbxProperty pCompound, const char *pName, const FbxDataType &pDataType, const T &pValue, bool pForceSet=true, FbxPropertyAttr::EFlags pFlags=FbxPropertyAttr::eNone) |
| Creates a property and initializes it using
a specific value and flag. |
|
Value Management |
|
| FbxPropertyT & | Set (const T &pValue) |
| Assignment function. |
|
| T | Get () const |
| Retrieve function. |
|
| FbxPropertyT & | operator= (const T &pValue) |
| Assignment operator. |
|
| operator T () const | |
| Type cast operator. |
|
| FbxProperty& StaticInit | ( | FbxObject * | pObject, |
| const char * | pName, | ||
| const T & | pValue, | ||
| bool | pForceSet, | ||
| FbxPropertyAttr::EFlags | pFlags =
FbxPropertyAttr::eNone |
||
| ) | [inline] |
Creates a property and initializes it using a specific value and flag.
| pObject | The object that contains this property. |
| pName | The name of the property. |
| pValue | The value of the property. |
| pForceSet | If true, the value is forcibly set, if
false the value is not set when it equals the default
value. |
| pFlags | The property flag. |
Definition at line 1211 of file fbxproperty.h.
{
return StaticInit(pObject, pName, FbxGetDataTypeFromEnum(FbxTypeOf(*((T*)0))), pValue, pForceSet, pFlags);
}
| FbxProperty& StaticInit | ( | FbxObject * | pObject, |
| const char * | pName, | ||
| const FbxDataType & | pDataType, | ||
| const T & | pValue, | ||
| bool | pForceSet, | ||
| FbxPropertyAttr::EFlags | pFlags =
FbxPropertyAttr::eNone |
||
| ) | [inline] |
Creates a property and initializes it using a specific value and flag.
| pObject | The object that contains this property. |
| pName | The name of the property. |
| pDataType | The property data type. |
| pValue | The property value. |
| pForceSet | If true, the value is forcibly set, if
false the value is not set when it equals the default
value. |
| pFlags | The property flag. |
Definition at line 1224 of file fbxproperty.h.
{
bool lWasFound = false;
*this = Create(pObject, pDataType, pName, "", true, &lWasFound);
if( pForceSet || !lWasFound )
{
ModifyFlag(pFlags, true); // modify the flags before we set the value
FbxProperty::Set(&pValue, FbxTypeOf(pValue), false);
}
ModifyFlag(FbxPropertyAttr::eStatic, true);
return *this;
}
| FbxProperty& StaticInit | ( | FbxProperty | pCompound, |
| const char * | pName, | ||
| const FbxDataType & | pDataType, | ||
| const T & | pValue, | ||
| bool | pForceSet = true, |
||
| FbxPropertyAttr::EFlags | pFlags =
FbxPropertyAttr::eNone |
||
| ) | [inline] |
Creates a property and initializes it using a specific value and flag.
| pCompound | The parent property of this property. |
| pName | The name of the property. |
| pDataType | The property data type. |
| pValue | The property value. |
| pForceSet | If true, the value is forcibly set, if
false the value is not set when it equals to the
default value. |
| pFlags | The property flag. |
Definition at line 1245 of file fbxproperty.h.
{
bool lWasFound = false;
*this = Create(pCompound, pDataType, pName, "", true, &lWasFound);
if( pForceSet || !lWasFound )
{
ModifyFlag(pFlags, true); // modify the flags before we set the value
FbxProperty::Set(&pValue, FbxTypeOf(pValue), false);
}
ModifyFlag(FbxPropertyAttr::eStatic, true);
return *this;
}
| FbxPropertyT& Set | ( | const T & | pValue | ) | [inline] |
Assignment function.
| pValue | The value assigned to this property. |
Reimplemented from FbxProperty.
Definition at line 1267 of file fbxproperty.h.
{ FbxProperty::Set(&pValue, FbxTypeOf(pValue)); return *this; }
| T Get | ( | ) | const [inline] |
Retrieve function.
Reimplemented from FbxProperty.
Definition at line 1272 of file fbxproperty.h.
{ T lValue; FbxProperty::Get(&lValue, FbxTypeOf(lValue)); return lValue; }
| FbxPropertyT& operator= | ( | const T & | pValue | ) | [inline] |
Assignment operator.
| pValue | The value of type T assigned to this property. |
Definition at line 1278 of file fbxproperty.h.
{ return Set(pValue); }
| operator T | ( | ) | const [inline] |
Type cast operator.
Definition at line 1283 of file fbxproperty.h.
{ return Get(); }