#include <HUndoManager.h>

Public Member Functions

virtual HCameraGetCamera ()
 
virtual const char * GetName ()
 
 HUndoItemCamera (HBaseView *view)
 
virtual void Redo (bool setupOnly=false)
 
virtual void Undo (bool setupOnly=false)
 
- Public Member Functions inherited from HUndoItem
 HUndoItem ()
 

Protected Attributes

HCamera m_Camera
 
HBaseViewm_pView
 

Detailed Description

HUndoItemCamera stores a camera state for undo and redo.

Constructor & Destructor Documentation

◆ HUndoItemCamera()

HUndoItemCamera::HUndoItemCamera ( HBaseView view)

Constructs an HUndoItemCamera object.

Parameters
viewThe HBaseView associated with this undo item.

Member Function Documentation

◆ GetCamera()

virtual HCamera* HUndoItemCamera::GetCamera ( )
inlinevirtual
Returns
A pointer to this item's camera.

◆ GetName()

virtual const char* HUndoItemCamera::GetName ( )
inlinevirtual
Returns
The item type name which is 'HUndoItemCamera'.

Reimplemented from HUndoItem.

◆ Redo()

virtual void HUndoItemCamera::Redo ( bool  setupOnly = false)
virtual

This method returns the scene to being viewed by the camera that was used prior to the undo method 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 HUndoItemCamera::Undo ( bool  setupOnly = false)
virtual

This method restores the scene to be viewed with the initial camera state when this item was created.

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_Camera

HCamera HUndoItemCamera::m_Camera
protected

Camera Information

◆ m_pView

HBaseView* HUndoItemCamera::m_pView
protected

Pointer to view associated to this item


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