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

#include <MRChangeSceneAction.h>

+ Inheritance diagram for MR::ChangeSceneAction:

Public Types

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

Public Member Functions

MRMESH_API ChangeSceneAction (const std::string &name, const std::shared_ptr< Object > &obj, Type type)
 Constructed before removal or addition.
 
virtual std::string name () const override
 
virtual MRMESH_API void action (HistoryAction::Type actionType) override
 This function is called on history action (undo, redo, etc.)
 
virtual MRMESH_API 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
 

Detailed Description

Change scene action

Member Enumeration Documentation

◆ Type

enum class MR::ChangeSceneAction::Type
strong
Enumerator
AddObject 
RemoveObject 

Constructor & Destructor Documentation

◆ ChangeSceneAction()

MRMESH_API MR::ChangeSceneAction::ChangeSceneAction ( const std::string & name,
const std::shared_ptr< Object > & obj,
Type type )

Constructed before removal or addition.

Member Function Documentation

◆ action()

virtual MRMESH_API void MR::ChangeSceneAction::action ( HistoryAction::Type actionType)
overridevirtual

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

Implements MR::HistoryAction.

◆ heapBytes()

virtual MRMESH_API size_t MR::ChangeSceneAction::heapBytes ( ) const
nodiscardoverridevirtual

returns the amount of memory this object occupies on heap

Implements MR::HistoryAction.

◆ name()

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

Implements MR::HistoryAction.


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