class cv::viz::WWidgetMerger
Overview
This class allows to merge several widgets to single one. More…
#include <widgets.hpp> class WWidgetMerger: public cv::viz::Widget3D { public: // methods void addWidget( const Widget3D& widget, const Affine3d& pose = Affine3d::Identity() ); void finalize(); };
Inherited Members
public: // methods template <typename _W> _W cast(); Widget2D cast(); WWidgetMerger cast(); double getRenderingProperty(int property) const; Widget& operator=(const Widget& other); void setRenderingProperty( int property, double value ); static Widget fromPlyFile(const String& file_name); void applyTransform(const Affine3d& transform); Affine3d getPose() const; void setColor(const Color& color); void setPose(const Affine3d& pose); void updatePose(const Affine3d& pose);
Detailed Documentation
This class allows to merge several widgets to single one.
It has quite limited functionality and can’t merge widgets with different attributes. For instance, if widgetA has color array and widgetB has only global color defined, then result of merge won’t have color at all. The class is suitable for merging large amount of similar widgets. :
Methods
void addWidget( const Widget3D& widget, const Affine3d& pose = Affine3d::Identity() )
Add widget to merge with optional position change.
void finalize()
Repacks internal structure to single widget.