23 virtual std::string
name()
const override
36 scenePath_ = scenePathClone;
41 [[nodiscard]]
virtual size_t heapBytes()
const override
43 return scenePath_.native().capacity() *
sizeof( scenePath_.native()[0] )
49 std::shared_ptr<SceneRootObject> root_;
50 std::filesystem::path scenePath_;
Definition MRHistoryAction.h:12
Type
Definition MRHistoryAction.h:19
Definition MRSceneRoot.h:40
static MRMESH_API std::shared_ptr< SceneRootObject > & getSharedPtr()
static MRMESH_API const std::filesystem::path & getScenePath()
static MRMESH_API void setScenePath(const std::filesystem::path &scenePath)
Definition MRSwapRootAction.h:13
virtual std::string name() const override
Definition MRSwapRootAction.h:23
virtual void action(HistoryAction::Type) override
This function is called on history action (undo, redo, etc.)
Definition MRSwapRootAction.h:28
virtual size_t heapBytes() const override
returns the amount of memory this object occupies on heap
Definition MRSwapRootAction.h:41
SwapRootAction(const std::string &name)
Definition MRSwapRootAction.h:16
MRVIEWER_API void makeTitleFromSceneRootPath()
void setSceneDirty()
Definition MRViewer.h:174
size_t heapBytes(const std::vector< T > &vec)
returns the amount of memory given vector occupies on heap
Definition MRHeapBytes.h:15
Definition MRCameraOrientationPlugin.h:8
MRVIEWER_API Viewer & getViewerInstance()
returns global instance of Viewer class