#include <HUndoManager.h>
Public Member Functions | |
virtual int | GetCount () |
virtual void | GetKey (HC_KEY *keys) |
virtual HC_KEY * | GetKey () |
virtual void | GetMatrix (float *m) |
virtual float * | GetMatrix () |
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) |
Protected Attributes | |
int | m_Count |
float * | m_Matrix |
HBaseView * | m_pView |
HC_KEY * | m_SegmentKey |
HUndoItemMatrix::HUndoItemMatrix | ( | HBaseView * | view, | |
int | num_items, | |||
HC_KEY * | keys, | |||
float * | matrices | |||
) |
Constructs an HUndoItemMatrix object.
virtual int HUndoItemMatrix::GetCount | ( | ) | [inline, virtual] |
virtual HC_KEY* HUndoItemMatrix::GetKey | ( | ) | [inline, virtual] |
References HC_KEY.
virtual float* HUndoItemMatrix::GetMatrix | ( | ) | [inline, virtual] |
virtual const char* HUndoItemMatrix::GetName | ( | ) | [inline, virtual] |
virtual void HUndoItemMatrix::Redo | ( | bool | setuponly = false |
) | [virtual] |
This method restores the transformation matrices applied to the given segments prior to undo being called.
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.
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.
HBaseView* HUndoItemMatrix::m_pView [protected] |
A pointer to view associated to this item
HC_KEY* HUndoItemMatrix::m_SegmentKey [protected] |
The keys of the segments associated with matrices.