Polyphase Game Engine
Loading...
Searching...
No Matches
ActionParentSelectedWith Class Reference

Action to create a new parent node and reparent selected nodes under it. More...

#include <ActionManager.h>

Inheritance diagram for ActionParentSelectedWith:
Action

Public Member Functions

 DECLARE_ACTION_INTERFACE (ParentSelectedWith)
 
 ActionParentSelectedWith (const std::vector< Node * > &nodes, TypeId newParentType, ArrayOrientation arrayOrientation=ArrayOrientation::Vertical)
 
- Public Member Functions inherited from Action
virtual ~Action ()
 
virtual void Execute ()
 
virtual void Reverse ()
 
virtual const char * GetName ()=0
 

Protected Attributes

std::vector< NodePtrmNodes
 
std::vector< NodePtrmPrevParents
 
std::vector< int32_t > mPrevChildIndices
 
std::vector< int32_t > mPrevBoneIndices
 
NodePtr mCreatedParent
 
NodePtr mCreatedParentParent
 
int32_t mCreatedParentChildIndex = -1
 
TypeId mNewParentType
 
ArrayOrientation mArrayOrientation = ArrayOrientation::Vertical
 
bool mFirstExecute = true
 

Detailed Description

Action to create a new parent node and reparent selected nodes under it.

Constructor & Destructor Documentation

◆ ActionParentSelectedWith()

ActionParentSelectedWith::ActionParentSelectedWith ( const std::vector< Node * > &  nodes,
TypeId  newParentType,
ArrayOrientation  arrayOrientation = ArrayOrientation::Vertical 
)

Member Function Documentation

◆ DECLARE_ACTION_INTERFACE()

ActionParentSelectedWith::DECLARE_ACTION_INTERFACE ( ParentSelectedWith  )

Member Data Documentation

◆ mArrayOrientation

ArrayOrientation ActionParentSelectedWith::mArrayOrientation = ArrayOrientation::Vertical
protected

◆ mCreatedParent

NodePtr ActionParentSelectedWith::mCreatedParent
protected

◆ mCreatedParentChildIndex

int32_t ActionParentSelectedWith::mCreatedParentChildIndex = -1
protected

◆ mCreatedParentParent

NodePtr ActionParentSelectedWith::mCreatedParentParent
protected

◆ mFirstExecute

bool ActionParentSelectedWith::mFirstExecute = true
protected

◆ mNewParentType

TypeId ActionParentSelectedWith::mNewParentType
protected

◆ mNodes

std::vector<NodePtr> ActionParentSelectedWith::mNodes
protected

◆ mPrevBoneIndices

std::vector<int32_t> ActionParentSelectedWith::mPrevBoneIndices
protected

◆ mPrevChildIndices

std::vector<int32_t> ActionParentSelectedWith::mPrevChildIndices
protected

◆ mPrevParents

std::vector<NodePtr> ActionParentSelectedWith::mPrevParents
protected

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