Open Reality Reference Guide
 
Loading...
Searching...
No Matches
FBPropertyBaseEnum< tType > Class Template Reference
Inheritance diagram for FBPropertyBaseEnum< tType >:

Public Member Functions

 FBPropertyBaseEnum ()=default
 Constructor.
 
 ~FBPropertyBaseEnum ()=default
 Destructor.
 
 FBPropertyBaseEnum (const FBPropertyBaseEnum< tType > &pValue)
 FBPropertyBaseEnum.
 
void operator= (tType pValue)
 Overloaded = operator.
 
 operator tType () const
 Overloaded cast to tType operator.
 
virtual const char * EnumList (int pIndex) override
 Return the string of an enum value.
 
virtual const char * AsString (FBDataAsStringFlag pFlag=kFBDataAsStringUI) override
 Get as string.
 
virtual bool SetString (const char *pString) override
 Set enum value by equivalent string.
 
- Public Member Functions inherited from FBPropertyBase< tType, kFBPT_enum >
 FBPropertyBase ()
 Constructor.
 
 FBPropertyBase (const FBPropertyBase< tType, pPT > &pValue)
 Constructor.
 
 ~FBPropertyBase ()
 Destructor.
 
FBPropertyBaseInit (void *pParent, const char *pName, tType(*pGet)(void *)=NULL, void(*pSet)(void *, tType)=NULL)
 Initialization function.
 
void operator= (tType pValue)
 Overloaded = operator.
 
void operator= (const FBPropertyBase< tType, pPT > &pProperty)
 Overloaded = operator.
 
 operator tType () const
 Overloaded cast to tType operator.
 
virtual FBPropertyType GetPropertyType () override
 Get the property's type.
 
virtual void SetPropertyValue (tType pValue)
 Set the value of the internal property.
 
tType GetPropertyValue ()
 Get the value of the internal property.
 
virtual bool IsReadOnly () override
 Is this class read-only? If there is an existing set function, this class is read/write, otherwise it is read-only.
 
virtual void GetData (void *pData, int pSize, FBEvaluateInfo *pEvalInfo=NULL) const override
 Get value.
 
virtual void SetData (void *pData) override
 Set value.
 
- Public Member Functions inherited from FBProperty
 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.
 
FBStringListGetEnumStringList (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.
 
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.
 
FBPropertyGetReferencedProperty ()
 Get the referenced property, in the case of this property is a reference property (see the IsReferenceProperty() method).
 
- Public Member Functions inherited from FBWrapperHolder
FBScriptWrapperGetWrapper ()
 Return the wrapper interface of this FBObject.
 
void AddWrapper (FBScriptWrapper *)
 
void RemoveWrapper (FBScriptWrapper *)
 

Additional Inherited Members

- Public Types inherited from FBPropertyBase< tType, kFBPT_enum >
typedef tType ValueType
 Property Value Type.
 
- Protected Member Functions inherited from FBPlug
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.
 
FBPlugGetSrc (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.
 
FBPlugGetDst (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.
 
FBPlugGetOwner ()
 Get the owner of this plug.
 
FBPlugGetOwned (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 Protected Member Functions inherited from FBPlug
static int GetInternalClassId ()
 Internal class Id.
 
- Protected Attributes inherited from FBProperty
FBString mName
 
void * mParent
 
- Protected Attributes inherited from FBPlug
bool mAllocated
 Contain the Allocation State of the Component.
 
HIObject mObject
 Handle on the Plug.
 
bool mSDKComponent
 bool Plug is an SDK component.

 
- Static Protected Attributes inherited from FBPlug
static const char * ClassGroupName
 ClassGroupName of the object.
 
static int TypeInfo
 TypeInfo.
 
static int mGlobalTypeInfo
 Represente the Type Index.
 

Detailed Description

template<class tType>
class FBPropertyBaseEnum< tType >

Definition at line 764 of file fbproperties.h.

Constructor & Destructor Documentation

◆ FBPropertyBaseEnum() [1/2]

template<class tType >
FBPropertyBaseEnum ( )
default

Constructor.

◆ ~FBPropertyBaseEnum()

template<class tType >
~FBPropertyBaseEnum ( )
inlinedefault

Destructor.

◆ FBPropertyBaseEnum() [2/2]

template<class tType >
FBPropertyBaseEnum ( const FBPropertyBaseEnum< tType > &  pValue)
inline

FBPropertyBaseEnum.

Parameters
pValueFBPropertyBaseEnum.

Definition at line 780 of file fbproperties.h.

Member Function Documentation

◆ AsString()

template<class tType >
virtual const char * AsString ( FBDataAsStringFlag  pFlag = kFBDataAsStringUI)
inlineoverridevirtual

Get as string.

Parameters
pFlagSpecifies the purpose of returned string it defaults to kFBDataAsStringUI.
Returns
String list.

Reimplemented from FBProperty.

Definition at line 825 of file fbproperties.h.

References FBProperty::AsInt().

◆ EnumList()

template<class tType >
virtual const char * EnumList ( int  pIndex)
inlineoverridevirtual

Return the string of an enum value.

Parameters
pIndexEnum value to get string for.
Returns
String value of enum specified by pIndex.

Reimplemented from FBProperty.

Definition at line 798 of file fbproperties.h.

References FBProperty::EnumList().

◆ operator tType()

template<class tType >
operator tType ( ) const
inline

Overloaded cast to tType operator.

Get the value of the current object using Get function.

Returns
tType cast of current object.

Definition at line 796 of file fbproperties.h.

◆ operator=()

template<class tType >
void operator= ( tType  pValue)
inline

Overloaded = operator.

Set the value of the current object using Set function.

Parameters
pValueValue to set for object.

Definition at line 789 of file fbproperties.h.

◆ SetString()

template<class tType >
virtual bool SetString ( const char *  pString)
inlineoverridevirtual

Set enum value by equivalent string.

Parameters
pStringString to set for enum property, with format same as AsString(kFBDataAsStringPersistence)
Returns
True if success.

Reimplemented from FBProperty.

Definition at line 831 of file fbproperties.h.

References FBProperty::SetData().


The documentation for this class was generated from the following file: