#include <HUndoManager.h>

Public Member Functions

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)
 
- Public Member Functions inherited from HUndoItem
 HUndoItem ()
 

Protected Attributes

int m_Count
 
float * m_Matrix
 
HBaseViewm_pView
 
HC_KEY * m_SegmentKey
 

Detailed Description

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

Constructor & Destructor Documentation

◆ HUndoItemMatrix()

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

Constructs an HUndoItemMatrix object.

Member Function Documentation

◆ 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
Returns
The item type name which is 'HUndoItemMatrix'.

Reimplemented from HUndoItem.

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

Reimplemented from HUndoItem.

Member Data Documentation

◆ 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

HBaseView* HUndoItemMatrix::m_pView
protected

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: