#include <HUndoManager.h>
HUndoItemCamera stores a camera state for undo and redo.
◆ HUndoItemCamera()
HUndoItemCamera::HUndoItemCamera |
( |
HBaseView * |
view | ) |
|
◆ GetCamera()
virtual HCamera* HUndoItemCamera::GetCamera |
( |
| ) |
|
|
inlinevirtual |
- Returns
- A pointer to this item's camera.
◆ GetName()
virtual const char* HUndoItemCamera::GetName |
( |
| ) |
|
|
inlinevirtual |
◆ 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
-
setupOnly | Pass 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
-
setupOnly | Pass true if you want to perform the undo without updating the view.
The default value is false. |
Reimplemented from HUndoItem.
◆ m_Camera
◆ m_pView
Pointer to view associated to this item
The documentation for this class was generated from the following file: