MeshLib Documentation
Loading...
Searching...
No Matches
MR::ViewportParametersAction Class Reference

#include <MRViewportParametersAction.h>

+ Inheritance diagram for MR::ViewportParametersAction:

Public Member Functions

 ViewportParametersAction (std::string name, ViewportMask viewports=ViewportMask::all())
 Use this constructor to remember viewport configuration before making changes in it.
 
virtual std::string name () const override
 
virtual void action (HistoryAction::Type) override
 This function is called on history action (undo, redo, etc.)
 
virtual size_t heapBytes () const override
 returns the amount of memory this object occupies on heap
 
- Public Member Functions inherited from MR::HistoryAction
virtual ~HistoryAction ()=default
 

Additional Inherited Members

- Public Types inherited from MR::HistoryAction
enum class  Type { Undo , Redo }
 

Detailed Description

Undo action for setting viewport parameters Remembers everything contained in Viewport::Parameters Can be used with Viewport::setParameters or other functions like Viewer::preciseFitDataViewport etc.


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