2#include "MRMesh/MRMeshFwd.h"
8#ifndef MESHLIB_NO_VOXELS
9#include "MRVoxels/MRVoxelsFwd.h"
23 std::string
isAvailable(
const std::vector<std::shared_ptr<const Object>>& )
const override;
37 virtual void dragEntrance_(
bool entered )
override;
38 virtual bool dragOver_(
int x,
int y )
override;
39 virtual bool dragDrop_(
const std::vector<std::filesystem::path>& paths )
override;
41 virtual void preDraw_()
override;
43 bool dragging_{
false };
46 void parseLaunchParams_();
47 void setupListUpdate_();
49 boost::signals2::scoped_connection recentStoreConnection_;
52 std::shared_ptr<OpenDirectoryMenuItem> openDirectoryItem_;
55#if !defined( MESHLIB_NO_VOXELS ) && !defined( MRVOXELS_NO_DICOM )
69 virtual std::string
isAvailable(
const std::vector<std::shared_ptr<const Object>>&objs )
const override;
84 virtual std::string
isAvailable(
const std::vector<std::shared_ptr<const Object>>& )
const override;
88 void saveScene_(
const std::filesystem::path& savePath );
103 virtual bool blocking()
const override {
return false; }
105 Vector2i resolution_;
106 bool transparentBg_{
true };
121 virtual std::string
isAvailable(
const std::vector<std::shared_ptr<const Object>>& )
const override;
checks that given vector has at least N objects if type ObjectT
Definition MRSceneStateCheck.h:125
SaveSceneAsMenuItem(const std::string &pluginName="Save Scene As")
virtual std::string isAvailable(const std::vector< std::shared_ptr< const Object > > &) const override
return empty string if all requirements are satisfied, otherwise return first unsatisfied requirement
virtual bool action() override
returns true if state of item changed
std::vector< std::shared_ptr< RibbonMenuItem > > DropItemsList
Definition MRRibbonMenuItem.h:50
std::string isAvailable(const std::vector< std::shared_ptr< const Object > > &) const override
return empty string if all requirements are satisfied, otherwise return first unsatisfied requirement
virtual void drawDialog(ImGuiContext *) override
virtual bool action() override
returns true if state of item changed
CaptureScreenshotToClipBoardMenuItem()
virtual bool action() override
returns true if state of item changed
CaptureScreenshotMenuItem()
bool action() override
returns true if state of item changed
virtual bool action() override
returns true if state of item changed
virtual const DropItemsList & dropItems() const override
virtual bool action() override
returns true if state of item changed
virtual std::string isAvailable(const std::vector< std::shared_ptr< const Object > > &) const override
return empty string if all requirements are satisfied, otherwise return first unsatisfied requirement
virtual std::string isAvailable(const std::vector< std::shared_ptr< const Object > > &objs) const override
return empty string if all requirements are satisfied, otherwise return first unsatisfied requirement
std::vector< std::filesystem::path > FileNamesStack
Definition MRIOFilesMenuItems.h:17
virtual bool blocking() const override
Definition MRIOFilesMenuItems.h:103
virtual bool action() override
returns true if state of item changed
virtual bool action() override
returns true if state of item changed
void openDirectory(const std::filesystem::path &directory) const
void saveScene_(const std::filesystem::path &savePath)
CaptureUIScreenshotMenuItem()
virtual bool action() override
returns true if state of item changed
std::vector< IOFilter > IOFilters
Definition MRIOFilters.h:32
only for bindings generation
Definition MRCameraOrientationPlugin.h:8
Definition MRViewerEventsListener.h:32