HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
SOP_UndoModel Class Reference

#include <SOP_UndoModel.h>

+ Inheritance diagram for SOP_UndoModel:

Public Types

using OP_LockTypes = OP_Node::OP_LockTypes
 

Public Member Functions

 SOP_UndoModel ()
 
 ~SOP_UndoModel () override
 
void init (OP_LockTypes prev_lock, OP_LockTypes new_lock, SOP_Node *sop, SOP_SoftLockData *prev_slockdata=0, SOP_SoftLockData *new_slockdata=0)
 
void undo () override
 
void redo () override
 
void setName (const char *name)
 
const char * getName ()
 
- Public Member Functions inherited from UT_Undo
 UT_Undo ()
 
virtual ~UT_Undo ()
 
virtual bool isValid ()
 
virtual bool needToUndo ()
 
virtual bool needToRedo ()
 
virtual int isUndoBlock () const
 
virtual int64 getMemoryUsage ()
 
void addToMemoryUsage (int64 k)
 
void setMemoryUsage (int64 k)
 
void setNextUndo (UT_Undo *nundo)
 
UT_UndogetNextUndo ()
 

Protected Types

enum  SOP_UndoModelOperation { SOPUNDOMODEL_UNDO, SOPUNDOMODEL_REDO }
 

Protected Member Functions

bool hasSopUndo ()
 
void doUndo (void *modeler)
 
void doRedo (void *modeler)
 
- Protected Member Functions inherited from UT_Undo
void generateTmpFilename (const char *prefix, UT_String &filename)
 

Detailed Description

Definition at line 25 of file SOP_UndoModel.h.

Member Typedef Documentation

Member Enumeration Documentation

Enumerator
SOPUNDOMODEL_UNDO 
SOPUNDOMODEL_REDO 

Definition at line 46 of file SOP_UndoModel.h.

Constructor & Destructor Documentation

SOP_UndoModel::SOP_UndoModel ( )
SOP_UndoModel::~SOP_UndoModel ( )
override

Member Function Documentation

void SOP_UndoModel::doRedo ( void modeler)
protected
void SOP_UndoModel::doUndo ( void modeler)
protected
const char* SOP_UndoModel::getName ( )
inline

Definition at line 43 of file SOP_UndoModel.h.

bool SOP_UndoModel::hasSopUndo ( )
inlineprotected

Definition at line 52 of file SOP_UndoModel.h.

void SOP_UndoModel::init ( OP_LockTypes  prev_lock,
OP_LockTypes  new_lock,
SOP_Node sop,
SOP_SoftLockData *  prev_slockdata = 0,
SOP_SoftLockData *  new_slockdata = 0 
)
void SOP_UndoModel::redo ( )
overridevirtual

Implements UT_Undo.

void SOP_UndoModel::setName ( const char *  name)
inline

Definition at line 42 of file SOP_UndoModel.h.

void SOP_UndoModel::undo ( )
overridevirtual

Implements UT_Undo.


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