XII Release 0.1.0
Loading...
Searching...
No Matches
xiiLayerAction Class Reference
Inheritance diagram for xiiLayerAction:
[legend]

Public Types

enum class  ActionType : xiiUInt32 {
  CreateLayer = 0U , DeleteLayer , SaveLayer , SaveActiveLayer ,
  LayerLoaded , LayerVisible , SwitchOnSelection
}

Public Member Functions

 xiiLayerAction (const xiiActionContext &context, const char *szName, ActionType type)
virtual void Execute (const xiiVariant &value) override
Public Member Functions inherited from xiiButtonAction
 xiiButtonAction (const xiiActionContext &context, xiiStringView sName, bool bCheckable, xiiStringView sIconPath)
bool IsEnabled () const
void SetEnabled (bool bEnable, bool bTriggerUpdate=true)
bool IsCheckable () const
void SetCheckable (bool bCheckable, bool bTriggerUpdate=true)
bool IsChecked () const
void SetChecked (bool bChecked, bool bTriggerUpdate=true)
bool IsVisible () const
void SetVisible (bool bVisible, bool bTriggerUpdate=true)
Public Member Functions inherited from xiiNamedAction
 xiiNamedAction (const xiiActionContext &context, xiiStringView sName, xiiStringView sIconPath)
xiiStringView GetName () const
xiiStringView GetAdditionalDisplayString ()
void SetAdditionalDisplayString (xiiStringView sString, bool bTriggerUpdate=true)
xiiStringView GetIconPath () const
void SetIconPath (xiiStringView sIconPath)
Public Member Functions inherited from xiiAction
 xiiAction (const xiiActionContext &context)
void TriggerUpdate ()
const xiiActionContext & GetContext () const
xiiActionDescriptorHandle GetDescriptorHandle ()
Public Member Functions inherited from xiiReflectedClass
virtual const xiiRTTI * GetDynamicRTTI () const
bool IsInstanceOf (const xiiRTTI *pType) const
 Returns whether the type of this instance is of the given type or derived from it.
template<typename T>
XII_ALWAYS_INLINE bool IsInstanceOf () const
 Returns whether the type of this instance is of the given type or derived from it.

Static Public Member Functions

static void ToggleLayerLoaded (xiiScene2Document *pM_pSceneDocument, xiiUuid layerGuid)
Static Public Member Functions inherited from xiiNoBase
static const xiiRTTI * GetStaticRTTI ()

Additional Inherited Members

Public Attributes inherited from xiiAction
xiiEvent< xiiAction * > m_StatusUpdateEvent
 Fire when the state of the action changes (enabled, value etc...).
Protected Attributes inherited from xiiButtonAction
bool m_bCheckable
bool m_bChecked
bool m_bEnabled
bool m_bVisible
Protected Attributes inherited from xiiNamedAction
xiiString m_sName
xiiString m_sAdditionalDisplayString
xiiString m_sIconPath
Protected Attributes inherited from xiiAction
xiiActionContext m_Context

Member Function Documentation

◆ Execute()

void xiiLayerAction::Execute ( const xiiVariant & value)
overridevirtual

Implements xiiAction.


The documentation for this class was generated from the following files:
  • /home/runner/work/XII/XII/Source/EditorPlugins/Scene/EditorPluginScene/Actions/LayerActions.h
  • /home/runner/work/XII/XII/Source/EditorPlugins/Scene/EditorPluginScene/Actions/LayerActions.cpp