35 std::vector<std::shared_ptr<MR::Object>> selectedObjs_;
47 bool meshChanged_{
false };
50 std::vector<boost::signals2::scoped_connection> meshChangedConnections_;
71 std::vector<boost::signals2::scoped_connection> connections_;
83 bool pointCloudChanged_{
false };
86 std::vector<boost::signals2::scoped_connection> pointCloudChangedConnections_;
98template<
typename ...Updates>
104 ( Updates::preDrawUpdate(), ... );
109 ( Updates::onPluginEnable_(), ... );
114 [[maybe_unused]]
int dummy;
115 ( void )( dummy = ... = ( Updates::onPluginDisable_(), 0 ) );
119 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 shouldClose_() const override
virtual MRVIEWER_API void onPluginDisable_() override
Definition MRStatePluginUpdate.h:77
virtual MRVIEWER_API void onPluginEnable_() override
virtual MRVIEWER_API bool shouldClose_() const override
virtual MRVIEWER_API void onPluginDisable_() override
Definition MRStatePluginUpdate.h:91
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:57
virtual MRVIEWER_API void onPluginDisable_() override
std::function< void()> UpdateFunc
Definition MRStatePluginUpdate.h:59
virtual MRVIEWER_API void onPluginEnable_() override
virtual MRVIEWER_API void preDrawUpdate() override
void setUpdateFunc(UpdateFunc func)
Definition MRStatePluginUpdate.h:61
Definition MRStatePluginUpdate.h:100
virtual void preDrawUpdate() override
Definition MRStatePluginUpdate.h:102
virtual void onPluginDisable_() override
Definition MRStatePluginUpdate.h:111
virtual void onPluginEnable_() override
Definition MRStatePluginUpdate.h:107
virtual bool shouldClose_() const override
Definition MRStatePluginUpdate.h:117
Definition MRCameraOrientationPlugin.h:8