Alphabetical Class Index  Class Hierarchy   File Members   Compound Members   File List  

HUndoItemMatrix Class Reference

#include <HUndoManager.h>

List of all members.

Public Member Functions

virtual int GetCount ()
virtual HC_KEYGetKey ()
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)

Protected Attributes

int m_Count
float * m_Matrix
HBaseViewm_pView
HC_KEYm_SegmentKey

Detailed Description

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


Constructor & Destructor Documentation

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

Constructs an HUndoItemMatrix object.


Member Function Documentation

virtual int HUndoItemMatrix::GetCount ( ) [inline, virtual]
Returns:
The number of segments referenced by this item.
virtual HC_KEY* HUndoItemMatrix::GetKey ( ) [inline, virtual]
Returns:
The list of item keys that this item records and perform transformations on.

References HC_KEY.

virtual float* HUndoItemMatrix::GetMatrix ( ) [inline, virtual]
Returns:
A pointer to the list of item transformation matrices that will be applied to the segment list.
virtual const char* HUndoItemMatrix::GetName ( ) [inline, virtual]
Returns:
The item type name which is 'HUndoItemMatrix'.

Reimplemented from HUndoItem.

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:
setupOnlyPass 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:
setupOnlyPass true if you want to perform the undo without updating the view. The default value is false.

Reimplemented from HUndoItem.


Member Data Documentation

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

The keys of the segments associated with matrices.


The documentation for this class was generated from the following file: