#include <HUndoManager.h>
|
virtual int | GetCount () |
|
virtual HC_KEY * | GetKey () |
|
virtual void | GetKey (HC_KEY keys[]) |
|
virtual float * | GetMatrix () |
|
virtual void | GetMatrix (float m[]) |
|
virtual const char * | GetName () |
|
| HUndoItemMatrix (HBaseView *view, int num_items, HC_KEY keys[], float matrices[]) |
|
virtual void | Redo (bool setupOnly=false) |
|
virtual void | Undo (bool setupOnly=false) |
|
| HUndoItem () |
|
HUndoItemMatrix MatrixUndo Item that stores a segment key and its associated matrix.
◆ HUndoItemMatrix()
HUndoItemMatrix::HUndoItemMatrix |
( |
HBaseView * |
view, |
|
|
int |
num_items, |
|
|
HC_KEY |
keys[], |
|
|
float |
matrices[] |
|
) |
| |
◆ GetCount()
virtual int HUndoItemMatrix::GetCount |
( |
| ) |
|
|
inlinevirtual |
- Returns
- The number of segments referenced by this item.
◆ GetKey()
virtual HC_KEY* HUndoItemMatrix::GetKey |
( |
| ) |
|
|
inlinevirtual |
- Returns
- The list of item keys that this item records and perform transformations on.
◆ GetMatrix()
virtual float* HUndoItemMatrix::GetMatrix |
( |
| ) |
|
|
inlinevirtual |
- Returns
- A pointer to the list of item transformation matrices that will be applied to the segment list.
◆ GetName()
virtual const char* HUndoItemMatrix::GetName |
( |
| ) |
|
|
inlinevirtual |
◆ Redo()
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.
◆ Undo()
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.
◆ m_Count
int HUndoItemMatrix::m_Count |
|
protected |
Number of segments referenced by this undo item.
◆ m_Matrix
float* HUndoItemMatrix::m_Matrix |
|
protected |
The modelling matrices associated with the segment list.
◆ m_pView
A pointer to view associated to this item
◆ m_SegmentKey
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: