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

Undo action for ObjectPoints point selection. More...

#include <MRChangeSelectionAction.h>

+ Inheritance diagram for MR::ChangePointPointSelectionAction:

Public Types

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

Public Member Functions

 ChangePointPointSelectionAction (const std::string &name, const std::shared_ptr< ObjectPoints > &objPoints)
 use this constructor to remember object's vertex selection before making any changes in it
 
virtual std::string name () const override
 
virtual void action (Type) override
 This function is called on history action (undo, redo, etc.)
 
const VertBitSet & selection () const
 
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< ObjectPoints > &)
 empty because set dirty is inside selectPoints
 

Detailed Description

Undo action for ObjectPoints point selection.

Member Typedef Documentation

◆ Obj

Constructor & Destructor Documentation

◆ ChangePointPointSelectionAction()

MR::ChangePointPointSelectionAction::ChangePointPointSelectionAction ( const std::string & name,
const std::shared_ptr< ObjectPoints > & objPoints )
inline

use this constructor to remember object's vertex selection before making any changes in it

Member Function Documentation

◆ action()

virtual void MR::ChangePointPointSelectionAction::action ( Type actionType)
inlineoverridevirtual

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

Implements MR::HistoryAction.

◆ heapBytes()

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

returns the amount of memory this object occupies on heap

Implements MR::HistoryAction.

◆ name()

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

Implements MR::HistoryAction.

◆ selection()

const VertBitSet & MR::ChangePointPointSelectionAction::selection ( ) const
inline

◆ setObjectDirty()

static void MR::ChangePointPointSelectionAction::setObjectDirty ( const std::shared_ptr< ObjectPoints > & )
inlinestatic

empty because set dirty is inside selectPoints


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