MeshLib C++ Docs
Loading...
Searching...
No Matches
MR::ChangeOnePointInCloudAction Class Reference

#include <MRChangePointCloudAction.h>

+ Inheritance diagram for MR::ChangeOnePointInCloudAction:

Public Types

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

Public Member Functions

 ChangeOnePointInCloudAction (std::string name, const std::shared_ptr< ObjectPoints > &obj, VertId pointId)
 use this constructor to remember point's coordinates before making any changes in it
 
 ChangeOnePointInCloudAction (std::string name, const std::shared_ptr< ObjectPoints > &obj, VertId pointId, const Vector3f &newCoords)
 use this constructor to remember point's coordinates and immediate set new coordinates
 
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< ObjectPoints > &obj)
 

Detailed Description

Undo action that modifies one point's coordinates inside ObjectPoints

Member Typedef Documentation

◆ Obj

Constructor & Destructor Documentation

◆ ChangeOnePointInCloudAction() [1/2]

MR::ChangeOnePointInCloudAction::ChangeOnePointInCloudAction ( std::string name,
const std::shared_ptr< ObjectPoints > & obj,
VertId pointId )
inline

use this constructor to remember point's coordinates before making any changes in it

◆ ChangeOnePointInCloudAction() [2/2]

MR::ChangeOnePointInCloudAction::ChangeOnePointInCloudAction ( std::string name,
const std::shared_ptr< ObjectPoints > & obj,
VertId pointId,
const Vector3f & newCoords )
inline

use this constructor to remember point's coordinates and immediate set new coordinates

Member Function Documentation

◆ action()

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

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

Implements MR::HistoryAction.

◆ heapBytes()

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

returns the amount of memory this object occupies on heap

Implements MR::HistoryAction.

◆ name()

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

Implements MR::HistoryAction.

◆ setObjectDirty()

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

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