35 std::vector<std::shared_ptr<MR::Object>> selectedObjs_;
50 bool meshChanged_{
false };
53 std::vector<boost::signals2::scoped_connection> meshChangedConnections_;
74 std::vector<boost::signals2::scoped_connection> connections_;
86 bool pointCloudChanged_{
false };
89 std::vector<boost::signals2::scoped_connection> pointCloudChangedConnections_;
101template<
typename ...Updates>
107 ( Updates::preDrawUpdate(), ... );
112 ( Updates::onPluginEnable_(), ... );
117 [[maybe_unused]]
int dummy;
118 ( void )( dummy = ... = ( Updates::onPluginDisable_(), 0 ) );
122 return ( Updates::shouldClose_() || ... );
Definition MRStatePluginUpdate.h:12
virtual void onPluginDisable_()
Definition MRStatePluginUpdate.h:21
virtual ~IPluginUpdate()=default
virtual void preDrawUpdate()
Definition MRStatePluginUpdate.h:16
virtual bool shouldClose_() const
Definition MRStatePluginUpdate.h:23
virtual void onPluginEnable_()
Definition MRStatePluginUpdate.h:19
Definition MRStatePluginUpdate.h:41
virtual MRVIEWER_API void onPluginEnable_() override
virtual MRVIEWER_API bool reactOnFaceSelectionChanges_() const
plugin can override it to make this helper class also react on face selections updates
Definition MRStatePluginUpdate.h:44
virtual MRVIEWER_API bool shouldClose_() const override
virtual MRVIEWER_API void onPluginDisable_() override
Definition MRStatePluginUpdate.h:80
virtual MRVIEWER_API void onPluginEnable_() override
virtual MRVIEWER_API bool shouldClose_() const override
virtual MRVIEWER_API void onPluginDisable_() override
Definition MRStatePluginUpdate.h:94
MRVIEWER_API bool shouldClose_() const override
Definition MRStatePluginUpdate.h:29
virtual MRVIEWER_API bool shouldClose_() const override
virtual MRVIEWER_API void onPluginDisable_() override
virtual MRVIEWER_API void onPluginEnable_() override
Definition MRStatePluginUpdate.h:60
virtual MRVIEWER_API void onPluginDisable_() override
std::function< void()> UpdateFunc
Definition MRStatePluginUpdate.h:62
virtual MRVIEWER_API void onPluginEnable_() override
virtual MRVIEWER_API void preDrawUpdate() override
void setUpdateFunc(UpdateFunc func)
Definition MRStatePluginUpdate.h:64
Definition MRStatePluginUpdate.h:103
virtual void preDrawUpdate() override
Definition MRStatePluginUpdate.h:105
virtual void onPluginDisable_() override
Definition MRStatePluginUpdate.h:114
virtual void onPluginEnable_() override
Definition MRStatePluginUpdate.h:110
virtual bool shouldClose_() const override
Definition MRStatePluginUpdate.h:120