This template class is specialized using the pointer of class fbxReference to hold user properties whose data type are fbxReference.
Definition at line 1420 of file kfbxproperty.h.
#include <kfbxproperty.h>
Public Member Functions |
|
KFbxTypedProperty & | operator= (fbxReference *const &pValue) |
Assignment operator. |
|
bool | Set (fbxReference *const &pValue) |
This function connects this property to the
source object. |
|
bool | Set (fbxReference *const &pValue, bool pCheckValueEquality) |
This function connects this property to the
source object. |
|
fbxReference * | Get () const |
Returns the source object. |
|
Friends |
|
class | KFbxObject |
Constructor and Destructor. |
|
KFbxTypedProperty () | |
Constructor. |
|
KFbxTypedProperty (KFbxProperty const &pProperty) | |
Copy constructor. |
|
~KFbxTypedProperty () | |
Destructor. |
|
Static initialization. |
|
KFbxProperty const & | StaticInit (KFbxObject *pObject, char const *pName, eFbxPropertyFlags pFlags=eNO_FLAG) |
Creates a property and initializes it using
a specific flag. |
|
KFbxProperty const & | StaticInit (KFbxObject *pObject, char const *pName, fbxReference *const &pValue, bool pForceSet=true, eFbxPropertyFlags pFlags=eNO_FLAG) |
Creates a property and initializes it using
a specific value and flag. |
|
KFbxProperty const & | StaticInit (KFbxObject *pObject, char const *pName, KFbxDataType const &pDataType, eFbxPropertyFlags pFlags=eNO_FLAG) |
Creates a property and initializes it using
a specific flag. |
|
KFbxProperty const & | StaticInit (KFbxObject *pObject, char const *pName, KFbxDataType const &pDataType, fbxReference *const &pValue, bool pForceSet=true, eFbxPropertyFlags pFlags=eNO_FLAG) |
Creates a property and initializes it using
a specific value and flag. |
KFbxTypedProperty | ( | ) | [inline] |
KFbxTypedProperty | ( | KFbxProperty const & | pProperty | ) | [inline] |
Copy constructor.
pProperty | The property copied to this one. |
Definition at line 1435 of file kfbxproperty.h.
: KFbxProperty(pProperty) {}
~KFbxTypedProperty | ( | ) | [inline] |
KFbxProperty const& StaticInit | ( | KFbxObject * | pObject, |
char const * | pName, | ||
eFbxPropertyFlags | pFlags =
eNO_FLAG |
||
) | [inline] |
Creates a property and initializes it using a specific flag.
pObject | The object that contains this property. |
pName | The name of the property. |
pFlags | The property flag. |
Definition at line 1453 of file kfbxproperty.h.
{ *this = KFbxProperty::Create(pObject, GetFbxDataType(FbxTypeOf(*((fbxReference* *)0))), pName); ModifyFlag(pFlags, true); return *this; }
KFbxProperty const& StaticInit | ( | KFbxObject * | pObject, |
char const * | pName, | ||
fbxReference *const & | pValue, | ||
bool | pForceSet = true , |
||
eFbxPropertyFlags | pFlags =
eNO_FLAG |
||
) | [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 set forcibly, if
false the value is not set when it equals the default
value. |
pFlags | The property flag. |
Definition at line 1467 of file kfbxproperty.h.
{ bool lWasFound = false; *this = KFbxProperty::Create(pObject, GetFbxDataType(FbxTypeOf(*((fbxReference* *)0))), pName, "", true, &lWasFound); if( pForceSet || !lWasFound ) { ModifyFlag(pFlags, true); Set(pValue,false); } return *this; }
KFbxProperty const& StaticInit | ( | KFbxObject * | pObject, |
char const * | pName, | ||
KFbxDataType const & | pDataType, | ||
eFbxPropertyFlags | pFlags =
eNO_FLAG |
||
) | [inline] |
Creates a property and initializes it using a specific flag.
pObject | The object that contains this property. |
pName | The name of the property. |
pDataType | The data type of the property. |
pFlags | The property flag. |
Definition at line 1485 of file kfbxproperty.h.
{ *this = KFbxProperty::Create(pObject, pDataType, pName, ""); // KFbxProperty::StaticInit(pObject, pName, pDataType, ""); ModifyFlag(pFlags, true); return *this; }
KFbxProperty const& StaticInit | ( | KFbxObject * | pObject, |
char const * | pName, | ||
KFbxDataType const & | pDataType, | ||
fbxReference *const & | pValue, | ||
bool | pForceSet = true , |
||
eFbxPropertyFlags | pFlags =
eNO_FLAG |
||
) | [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 data type 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 1501 of file kfbxproperty.h.
{ bool lWasFound = false; *this = KFbxProperty::Create(pObject, pDataType, pName, "", true, &lWasFound); if( pForceSet || !lWasFound ) { ModifyFlag(pFlags, true); Set(pValue,false); } return *this; }
KFbxTypedProperty& operator= | ( | fbxReference *const & | pValue | ) | [inline] |
Assignment operator.
pValue | The value assigned to this property. |
Definition at line 1520 of file kfbxproperty.h.
{ KFbxSet(*this,pValue); return *this; }
bool Set | ( | fbxReference *const & | pValue | ) | [inline] |
This function connects this property to the source object.
pValue | The pointer of the source object. |
True
on success, false
otherwise.Definition at line 1533 of file kfbxproperty.h.
{ return Set(pValue, true); }
bool Set | ( | fbxReference *const & | pValue, |
bool | pCheckValueEquality | ||
) | [inline] |
This function connects this property to the source object.
pValue | The pointer of the source object. |
pCheckValueEquality |
True
on success, false
otherwise.Definition at line 1543 of file kfbxproperty.h.
{ KFbxObject* lValue = reinterpret_cast<KFbxObject*>(pValue); DisconnectAllSrcObject(); if (lValue) { return ConnectSrcObject(lValue); } return false; }
fbxReference* Get | ( | ) | const [inline] |
Returns the source object.
Definition at line 1557 of file kfbxproperty.h.
{ KFbxObject* lValue = GetSrcObjectCount() > 0 ? GetSrcObject(0) : NULL; return reinterpret_cast<fbxReference*>(lValue); }
friend class KFbxObject [friend] |
Reimplemented from KFbxProperty.
Definition at line 1563 of file kfbxproperty.h.