HUndoItemMatrix

Functions

HUndoItemMatrix
~HUndoItemMatrix
void Undo
void Redo
int GetCount
HC_KEY * GetKey
void GetKey
float * GetMatrix
void GetMatrix
char const * GetName

Detailed Description

class HUndoItemMatrix : public HUndoItem

HUndoItemMatrix MatrixUndo Item that stores a segment key and its associated matrix.

Public Functions

HUndoItemMatrix(HBaseView *view, int num_items, HC_KEY keys[], float matrices[])

Constructs an HUndoItemMatrix object.

virtual ~HUndoItemMatrix()
virtual void Undo(bool setupOnly = false)

This method restores the transformation matrices applied to the given segments when this undo item was created. Note that it also stores the current modelling matrices before making changes so the item can perform a redo.

Parameters:setupOnly – Pass true if you want to perform the undo without updating the view. The default value is false.
virtual void Redo(bool setupOnly = false)

This method restores the transformation matrices applied to the given segments prior to undo being called.

Parameters:setupOnly – Pass true if you want to perform the redo without updating the view. The default value is false.
inline virtual int GetCount()
Returns:The number of segments referenced by this item.
inline virtual HC_KEY *GetKey()
Returns:The list of item keys that this item records and perform transformations on.
virtual void GetKey(HC_KEY keys[])
inline virtual float *GetMatrix()
Returns:A pointer to the list of item transformation matrices that will be applied to the segment list.
virtual void GetMatrix(float m[])
inline virtual char const *GetName()
Returns:The item type name which is ‘HUndoItemMatrix’.