XII Release 0.1.0
Loading...
Searching...
No Matches
xiiDuplicateObjectsCommand Class Reference

#include <SceneCommands.h>

Inheritance diagram for xiiDuplicateObjectsCommand:
[legend]

Public Attributes

xiiString m_sGraphTextFormat
xiiString m_sParentNodes
xiiUInt32 m_uiNumberOfCopies
 A stringyfied map in format "uuidObj1=uuidParent1;..." that defines the previous parents of all top level objects.
xiiVec3 m_vAccumulativeTranslation
 if set to 0 (the default), all the 'advanced' duplication code is skipped and only a single straight copy is made
xiiVec3 m_vAccumulativeRotation
xiiVec3 m_vRandomRotation
xiiVec3 m_vRandomTranslation
bool m_bGroupDuplicates
xiiInt8 m_iRevolveAxis
 0 = disabled, 1 = x, 2 = y, 3 = z
float m_fRevolveRadius
xiiAngle m_RevolveStartAngle
xiiAngle m_RevolveAngleStep

Additional Inherited Members

Public Types inherited from xiiCommand
enum class  CommandState { WasDone , WasUndone }
Public Member Functions inherited from xiiCommand
bool IsUndoable () const
bool HasChildActions () const
bool HasModifiedDocument () const
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 inherited from xiiNoBase
static const xiiRTTI * GetStaticRTTI ()
Protected Member Functions inherited from xiiCommand
xiiStatus Do (bool bRedo)
xiiStatus Undo (bool bFireEvents)
void Cleanup (CommandState state)
xiiStatus AddSubCommand (xiiCommand &command)
xiiDocument * GetDocument ()
Protected Attributes inherited from xiiCommand
xiiString m_sDescription
bool m_bUndoable = true
bool m_bModifiedDocument = true
xiiHybridArray< xiiCommand *, 8 > m_ChildActions
xiiDocument * m_pDocument = nullptr

Detailed Description

Copies selected hierarchies with remapped identities and reversible world-space transforms. Grouping creates one game object per copy at the average source position. A common parent is retained; sources with different parents are grouped at the document root.

Member Function Documentation

◆ CleanupInternal()

void xiiDuplicateObjectsCommand::CleanupInternal ( CommandState state)
overrideprivatevirtual

Implements xiiCommand.

◆ DoInternal()

xiiStatus xiiDuplicateObjectsCommand::DoInternal ( bool bRedo)
overrideprivatevirtual

Implements xiiCommand.

◆ UndoInternal()

xiiStatus xiiDuplicateObjectsCommand::UndoInternal ( bool bFireEvents)
overrideprivatevirtual

Implements xiiCommand.


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