DDraceNetwork Docs
CEditorActionEnvelopeEditPoint Class Reference

#include <editor_actions.h>

Inheritance diagram for CEditorActionEnvelopeEditPoint:
[legend]
Collaboration diagram for CEditorActionEnvelopeEditPoint:
[legend]

Public Types

enum class  EEditType { TIME , VALUE , CURVE_TYPE , HANDLE }
 

Public Member Functions

 CEditorActionEnvelopeEditPoint (CEditor *pEditor, int EnvelopeIndex, int PointIndex, int Channel, EEditType EditType, int Previous, int Current)
 
void Undo () override
 
void Redo () override
 
- Public Member Functions inherited from IEditorAction
 IEditorAction (CEditor *pEditor)
 
 IEditorAction ()=default
 
virtual ~IEditorAction ()=default
 
virtual void Undo ()=0
 
virtual void Redo ()=0
 
virtual bool IsEmpty ()
 
const char * DisplayText () const
 

Private Member Functions

void Apply (int Value)
 

Private Attributes

int m_EnvelopeIndex
 
int m_PointIndex
 
int m_Channel
 
EEditType m_EditType
 
int m_Previous
 
int m_Current
 
std::shared_ptr< CEnvelopem_pEnv
 

Additional Inherited Members

- Protected Attributes inherited from IEditorAction
CEditorm_pEditor
 
char m_aDisplayText [256]
 

Member Enumeration Documentation

◆ EEditType

Enumerator
TIME 
VALUE 
CURVE_TYPE 
HANDLE 

Constructor & Destructor Documentation

◆ CEditorActionEnvelopeEditPoint()

CEditorActionEnvelopeEditPoint::CEditorActionEnvelopeEditPoint ( CEditor pEditor,
int  EnvelopeIndex,
int  PointIndex,
int  Channel,
EEditType  EditType,
int  Previous,
int  Current 
)

Member Function Documentation

◆ Apply()

void CEditorActionEnvelopeEditPoint::Apply ( int  Value)
private

◆ Redo()

void CEditorActionEnvelopeEditPoint::Redo ( )
overridevirtual

Implements IEditorAction.

◆ Undo()

void CEditorActionEnvelopeEditPoint::Undo ( )
overridevirtual

Implements IEditorAction.

Member Data Documentation

◆ m_Channel

int CEditorActionEnvelopeEditPoint::m_Channel
private

◆ m_Current

int CEditorActionEnvelopeEditPoint::m_Current
private

◆ m_EditType

EEditType CEditorActionEnvelopeEditPoint::m_EditType
private

◆ m_EnvelopeIndex

int CEditorActionEnvelopeEditPoint::m_EnvelopeIndex
private

◆ m_pEnv

std::shared_ptr<CEnvelope> CEditorActionEnvelopeEditPoint::m_pEnv
private

◆ m_PointIndex

int CEditorActionEnvelopeEditPoint::m_PointIndex
private

◆ m_Previous

int CEditorActionEnvelopeEditPoint::m_Previous
private

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