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 { Type::Undo , Type::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


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