Property: Base property class. More...
#include <fbproperties.h>

Public Member Functions | |
| FBProperty () | |
| Constructor. More... | |
| void | SetEnable (bool pValue) |
| Set property enable status. More... | |
| const char * | GetName () |
| Get the property's name. More... | |
| void | SetName (const char *pName) |
| Set the property's name. More... | |
| virtual FBPropertyType | GetPropertyType () |
| Get the property's type. More... | |
| const char * | GetPropertyTypeName () |
| Get the property's type name. More... | |
| virtual KDataType * | GetDataType () |
| Get the property datatype pointer. More... | |
| int | AsInt () |
| Get the property as an integer. More... | |
| bool | SetInt (int pInt) |
| Set the property from an integer. More... | |
| virtual const char * | AsString (FBDataAsStringFlag pFlag=kFBDataAsStringUI) |
| Get the property value as a string. More... | |
| virtual bool | SetString (const char *pString) |
| Set the property value from a string. More... | |
| const char * | OriValueAsString () |
| Get the property original value (before any modification) as string. More... | |
| bool | IsAnimated () const |
| Get the property animated flag status. More... | |
| bool | OriIsAnimated () const |
| Get the property original animated flag status (before any modification) More... | |
| bool | IsMinClamp () |
| Indicate if minimum value clamping will be applied on user input value. More... | |
| bool | IsMaxClamp () |
| Indicate if maximum value clamping will be applied on user input value. More... | |
| bool | IsTemporaryProperty () |
| Indicate if a property was created on retrieve because it didn't exist. More... | |
| bool | AcceptTemporaryProperty (const char *pEnumList[]=NULL, fbExternalGetSetHandler pGet=NULL, fbExternalGetSetHandler pSet=NULL) |
| Accept a temporary property as a dynamic property. More... | |
| bool | IsObjectList () |
| Indicate if is an instance of FBPropertyListObject. More... | |
| virtual bool | IsReadOnly () |
| Is property read-only? More... | |
| virtual const char * | EnumList (int pIndex) |
| Return the string of an enum value. More... | |
| FBStringList * | GetEnumStringList (bool pCreateIt=false) |
| String list for enum properties. More... | |
| void | NotifyEnumStringListChanged () |
| Notify system that the enum list was modified. More... | |
| void | ModifyPropertyFlag (FBPropertyFlag pFlag, bool pValue) |
| ModifyPropertyFlag. More... | |
| FBPropertyFlag | GetPropertyFlags () |
| GetPropertyFlags. More... | |
| bool | GetPropertyFlag (FBPropertyFlag pFlag) |
| GetPropertyFlag. More... | |
| void | SetMinMax (double pMin, double pMax, bool pForceMinClamp=false, bool pForceMaxClamp=false) |
| SetMinMax. More... | |
| void | SetMin (double pMin, bool pForceMinClamp=false) |
| SetMin. More... | |
| void | SetMax (double pMax, bool pForceMaxClamp=false) |
| SetMax. More... | |
| double | GetMin () |
| GetMin. More... | |
| double | GetMax () |
| GetMax. More... | |
| void * | GetParent () |
| Get the parent of the object. More... | |
| virtual void | SetData (void *pData) |
| Set the value of the property, passing the type as an argument. More... | |
| virtual void | GetData (void *pData, int pSize, FBEvaluateInfo *pEvalInfo=NULL) const |
| Get the value of a property. More... | |
| virtual bool | IsList () |
| Verify if property is of this type. More... | |
| virtual bool | IsAnimatable () |
| Verify if property is of this type. More... | |
| bool | IsInternal () const |
| Verify if property is of this type. More... | |
| bool | IsUserProperty () |
| Verify if property is of this type. More... | |
| bool | IsTextureConnectableProperty () |
| Verify if property is of this type. More... | |
| bool | IsReferenceProperty () |
| Verify if property is of this type. More... | |
Interface for property locking mechanism. | |
Locking a property or any number of its channel(s) prevents the user from modifying animation on this property. This means that the user can't add, remove or edit any key on any layer of a locked property/channel. It also means that the user can't change the current value of the property. However, a locked property allows existing animation to flow through. This means that the value of a locked property can change through time as its being driven by existing animation and/or constraints. | |
| int | GetSubMemberCount () const |
| GetSubMemberCount. More... | |
| bool | AllowsLocking () const |
| AllowsLocking. More... | |
| bool | HasSomethingLocked () const |
| HasSomethingLocked. More... | |
| bool | IsLocked () const |
| IsLocked. More... | |
| bool | IsMemberLocked (int pIndex) const |
| IsMemberLocked. More... | |
| void | SetLocked (bool pLocked) |
| SetLocked. More... | |
| void | SetMemberLocked (int pIndex, bool pLocked) |
| SetMemberLocked. More... | |
Public Member Functions inherited from FBWrapperHolder | |
| FBScriptWrapper * | GetWrapper () |
| Return the wrapper interface of this FBObject. More... | |
| void | AddWrapper (FBScriptWrapper *) |
| void | RemoveWrapper (FBScriptWrapper *) |
Protected Attributes | |
| FBString | mName |
| void * | mParent |
Protected Attributes inherited from FBPlug | |
| bool | mAllocated |
| Contain the Allocation State of the Component. More... | |
| HIObject | mObject |
| Handle on the Plug. More... | |
| bool | mSDKComponent |
| bool Plug is an SDK component. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from FBPlug | |
| bool | IsSDKComponent () |
| Return whether or not item is an SDK component. More... | |
| bool | ConnectSrc (FBPlug *pSrc, FBConnectionType pConnectionType=kFBConnectionTypeNone) |
| Add a source connection. More... | |
| bool | ConnectDst (FBPlug *pDst, FBConnectionType pConnectionType=kFBConnectionTypeNone) |
| Add a destination connection. More... | |
| bool | ConnectSrcAt (int pDst_SrcIndex, FBPlug *pSrc, FBConnectionType pConnectionType=kFBConnectionTypeNone) |
| Add a source connection. More... | |
| bool | ConnectDstAt (int pSrc_DstIndex, FBPlug *pDst, FBConnectionType pConnectionType=kFBConnectionTypeNone) |
| Add a destination connection. More... | |
| bool | DisconnectDst (FBPlug *pDst) |
| Remove a destination connection. More... | |
| bool | DisconnectSrc (FBPlug *pSrc) |
| Remove a source connection. More... | |
| void | DisconnectAllSrc () |
| Remove all source connections. More... | |
| void | DisconnectAllDst () |
| Remove all destination connections. More... | |
| bool | DisconnectDstAt (int pIndex) |
| Remove a destination connection at a specified index. More... | |
| bool | DisconnectSrcAt (int pIndex) |
| Remove a source connection at a specified index. More... | |
| bool | ReplaceDstAt (int pIndex, FBPlug *pDst) |
| Replace a destination connection at a specified index. More... | |
| bool | ReplaceSrcAt (int pIndex, FBPlug *pSrc) |
| Replace a source connection at a specified index. More... | |
| bool | SwapSrc (int pIndexA, int pIndexB) |
| Swap source connection at index A with source connection at index B. More... | |
| bool | MoveSrcAt (int pIndex, int pAtIndex) |
| Move source connection at pIndex to pAtIndex. More... | |
| bool | MoveSrcAt (FBPlug *pSrc, FBPlug *pAtSrc) |
| Move source connection pSrc to the position of pAtSrc. More... | |
| int | GetSrcCount () |
| Get source connection count. More... | |
| FBPlug * | GetSrc (int pIndex) |
| Get a source connection's plug at specified index. More... | |
| FBConnectionType | GetSrcType (int pIndex) |
| Get a source connection's type at specified index. More... | |
| int | GetDstCount () |
| Get destination connection count. More... | |
| FBPlug * | GetDst (int pIndex) |
| Get a destination connection's plug at specified index. More... | |
| FBConnectionType | GetDstType (int pIndex) |
| Get a destination connection's type at specified index. More... | |
| bool | BeginChange () |
| Begins a change on multiple plugs. More... | |
| void | EndChange () |
| Ends a change on multiple plugs. More... | |
| void | SetSelfModified (FBPlugModificationFlag pFlag, bool pBool) |
| Set the plug's self modification flag. More... | |
| bool | GetSelfModified (FBPlugModificationFlag pFlag) |
| Tell if the plug's self has changed. More... | |
| void | SetContentModified (FBPlugModificationFlag pFlag, bool pBool) |
| Set the plug's owned property/object's modification flag. More... | |
| bool | GetContentModified (FBPlugModificationFlag pFlag) |
| Tell if the plug's content has changed. More... | |
| int | GetPlugConnectionModifiedList (FBPlugList &pPlugList, FBPlugModificationFlag pConnectionModificatonFlag, bool pAddRemove) |
| Get plug's modified src/dst property/object connection added/removed List. More... | |
| bool | RevertModification (FBPlugModificationFlag pFlag=kFBAllModifiedMask) |
| Revert the plug's modification to original status. More... | |
| void | SetStatusFlag (FBPlugStatusFlag pStatus, bool pValue) |
| Set the plug's status flag. More... | |
| bool | GetStatusFlag (FBPlugStatusFlag pStatus) const |
| Tell if the plug's status has changed. More... | |
| FBPlug * | GetOwner () |
| Get the owner of this plug. More... | |
| FBPlug * | GetOwned (int pIndex) |
| Get the owned plug at specified index. More... | |
| int | GetOwnedCount () |
| Get the owned plug count. More... | |
| virtual const char * | ClassName () |
| internal System vars. More... | |
| virtual bool | Is (int pTypeId) |
| Is( int pTypeId ) More... | |
| virtual int | GetTypeId () |
| GetTypeId( int pTypeId ) More... | |
| virtual bool | PlugDataNotify (FBConnectionAction pAction, FBPlug *pThis, void *pData=NULL, void *pDataOld=NULL, int pDataSize=0) |
| PlugDataNotify when overloaded is equivalent of FBSystem.OnConnectionDataNotify but in the context of the derived object only. More... | |
| virtual bool | PlugStateNotify (FBConnectionAction pAction, FBPlug *pThis, void *pData=NULL, void *pDataOld=NULL, int pDataSize=0) |
| PlugStateNotify when overloaded is equivalent of FBSystem.OnConnectionStateNotify but in the context of the derived object only. More... | |
| virtual bool | PlugNotify (FBConnectionAction pAction, FBPlug *pThis, int pIndex, FBPlug *pPlug=NULL, FBConnectionType pConnectionType=kFBConnectionTypeNone, FBPlug *pNewPlug=NULL) |
| PlugNotify when overloaded is equivalent of FBSystem.OnConnectionNotify but in the context of the derived object only. More... | |
| virtual void | FBDelete () |
| Actual destructor for a FBPlug. More... | |
Static Protected Member Functions inherited from FBPlug | |
| static int | GetInternalClassId () |
| Internal class Id. More... | |
Static Protected Attributes inherited from FBPlug | |
| static const char * | ClassGroupName |
| ClassGroupName of the object. More... | |
| static int | TypeInfo |
| TypeInfo. More... | |
| static int | mGlobalTypeInfo |
| Represente the Type Index. More... | |
Property: Base property class.
A property is a holder for function callbacks into the internals of the application.
You cannot instantiate FBProperty objects. To reference a property:
To see how to create a custom property in Python, see CustomProperty.py.
Definition at line 192 of file fbproperties.h.
| FBProperty | ( | ) |
Constructor.
| bool AcceptTemporaryProperty | ( | const char * | pEnumList[] = NULL, |
| fbExternalGetSetHandler | pGet = NULL, |
||
| fbExternalGetSetHandler | pSet = NULL |
||
| ) |
Accept a temporary property as a dynamic property.
| bool AllowsLocking | ( | ) | const |
AllowsLocking.
| int AsInt | ( | ) |
Get the property as an integer.
Referenced by FBPropertyBaseEnum< EAreaLightShapes >::AsString().
|
virtual |
Get the property value as a string.
| pFlag | Indicates the returned string to be used for UI or storage. It defaults to kFBDataAsStringUI. |
Reimplemented in FBPropertyBaseAnimatableEnum< tType >, FBPropertyStringList, FBPropertyBaseEnum< tType >, FBPropertyBaseEnum< EPathEndCapStyle >, FBPropertyBaseEnum< EKeyPropertyBehavior >, FBPropertyBaseEnum< ELengthUnitType >, and FBPropertyBaseEnum< EAreaLightShapes >.
|
virtual |
Return the string of an enum value.
| pIndex | Enum value to get string for. |
pIndex. Reimplemented in FBPropertyBaseAnimatableEnum< tType >, FBPropertyBaseEnum< tType >, FBPropertyBaseEnum< EPathEndCapStyle >, FBPropertyBaseEnum< EKeyPropertyBehavior >, FBPropertyBaseEnum< ELengthUnitType >, and FBPropertyBaseEnum< EAreaLightShapes >.
Referenced by FBPropertyBaseEnum< EAreaLightShapes >::EnumList(), and FBPropertyBaseAnimatableEnum< tType >::EnumList().
|
virtual |
Get the value of a property.
| pData | Value to fill with property's current value. |
| pSize | Size of pData buffer |
| pEvalInfo | Used only with animated properties |
Reimplemented in FBPropertyAnimatable, FBPropertyBase< tType, pPT >, FBPropertyBase< FBTimeSpan, kFBPT_TimeSpan >, FBPropertyBase< FBProperty *, kFBPT_Reference >, FBPropertyBase< FBColor, kFBPT_ColorRGB >, FBPropertyBase< FBColorAndAlpha, kFBPT_ColorRGBA >, FBPropertyBase< double, kFBPT_double >, FBPropertyBase< tType, kFBPT_object >, FBPropertyBase< int, kFBPT_int >, FBPropertyBase< bool, kFBPT_bool >, FBPropertyBase< tType, kFBPT_enum >, FBPropertyBase< bool, kFBPT_Action >, FBPropertyBase< FBVector2d, kFBPT_Vector2D >, FBPropertyBase< FBVector3d, kFBPT_Vector3D >, FBPropertyBase< FBTime, kFBPT_Time >, FBPropertyBase< const char *, kFBPT_charptr >, FBPropertyBase< kReference, kFBPT_kReference >, FBPropertyBase< FBPlug *, kFBPT_object >, FBPropertyBase< EKeyPropertyBehavior, kFBPT_enum >, FBPropertyBase< FBComponent *, kFBPT_object >, FBPropertyBase< EPathEndCapStyle, kFBPT_enum >, FBPropertyBase< float, kFBPT_float >, FBPropertyBase< ELengthUnitType, kFBPT_enum >, and FBPropertyBase< EAreaLightShapes, kFBPT_enum >.
Referenced by FBPropertyBase< EAreaLightShapes, kFBPT_enum >::GetData().
|
virtual |
Get the property datatype pointer.
Reimplemented in FBPropertyAnimatable.
| FBStringList* GetEnumStringList | ( | bool | pCreateIt = false | ) |
String list for enum properties.
| pCreateIt | Create a new list if necessary. |
| double GetMax | ( | ) |
GetMax.
| double GetMin | ( | ) |
GetMin.
| const char* GetName | ( | ) |
Get the property's name.
|
inline |
| bool GetPropertyFlag | ( | FBPropertyFlag | pFlag | ) |
GetPropertyFlag.
| pFlag | Flag to test if it is True or False. |
| FBPropertyFlag GetPropertyFlags | ( | ) |
GetPropertyFlags.
|
virtual |
Get the property's type.
Reimplemented in FBPropertyBaseAnimatable< tType, pPT >, FBPropertyBaseAnimatable< FBColor, kFBPT_ColorRGB >, FBPropertyBaseAnimatable< int, kFBPT_enum >, FBPropertyBaseAnimatable< double, kFBPT_double >, FBPropertyBaseAnimatable< FBColorAndAlpha, kFBPT_ColorRGBA >, FBPropertyBaseAnimatable< bool, kFBPT_bool >, FBPropertyBaseAnimatable< FBVector3d, kFBPT_Vector3D >, FBPropertyStringList, FBPropertyBase< tType, pPT >, FBPropertyBase< FBTimeSpan, kFBPT_TimeSpan >, FBPropertyBase< FBProperty *, kFBPT_Reference >, FBPropertyBase< FBColor, kFBPT_ColorRGB >, FBPropertyBase< FBColorAndAlpha, kFBPT_ColorRGBA >, FBPropertyBase< double, kFBPT_double >, FBPropertyBase< tType, kFBPT_object >, FBPropertyBase< int, kFBPT_int >, FBPropertyBase< bool, kFBPT_bool >, FBPropertyBase< tType, kFBPT_enum >, FBPropertyBase< bool, kFBPT_Action >, FBPropertyBase< FBVector2d, kFBPT_Vector2D >, FBPropertyBase< FBVector3d, kFBPT_Vector3D >, FBPropertyBase< FBTime, kFBPT_Time >, FBPropertyBase< const char *, kFBPT_charptr >, FBPropertyBase< kReference, kFBPT_kReference >, FBPropertyBase< FBPlug *, kFBPT_object >, FBPropertyBase< EKeyPropertyBehavior, kFBPT_enum >, FBPropertyBase< FBComponent *, kFBPT_object >, FBPropertyBase< EPathEndCapStyle, kFBPT_enum >, FBPropertyBase< float, kFBPT_float >, FBPropertyBase< ELengthUnitType, kFBPT_enum >, FBPropertyBase< EAreaLightShapes, kFBPT_enum >, FBPropertyEvent, and FBPropertyListComponentBase.
| const char* GetPropertyTypeName | ( | ) |
Get the property's type name.
| int GetSubMemberCount | ( | ) | const |
GetSubMemberCount.
| bool HasSomethingLocked | ( | ) | const |
HasSomethingLocked.
|
virtual |
Verify if property is of this type.
Reimplemented in FBPropertyAnimatable.
| bool IsAnimated | ( | ) | const |
Get the property animated flag status.
| bool IsInternal | ( | ) | const |
Verify if property is of this type.
Referenced by FBPropertyBaseEnum< EAreaLightShapes >::EnumList().
|
virtual |
Verify if property is of this type.
Reimplemented in FBPropertyStringList, and FBPropertyBasicList.
| bool IsLocked | ( | ) | const |
IsLocked.
| bool IsMaxClamp | ( | ) |
Indicate if maximum value clamping will be applied on user input value.
| bool IsMemberLocked | ( | int | pIndex | ) | const |
IsMemberLocked.
| pIndex | Index of the sub-member of the property to check. |
| bool IsMinClamp | ( | ) |
Indicate if minimum value clamping will be applied on user input value.
| bool IsObjectList | ( | ) |
Indicate if is an instance of FBPropertyListObject.
|
virtual |
Is property read-only?
Reimplemented in FBPropertyBase< tType, pPT >, FBPropertyBase< FBTimeSpan, kFBPT_TimeSpan >, FBPropertyBase< FBProperty *, kFBPT_Reference >, FBPropertyBase< FBColor, kFBPT_ColorRGB >, FBPropertyBase< FBColorAndAlpha, kFBPT_ColorRGBA >, FBPropertyBase< double, kFBPT_double >, FBPropertyBase< tType, kFBPT_object >, FBPropertyBase< int, kFBPT_int >, FBPropertyBase< bool, kFBPT_bool >, FBPropertyBase< tType, kFBPT_enum >, FBPropertyBase< bool, kFBPT_Action >, FBPropertyBase< FBVector2d, kFBPT_Vector2D >, FBPropertyBase< FBVector3d, kFBPT_Vector3D >, FBPropertyBase< FBTime, kFBPT_Time >, FBPropertyBase< const char *, kFBPT_charptr >, FBPropertyBase< kReference, kFBPT_kReference >, FBPropertyBase< FBPlug *, kFBPT_object >, FBPropertyBase< EKeyPropertyBehavior, kFBPT_enum >, FBPropertyBase< FBComponent *, kFBPT_object >, FBPropertyBase< EPathEndCapStyle, kFBPT_enum >, FBPropertyBase< float, kFBPT_float >, FBPropertyBase< ELengthUnitType, kFBPT_enum >, and FBPropertyBase< EAreaLightShapes, kFBPT_enum >.
Referenced by FBPropertyBase< EAreaLightShapes, kFBPT_enum >::IsReadOnly().
| bool IsReferenceProperty | ( | ) |
Verify if property is of this type.
| bool IsTemporaryProperty | ( | ) |
Indicate if a property was created on retrieve because it didn't exist.
| bool IsTextureConnectableProperty | ( | ) |
Verify if property is of this type.
| bool IsUserProperty | ( | ) |
Verify if property is of this type.
| void ModifyPropertyFlag | ( | FBPropertyFlag | pFlag, |
| bool | pValue | ||
| ) |
ModifyPropertyFlag.
| pFlag | The flag to switch to True or False. |
| pValue | The value to set about this flag. |
| void NotifyEnumStringListChanged | ( | ) |
Notify system that the enum list was modified.
| bool OriIsAnimated | ( | ) | const |
Get the property original animated flag status (before any modification)
| const char* OriValueAsString | ( | ) |
Get the property original value (before any modification) as string.
|
virtual |
Set the value of the property, passing the type as an argument.
| pData | Value to affect property with. |
Reimplemented in FBPropertyAnimatable, FBPropertyBase< tType, pPT >, FBPropertyBase< FBTimeSpan, kFBPT_TimeSpan >, FBPropertyBase< FBProperty *, kFBPT_Reference >, FBPropertyBase< FBColor, kFBPT_ColorRGB >, FBPropertyBase< FBColorAndAlpha, kFBPT_ColorRGBA >, FBPropertyBase< double, kFBPT_double >, FBPropertyBase< tType, kFBPT_object >, FBPropertyBase< int, kFBPT_int >, FBPropertyBase< bool, kFBPT_bool >, FBPropertyBase< tType, kFBPT_enum >, FBPropertyBase< bool, kFBPT_Action >, FBPropertyBase< FBVector2d, kFBPT_Vector2D >, FBPropertyBase< FBVector3d, kFBPT_Vector3D >, FBPropertyBase< FBTime, kFBPT_Time >, FBPropertyBase< const char *, kFBPT_charptr >, FBPropertyBase< kReference, kFBPT_kReference >, FBPropertyBase< FBPlug *, kFBPT_object >, FBPropertyBase< EKeyPropertyBehavior, kFBPT_enum >, FBPropertyBase< FBComponent *, kFBPT_object >, FBPropertyBase< EPathEndCapStyle, kFBPT_enum >, FBPropertyBase< float, kFBPT_float >, FBPropertyBase< ELengthUnitType, kFBPT_enum >, and FBPropertyBase< EAreaLightShapes, kFBPT_enum >.
Referenced by FBPropertyBase< EAreaLightShapes, kFBPT_enum >::SetData().
| void SetEnable | ( | bool | pValue | ) |
Set property enable status.
| bool SetInt | ( | int | pInt | ) |
Set the property from an integer.
| pInt | Int to set property from. |
| void SetLocked | ( | bool | pLocked | ) |
SetLocked.
| pLocked | True if the property is to be locked, false if it is to be unlocked. |
| void SetMax | ( | double | pMax, |
| bool | pForceMaxClamp = false |
||
| ) |
SetMax.
| pMax | Maximum value of the property. |
| pForceMaxClamp | Force clamping to maximum value of the property. |
| void SetMemberLocked | ( | int | pIndex, |
| bool | pLocked | ||
| ) |
SetMemberLocked.
| pIndex | Index of the sub-member of the property to lock or unlock. |
| pLocked | True if the sub-member is to be locked, false if it is to be unlocked. |
| void SetMin | ( | double | pMin, |
| bool | pForceMinClamp = false |
||
| ) |
SetMin.
| pMin | Minimum value of the property. |
| pForceMinClamp | Force clamping to minimum value of the property. |
| void SetMinMax | ( | double | pMin, |
| double | pMax, | ||
| bool | pForceMinClamp = false, |
||
| bool | pForceMaxClamp = false |
||
| ) |
SetMinMax.
| pMin | Minimum value of the property. |
| pMax | Maximum value of the property. |
| pForceMinClamp | Force clamping to minimum value of the property. |
| pForceMaxClamp | Force clamping to maximum value of the property. |
| void SetName | ( | const char * | pName | ) |
Set the property's name.
| pName | New name for the property. |
|
virtual |
Set the property value from a string.
| pString | String to set property value from, with format same as AsString(kFBDataAsStringPersistence) |
Reimplemented in FBPropertyBaseAnimatableEnum< tType >, FBPropertyStringList, FBPropertyBaseEnum< tType >, FBPropertyBaseEnum< EPathEndCapStyle >, FBPropertyBaseEnum< EKeyPropertyBehavior >, FBPropertyBaseEnum< ELengthUnitType >, and FBPropertyBaseEnum< EAreaLightShapes >.
|
protected |
mName Property unique name.
Definition at line 198 of file fbproperties.h.
|
protected |
mParent Parent of the property.
Definition at line 200 of file fbproperties.h.