MeshLib
 
Loading...
Searching...
No Matches
MR::ChangePolylineTopologyAction Class Reference

Undo action for ObjectLines topology only (not points) change. More...

#include <MRChangePolylineAction.h>

+ Inheritance diagram for MR::ChangePolylineTopologyAction:

Public Types

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

Public Member Functions

 ChangePolylineTopologyAction (std::string name, const std::shared_ptr< ObjectLines > &obj)
 use this constructor to remember object's lines points before making any 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
 

Static Public Member Functions

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

Detailed Description

Undo action for ObjectLines topology only (not points) change.

Member Typedef Documentation

◆ Obj

Constructor & Destructor Documentation

◆ ChangePolylineTopologyAction()

MR::ChangePolylineTopologyAction::ChangePolylineTopologyAction ( std::string name,
const std::shared_ptr< ObjectLines > & obj )
inline

use this constructor to remember object's lines points before making any changes in it

Member Function Documentation

◆ action()

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

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

Implements MR::HistoryAction.

◆ heapBytes()

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

returns the amount of memory this object occupies on heap

Implements MR::HistoryAction.

◆ name()

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

Implements MR::HistoryAction.

◆ setObjectDirty()

static void MR::ChangePolylineTopologyAction::setObjectDirty ( const std::shared_ptr< ObjectLines > & obj)
inlinestatic

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