HUndoItemMatrix
-
class
HUndoItemMatrix HUndoItemMatrixMatrixUndo Item that stores a segment key and its associated matrix.Inherits from:
HUndoItemIndex
Methods
GetCount()GetKey()GetKey()GetMatrix()GetMatrix()GetName()HUndoItemMatrix()Redo()Undo()~HUndoItemMatrix()
Variables
Methods
-
HUndoItemMatrix::HUndoItemMatrix(HBaseView *view, int num_items, HC_KEY keys[], float matrices[]) Constructs an
HUndoItemMatrixobject.
-
virtual
HUndoItemMatrix::~HUndoItemMatrix() virtual
-
virtual void
HUndoItemMatrix::Undo(bool setupOnly = false) virtual
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
HUndoItemMatrix::Redo(bool setupOnly = false) virtual
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.
-
virtual int
HUndoItemMatrix::GetCount() virtual
Returns
The number of segments referenced by this item.
-
virtual HC_KEY *
HUndoItemMatrix::GetKey() virtual
Returns
The list of item keys that this item records and perform transformations on.
-
virtual void
HUndoItemMatrix::GetKey(HC_KEY keys[]) virtual
-
virtual float *
HUndoItemMatrix::GetMatrix() virtual
Returns
A pointer to the list of item transformation matrices that will be applied to the segment list.
-
virtual void
HUndoItemMatrix::GetMatrix(float m[]) virtual
-
virtual char const *
HUndoItemMatrix::GetName() virtual
Returns
The item type name which is ‘HUndoItemMatrix‘.
Variables
-
int
HUndoItemMatrix::m_Count protected
intNumber of segments referenced by this undo item.
-
float *
HUndoItemMatrix::m_Matrix protected
floatThe modelling matrices associated with the segment list.
-
HC_KEY *
HUndoItemMatrix::m_SegmentKey protected
HC_KEYThe keys of the segments associated with matrices.
-
HBaseView *
HUndoItemMatrix::m_pView protected
A pointer to view associated to this item