Kage Studio 0.7.230612
A Simple Free and Open Source 2D Animation Software
Loading...
Searching...
No Matches
UnRe Class Reference

#include <unre.h>

Public Member Functions

 UnRe ()
 
virtual ~UnRe ()
 
void stackDo (unsigned int p_layer, unsigned int p_frame, vector< VectorData > p_data)
 
KageDo undo ()
 
KageDo redo ()
 
KageDo previewUndo ()
 
void clear ()
 
void applyZoom (PointData p_originBefore, PointData p_originAfter, PointData p_zoomReference, double p_zoomRatio)
 

Protected Member Functions

PointData applyZoomRatio (PointData p_zoomReference, double p_zoomRatio, PointData p_value)
 for use of applyZoom
 

Protected Attributes

unsigned int _stackIndex
 
vector< KageDo_undoStack
 

Constructor & Destructor Documentation

◆ UnRe()

UnRe::UnRe ( )
Here is the call graph for this function:

◆ ~UnRe()

UnRe::~UnRe ( )
virtual
Here is the call graph for this function:

Member Function Documentation

◆ applyZoom()

void UnRe::applyZoom ( PointData  p_originBefore,
PointData  p_originAfter,
PointData  p_zoomReference,
double  p_zoomRatio 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ applyZoomRatio()

PointData UnRe::applyZoomRatio ( PointData  p_zoomReference,
double  p_zoomRatio,
PointData  p_value 
)
protected

for use of applyZoom

Here is the call graph for this function:
Here is the caller graph for this function:

◆ clear()

void UnRe::clear ( )
Here is the caller graph for this function:

◆ previewUndo()

KageDo UnRe::previewUndo ( )

While undo() pops a KageDo from a stack, this just gives a preview of the top KageDo on the stack.

Returns
latest state pushed in the stack
See also
undo()
Here is the caller graph for this function:

◆ redo()

KageDo UnRe::redo ( )
Here is the caller graph for this function:

◆ stackDo()

void UnRe::stackDo ( unsigned int  p_layer,
unsigned int  p_frame,
vector< VectorData p_data 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ undo()

KageDo UnRe::undo ( )
Here is the caller graph for this function:

Field Documentation

◆ _stackIndex

unsigned int UnRe::_stackIndex
protected

◆ _undoStack

vector<KageDo> UnRe::_undoStack
protected

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