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

#include <MRChangeObjectFields.h>

+ Inheritance diagram for MR::ChangeVisualizePropertyAction:

Public Types

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

Public Member Functions

 ChangeVisualizePropertyAction (const std::string &name, const std::shared_ptr< VisualObject > &obj, AnyVisualizeMaskEnum visualizeMaskType)
 use this constructor to remember object's visualize property mask before making any changes in it
 
 ChangeVisualizePropertyAction (const std::string &name, const std::shared_ptr< VisualObject > &obj, AnyVisualizeMaskEnum visualizeMaskType, ViewportMask newMask)
 use this constructor to remember object's visualize property mask and immediately set new value
 
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
 

Static Public Member Functions

static void setObjectDirty (const std::shared_ptr< VisualObject > &)
 

Detailed Description

History action for visualizeMaskType change

Member Typedef Documentation

◆ Obj

Constructor & Destructor Documentation

◆ ChangeVisualizePropertyAction() [1/2]

MR::ChangeVisualizePropertyAction::ChangeVisualizePropertyAction ( const std::string & name,
const std::shared_ptr< VisualObject > & obj,
AnyVisualizeMaskEnum visualizeMaskType )
inline

use this constructor to remember object's visualize property mask before making any changes in it

◆ ChangeVisualizePropertyAction() [2/2]

MR::ChangeVisualizePropertyAction::ChangeVisualizePropertyAction ( const std::string & name,
const std::shared_ptr< VisualObject > & obj,
AnyVisualizeMaskEnum visualizeMaskType,
ViewportMask newMask )
inline

use this constructor to remember object's visualize property mask and immediately set new value

Member Function Documentation

◆ action()

virtual void MR::ChangeVisualizePropertyAction::action ( HistoryAction::Type actionType)
inlineoverridevirtual

This function is called on history action (undo, redo, etc.)

Implements MR::HistoryAction.

◆ heapBytes()

virtual size_t MR::ChangeVisualizePropertyAction::heapBytes ( ) const
inlinenodiscardoverridevirtual

returns the amount of memory this object occupies on heap

Implements MR::HistoryAction.

◆ name()

virtual std::string MR::ChangeVisualizePropertyAction::name ( ) const
inlineoverridevirtual

Implements MR::HistoryAction.

◆ setObjectDirty()

static void MR::ChangeVisualizePropertyAction::setObjectDirty ( const std::shared_ptr< VisualObject > & )
inlinestatic

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