#include <HUndoManager.h>
HUndoItemMatrix MatrixUndo Item that stores a segment key and its associated matrix.
HUndoItemMatrix::HUndoItemMatrix |
( |
HBaseView * |
view, |
|
|
int |
num_items, |
|
|
HC_KEY * |
keys, |
|
|
float * |
matrices |
|
) |
| |
virtual int HUndoItemMatrix::GetCount |
( |
| ) |
|
|
inlinevirtual |
- Returns
- The number of segments referenced by this item.
virtual HC_KEY* HUndoItemMatrix::GetKey |
( |
| ) |
|
|
inlinevirtual |
- Returns
- The list of item keys that this item records and perform transformations on.
References HC_KEY.
virtual float* HUndoItemMatrix::GetMatrix |
( |
| ) |
|
|
inlinevirtual |
- Returns
- A pointer to the list of item transformation matrices that will be applied to the segment list.
virtual const char* HUndoItemMatrix::GetName |
( |
| ) |
|
|
inlinevirtual |
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. |
Reimplemented from HUndoItem.
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. |
Reimplemented from HUndoItem.
int HUndoItemMatrix::m_Count |
|
protected |
Number of segments referenced by this undo item.
float* HUndoItemMatrix::m_Matrix |
|
protected |
The modelling matrices associated with the segment list.
A pointer to view associated to this item
HC_KEY* HUndoItemMatrix::m_SegmentKey |
|
protected |
The keys of the segments associated with matrices.
The documentation for this class was generated from the following file: