Property: Base property class. More...
#include <fbproperties.h>
Public Member Functions | |
FBProperty () | |
Constructor. | |
void | SetEnable (bool pValue) |
Set property enable status. | |
const char * | GetName () |
Get the property's name. | |
void | SetName (const char *pName) |
Set the property's name. | |
virtual FBPropertyType | GetPropertyType () |
Get the property's type. | |
const char * | GetPropertyTypeName () |
Get the property's type name. | |
virtual KDataType * | GetDataType () |
Get the property datatype pointer. | |
virtual void | SetData (void *pData) |
Set the value of the property, passing the type as an argument. | |
virtual void | GetData (void *pData, int pSize, FBEvaluateInfo *pEvalInfo=NULL) const |
Get the value of a property. | |
int | AsInt () |
Get the property as an integer. | |
bool | SetInt (int pInt) |
Set the property from an integer. | |
virtual const char * | AsString (FBDataAsStringFlag pFlag=kFBDataAsStringUI) |
Get the property value as a string. | |
virtual bool | SetString (const char *pString) |
Set the property value from a string. | |
const char * | OriValueAsString () |
Get the property original value (before any modification) as string. | |
bool | IsAnimated () const |
Get the property animated flag status. | |
bool | OriIsAnimated () const |
Get the property original animated flag status (before any modification) | |
virtual bool | IsList () |
Verify if property is of this type. | |
virtual bool | IsAnimatable () |
bool | IsInternal () const |
bool | IsUserProperty () |
bool | IsTextureConnectableProperty () |
bool | IsReferenceProperty () |
bool | IsMinClamp () |
Indicate if minimum value clamping will be applied on user input value. | |
bool | IsMaxClamp () |
Indicate if maximum value clamping will be applied on user input value. | |
bool | IsTemporaryProperty () |
Indicate if a property was created on retrieve because it didn't exist. | |
bool | AcceptTemporaryProperty (const char *pEnumList[]=NULL, fbExternalGetSetHandler pGet=NULL, fbExternalGetSetHandler pSet=NULL) |
Accept a temporary property as a dynamic property. | |
bool | IsObjectList () |
Indicate if is an instance of FBPropertyListObject. | |
virtual bool | IsReadOnly () |
Is property read-only? | |
virtual const char * | EnumList (int pIndex) |
Return the string of an enum value. | |
FBStringList * | GetEnumStringList (bool pCreateIt=false) |
String list for enum properties. | |
void | NotifyEnumStringListChanged () |
Notify system that the enum list was modified. | |
void | ModifyPropertyFlag (FBPropertyFlag pFlag, bool pValue) |
ModifyPropertyFlag. | |
FBPropertyFlag | GetPropertyFlags () |
GetPropertyFlags. | |
bool | GetPropertyFlag (FBPropertyFlag pFlag) |
GetPropertyFlag. | |
void | SetMinMax (double pMin, double pMax, bool pForceMinClamp=false, bool pForceMaxClamp=false) |
SetMinMax. | |
void | SetMin (double pMin, bool pForceMinClamp=false) |
SetMin. | |
void | SetMax (double pMax, bool pForceMaxClamp=false) |
SetMax. | |
double | GetMin () |
GetMin. | |
double | GetMax () |
GetMax. | |
void * | GetParent () |
Get the parent of the object. | |
Interface for property locking mechanism. | |
Locking a property or any number of its channel(s) prevents the user from modifying animation on this property.
| |
int | GetSubMemberCount () const |
GetSubMemberCount. | |
bool | AllowsLocking () const |
AllowsLocking. | |
bool | HasSomethingLocked () const |
HasSomethingLocked. | |
bool | IsLocked () const |
IsLocked. | |
bool | IsMemberLocked (int pIndex) const |
IsMemberLocked. | |
void | SetLocked (bool pLocked) |
SetLocked. | |
void | SetMemberLocked (int pIndex, bool pLocked) |
SetMemberLocked. | |
FBProperty * | GetReferencedProperty () |
Get the referenced property, in the case of this property is a reference property (see the IsReferenceProperty() method). | |
![]() | |
FBScriptWrapper * | GetWrapper () |
Return the wrapper interface of this FBObject. | |
void | AddWrapper (FBScriptWrapper *) |
void | RemoveWrapper (FBScriptWrapper *) |
Protected Attributes | |
FBString | mName |
void * | mParent |
![]() | |
bool | mAllocated |
Contain the Allocation State of the Component. | |
HIObject | mObject |
Handle on the Plug. | |
bool | mSDKComponent |
bool Plug is an SDK component. | |
Additional Inherited Members | |
![]() | |
bool | IsSDKComponent () |
Return whether or not item is an SDK component. | |
bool | ConnectSrc (FBPlug *pSrc, FBConnectionType pConnectionType=kFBConnectionTypeNone) |
Add a source connection. | |
bool | ConnectDst (FBPlug *pDst, FBConnectionType pConnectionType=kFBConnectionTypeNone) |
Add a destination connection. | |
bool | ConnectSrcAt (int pDst_SrcIndex, FBPlug *pSrc, FBConnectionType pConnectionType=kFBConnectionTypeNone) |
Add a source connection. | |
bool | ConnectDstAt (int pSrc_DstIndex, FBPlug *pDst, FBConnectionType pConnectionType=kFBConnectionTypeNone) |
Add a destination connection. | |
bool | DisconnectDst (FBPlug *pDst) |
Remove a destination connection. | |
bool | DisconnectSrc (FBPlug *pSrc) |
Remove a source connection. | |
void | DisconnectAllSrc () |
Remove all source connections. | |
void | DisconnectAllDst () |
Remove all destination connections. | |
bool | DisconnectDstAt (int pIndex) |
Remove a destination connection at a specified index. | |
bool | DisconnectSrcAt (int pIndex) |
Remove a source connection at a specified index. | |
bool | ReplaceDstAt (int pIndex, FBPlug *pDst) |
Replace a destination connection at a specified index. | |
bool | ReplaceSrcAt (int pIndex, FBPlug *pSrc) |
Replace a source connection at a specified index. | |
bool | SwapSrc (int pIndexA, int pIndexB) |
Swap source connection at index A with source connection at index B. | |
bool | MoveSrcAt (int pIndex, int pAtIndex) |
Move source connection at pIndex to pAtIndex. | |
bool | MoveSrcAt (FBPlug *pSrc, FBPlug *pAtSrc) |
Move source connection pSrc to the position of pAtSrc. | |
int | GetSrcCount () |
Get source connection count. | |
FBPlug * | GetSrc (int pIndex) |
Get a source connection's plug at specified index. | |
FBConnectionType | GetSrcType (int pIndex) |
Get a source connection's type at specified index. | |
int | GetDstCount () |
Get destination connection count. | |
FBPlug * | GetDst (int pIndex) |
Get a destination connection's plug at specified index. | |
FBConnectionType | GetDstType (int pIndex) |
Get a destination connection's type at specified index. | |
bool | BeginChange () |
Begins a change on multiple plugs. | |
void | EndChange () |
Ends a change on multiple plugs. | |
void | SetSelfModified (FBPlugModificationFlag pFlag, bool pBool) |
Set the plug's self modification flag. | |
bool | GetSelfModified (FBPlugModificationFlag pFlag) |
Tell if the plug's self has changed. | |
void | SetContentModified (FBPlugModificationFlag pFlag, bool pBool) |
Set the plug's owned property/object's modification flag. | |
bool | GetContentModified (FBPlugModificationFlag pFlag) |
Tell if the plug's content has changed. | |
int | GetPlugConnectionModifiedList (FBPlugList &pPlugList, FBPlugModificationFlag pConnectionModificatonFlag, bool pAddRemove) |
Get plug's modified src/dst property/object connection added/removed List. | |
bool | RevertModification (FBPlugModificationFlag pFlag=kFBAllModifiedMask) |
Revert the plug's modification to original status. | |
void | SetStatusFlag (FBPlugStatusFlag pStatus, bool pValue) |
Set the plug's status flag. | |
bool | GetStatusFlag (FBPlugStatusFlag pStatus) const |
Tell if the plug's status has changed. | |
FBPlug * | GetOwner () |
Get the owner of this plug. | |
FBPlug * | GetOwned (int pIndex) |
Get the owned plug at specified index. | |
int | GetOwnedCount () |
Get the owned plug count. | |
virtual const char * | ClassName () |
internal System vars. | |
virtual bool | Is (int pTypeId) |
Is( int pTypeId ) | |
virtual int | GetTypeId () |
GetTypeId( int pTypeId ) | |
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. | |
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. | |
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. | |
virtual void | FBDelete () |
Actual destructor for a FBPlug. | |
![]() | |
static int | GetInternalClassId () |
Internal class Id. | |
![]() | |
static const char * | ClassGroupName |
ClassGroupName of the object. | |
static int | TypeInfo |
TypeInfo. | |
static int | mGlobalTypeInfo |
Represente the Type Index. | |
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 194 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< tType >::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 FBPropertyBaseEnum< tType >, FBPropertyBaseEnum< EAreaLightShapes >, FBPropertyBaseEnum< EKeyPropertyBehavior >, FBPropertyBaseEnum< ELengthUnitType >, FBPropertyBaseEnum< EPathEndCapStyle >, FBPropertyStringList, and FBPropertyBaseAnimatableEnum< tType >.
|
virtual |
Return the string of an enum value.
pIndex | Enum value to get string for. |
pIndex
. Reimplemented in FBPropertyBaseEnum< tType >, FBPropertyBaseEnum< EAreaLightShapes >, FBPropertyBaseEnum< EKeyPropertyBehavior >, FBPropertyBaseEnum< ELengthUnitType >, FBPropertyBaseEnum< EPathEndCapStyle >, and FBPropertyBaseAnimatableEnum< tType >.
Referenced by FBPropertyBaseEnum< tType >::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 FBPropertyBase< tType, pPT >, FBPropertyBase< bool, kFBPT_Action >, FBPropertyBase< bool, kFBPT_bool >, FBPropertyBase< const char *, kFBPT_charptr >, FBPropertyBase< double, kFBPT_double >, FBPropertyBase< EAreaLightShapes, kFBPT_enum >, FBPropertyBase< EKeyPropertyBehavior, kFBPT_enum >, FBPropertyBase< ELengthUnitType, kFBPT_enum >, FBPropertyBase< EPathEndCapStyle, kFBPT_enum >, FBPropertyBase< FBColor, kFBPT_ColorRGB >, FBPropertyBase< FBColorAndAlpha, kFBPT_ColorRGBA >, FBPropertyBase< FBComponent *, kFBPT_object >, FBPropertyBase< FBPlug *, kFBPT_object >, FBPropertyBase< FBProperty *, kFBPT_Reference >, FBPropertyBase< FBTime, kFBPT_Time >, FBPropertyBase< FBTimeSpan, kFBPT_TimeSpan >, FBPropertyBase< FBVector2d, kFBPT_Vector2D >, FBPropertyBase< FBVector3d, kFBPT_Vector3D >, FBPropertyBase< float, kFBPT_float >, FBPropertyBase< int, kFBPT_int >, FBPropertyBase< kReference, kFBPT_kReference >, FBPropertyBase< tType, kFBPT_enum >, FBPropertyBase< tType, kFBPT_object >, and FBPropertyAnimatable.
Referenced by FBPropertyBase< tType, pPT >::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 FBPropertyListComponentBase, FBPropertyEvent, FBPropertyBase< tType, pPT >, FBPropertyBase< bool, kFBPT_Action >, FBPropertyBase< bool, kFBPT_bool >, FBPropertyBase< const char *, kFBPT_charptr >, FBPropertyBase< double, kFBPT_double >, FBPropertyBase< EAreaLightShapes, kFBPT_enum >, FBPropertyBase< EKeyPropertyBehavior, kFBPT_enum >, FBPropertyBase< ELengthUnitType, kFBPT_enum >, FBPropertyBase< EPathEndCapStyle, kFBPT_enum >, FBPropertyBase< FBColor, kFBPT_ColorRGB >, FBPropertyBase< FBColorAndAlpha, kFBPT_ColorRGBA >, FBPropertyBase< FBComponent *, kFBPT_object >, FBPropertyBase< FBPlug *, kFBPT_object >, FBPropertyBase< FBProperty *, kFBPT_Reference >, FBPropertyBase< FBTime, kFBPT_Time >, FBPropertyBase< FBTimeSpan, kFBPT_TimeSpan >, FBPropertyBase< FBVector2d, kFBPT_Vector2D >, FBPropertyBase< FBVector3d, kFBPT_Vector3D >, FBPropertyBase< float, kFBPT_float >, FBPropertyBase< int, kFBPT_int >, FBPropertyBase< kReference, kFBPT_kReference >, FBPropertyBase< tType, kFBPT_enum >, FBPropertyBase< tType, kFBPT_object >, FBPropertyStringList, FBPropertyBaseAnimatable< tType, pPT >, FBPropertyBaseAnimatable< bool, kFBPT_bool >, FBPropertyBaseAnimatable< double, kFBPT_double >, FBPropertyBaseAnimatable< FBColor, kFBPT_ColorRGB >, FBPropertyBaseAnimatable< FBColorAndAlpha, kFBPT_ColorRGBA >, FBPropertyBaseAnimatable< FBVector3d, kFBPT_Vector3D >, and FBPropertyBaseAnimatable< int, kFBPT_enum >.
const char * GetPropertyTypeName | ( | ) |
Get the property's type name.
FBProperty * GetReferencedProperty | ( | ) |
Get the referenced property, in the case of this property is a reference property (see the IsReferenceProperty() method).
int GetSubMemberCount | ( | ) | const |
GetSubMemberCount.
bool HasSomethingLocked | ( | ) | const |
HasSomethingLocked.
|
virtual |
Reimplemented in FBPropertyAnimatable.
bool IsAnimated | ( | ) | const |
Get the property animated flag status.
|
virtual |
Verify if property is of this type.
Reimplemented in FBPropertyBasicList, and FBPropertyStringList.
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< bool, kFBPT_Action >, FBPropertyBase< bool, kFBPT_bool >, FBPropertyBase< const char *, kFBPT_charptr >, FBPropertyBase< double, kFBPT_double >, FBPropertyBase< EAreaLightShapes, kFBPT_enum >, FBPropertyBase< EKeyPropertyBehavior, kFBPT_enum >, FBPropertyBase< ELengthUnitType, kFBPT_enum >, FBPropertyBase< EPathEndCapStyle, kFBPT_enum >, FBPropertyBase< FBColor, kFBPT_ColorRGB >, FBPropertyBase< FBColorAndAlpha, kFBPT_ColorRGBA >, FBPropertyBase< FBComponent *, kFBPT_object >, FBPropertyBase< FBPlug *, kFBPT_object >, FBPropertyBase< FBProperty *, kFBPT_Reference >, FBPropertyBase< FBTime, kFBPT_Time >, FBPropertyBase< FBTimeSpan, kFBPT_TimeSpan >, FBPropertyBase< FBVector2d, kFBPT_Vector2D >, FBPropertyBase< FBVector3d, kFBPT_Vector3D >, FBPropertyBase< float, kFBPT_float >, FBPropertyBase< int, kFBPT_int >, FBPropertyBase< kReference, kFBPT_kReference >, FBPropertyBase< tType, kFBPT_enum >, and FBPropertyBase< tType, kFBPT_object >.
Referenced by FBPropertyBase< tType, pPT >::IsReadOnly().
bool IsTemporaryProperty | ( | ) |
Indicate if a property was created on retrieve because it didn't exist.
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 FBPropertyBase< tType, pPT >, FBPropertyBase< bool, kFBPT_Action >, FBPropertyBase< bool, kFBPT_bool >, FBPropertyBase< const char *, kFBPT_charptr >, FBPropertyBase< double, kFBPT_double >, FBPropertyBase< EAreaLightShapes, kFBPT_enum >, FBPropertyBase< EKeyPropertyBehavior, kFBPT_enum >, FBPropertyBase< ELengthUnitType, kFBPT_enum >, FBPropertyBase< EPathEndCapStyle, kFBPT_enum >, FBPropertyBase< FBColor, kFBPT_ColorRGB >, FBPropertyBase< FBColorAndAlpha, kFBPT_ColorRGBA >, FBPropertyBase< FBComponent *, kFBPT_object >, FBPropertyBase< FBPlug *, kFBPT_object >, FBPropertyBase< FBProperty *, kFBPT_Reference >, FBPropertyBase< FBTime, kFBPT_Time >, FBPropertyBase< FBTimeSpan, kFBPT_TimeSpan >, FBPropertyBase< FBVector2d, kFBPT_Vector2D >, FBPropertyBase< FBVector3d, kFBPT_Vector3D >, FBPropertyBase< float, kFBPT_float >, FBPropertyBase< int, kFBPT_int >, FBPropertyBase< kReference, kFBPT_kReference >, FBPropertyBase< tType, kFBPT_enum >, FBPropertyBase< tType, kFBPT_object >, and FBPropertyAnimatable.
Referenced by FBPropertyBase< tType, pPT >::SetData(), and FBPropertyBaseEnum< tType >::SetString().
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 FBPropertyBaseEnum< tType >, FBPropertyBaseEnum< EAreaLightShapes >, FBPropertyBaseEnum< EKeyPropertyBehavior >, FBPropertyBaseEnum< ELengthUnitType >, FBPropertyBaseEnum< EPathEndCapStyle >, FBPropertyStringList, and FBPropertyBaseAnimatableEnum< tType >.
|
protected |
mName Property unique name.
Definition at line 200 of file fbproperties.h.
|
protected |
mParent Parent of the property.
Definition at line 202 of file fbproperties.h.