26 virtual std::string
name()
const override
39 scenePath_ = scenePathClone;
44 [[nodiscard]]
virtual size_t heapBytes()
const override
46 return scenePath_.native().capacity() *
sizeof( scenePath_.native()[0] )
52 std::shared_ptr<SceneRootObject> root_;
53 std::filesystem::path scenePath_;
Definition MRHistoryAction.h:15
Definition MRSceneRoot.h:62
Definition MRSwapRootAction.h:16
size_t heapBytes(const BitSet &bs)
returns the amount of memory given BitSet occupies on heap
Definition MRBitSet.h:313
virtual std::string name() const override
Definition MRSwapRootAction.h:26
MRVIEWER_API Viewer & getViewerInstance()
returns global instance of Viewer class
static MRMESH_API std::shared_ptr< SceneRootObject > & getSharedPtr()
Type
Definition MRHistoryAction.h:22
virtual void action(HistoryAction::Type) override
This function is called on history action (undo, redo, etc.)
Definition MRSwapRootAction.h:31
static MRMESH_API const std::filesystem::path & getScenePath()
MRVIEWER_API void makeTitleFromSceneRootPath()
update the title of the main window and, if any scene was opened, show its filename
static MRMESH_API void setScenePath(const std::filesystem::path &scenePath)
void setSceneDirty()
Call this function to force redraw scene into scene texture.
Definition MRViewer.h:167
virtual size_t heapBytes() const override
returns the amount of memory this object occupies on heap
Definition MRSwapRootAction.h:44
SwapRootAction(const std::string &name)
Constructed from original root.
Definition MRSwapRootAction.h:19
only for bindings generation
Definition MRCameraOrientationPlugin.h:8