HUndoItemCamera

Detailed Description

class HUndoItemCamera : public HUndoItem

HUndoItemCamera stores a camera state for undo and redo.

Public Functions

HUndoItemCamera(HBaseView *view)

Constructs an HUndoItemCamera object.

Parameters:view – The HBaseView associated with this undo item.
inline virtual ~HUndoItemCamera()
virtual void Undo(bool setupOnly = false)

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

Parameters:setupOnly – Pass true if you want to perform the undo without updating the view. The default value is false.
virtual void Redo(bool setupOnly = false)

This method returns the scene to being viewed by the camera that was used prior to the undo method being called.

Parameters:setupOnly – Pass true if you want to perform the redo without updating the view. The default value is false.
inline virtual HCamera *GetCamera()
Returns:A pointer to this item’s camera.
inline virtual char const *GetName()
Returns:The item type name which is ‘HUndoItemCamera’.