83 MRVIEWER_API
virtual void drawDialog(
float menuScaling, ImGuiContext* ctx );
85 virtual bool action()
override {
return enable( !isEnabled() ); }
87 virtual bool isActive()
const override {
return isEnabled(); };
89 virtual bool blocking()
const override {
return true; }
94 MRVIEWER_API
virtual bool enable(
bool on );
100 virtual const std::string&
uiName()
const override {
return plugin_name; }
127 bool isEnabled_{
false};
128 bool dialogIsOpen_{
false};
129 bool dialogIsCollapsed_{
false };
134template<
typename ...Connectables>
135class StateListenerPlugin :
public StateBasePlugin,
public MultiListener<Connectables...>
144 virtual bool enable(
bool on )
override final
Definition MRStatePluginUpdate.h:12
Definition MRSceneSelectionChange.h:12
Definition MRStatePlugin.h:78
virtual MRVIEWER_API bool enable(bool on)
static MRVIEWER_API const char * getTabName(StatePluginTabs tab)
virtual bool isActive() const override
Definition MRStatePlugin.h:87
virtual MRVIEWER_API std::string getTooltip() const
virtual MRVIEWER_API bool onDisable_()
MRVIEWER_API StateBasePlugin(std::string name, StatePluginTabs tab=StatePluginTabs::Other)
virtual bool action() override
Definition MRStatePlugin.h:85
std::string plugin_name
Definition MRStatePlugin.h:117
MRVIEWER_API StatePluginTabs getTab() const
virtual const std::string & uiName() const override
Definition MRStatePlugin.h:100
static MRVIEWER_API const char * UINameSuffix()
virtual MRVIEWER_API bool onEnable_()
MRVIEWER_API bool checkStringMask(const std::string &mask) const
virtual ~StateBasePlugin()=default
virtual MRVIEWER_API bool ImGuiBeginWindow_(ImGui::CustomStatePluginWindowParameters params)
virtual MRVIEWER_API void drawDialog(float menuScaling, ImGuiContext *ctx)
virtual MRVIEWER_API bool dialogIsOpen() const
virtual std::string sortString() const
Definition MRStatePlugin.h:112
virtual bool blocking() const override
Definition MRStatePlugin.h:89
MRVIEWER_API bool isEnabled() const
MRVIEWER_API void setUINameDeferred(std::string name)
virtual MRVIEWER_API void shutdown() override
Definition MRViewerFwd.h:60
virtual bool enable(bool on) override final
Definition MRStatePlugin.h:144
virtual ~StateListenerPlugin()=default
Definition MRViewerPlugin.h:27
Viewer * viewer
Definition MRViewerPlugin.h:46
Definition MRCameraOrientationPlugin.h:8
struct MRMESH_CLASS PointCloud
Definition MRMesh/MRMeshFwd.h:477
struct MRMESH_CLASS Mesh
Definition MRMesh/MRMeshFwd.h:475
StatePluginTabs
Definition MRStatePlugin.h:58
Structure that contains parameters for State plugin window with custom style.
Definition ImGuiHelpers.h:179
virtual void disconnect()
Definition MRViewerEventsListener.h:42
virtual void connect(Viewer *viewer, int group=0, boost::signals2::connect_position pos=boost::signals2::connect_position::at_back)
Definition MRViewerEventsListener.h:35