Merge pull request #2434 from Nerei:viz_continue
This commit is contained in:
@@ -934,6 +934,8 @@ This 3D Widget defines a collection of clouds. ::
|
||||
void addCloud(InputArray cloud, InputArray colors, const Affine3d &pose = Affine3d::Identity());
|
||||
//! All points in cloud have the same color
|
||||
void addCloud(InputArray cloud, const Color &color = Color::white(), Affine3d &pose = Affine3d::Identity());
|
||||
//! Repacks internal structure to single cloud
|
||||
void finalize();
|
||||
};
|
||||
|
||||
viz::WCloudCollection::WCloudCollection
|
||||
@@ -964,6 +966,12 @@ Adds a cloud to the collection.
|
||||
|
||||
.. note:: In case there are four channels in the cloud, fourth channel is ignored.
|
||||
|
||||
viz::WCloudCollection::finalize
|
||||
-------------------------------
|
||||
Finalizes cloud data by repacking to single cloud. Useful for large cloud collections to reduce memory usage
|
||||
|
||||
.. ocv:function:: void finalize()
|
||||
|
||||
viz::WCloudNormals
|
||||
------------------
|
||||
.. ocv:class:: WCloudNormals
|
||||
@@ -1017,3 +1025,43 @@ Constructs a WMesh.
|
||||
:param polygons: Points of the mesh object.
|
||||
:param colors: Point colors.
|
||||
:param normals: Point normals.
|
||||
|
||||
viz::WWidgetMerger
|
||||
---------------------
|
||||
.. ocv:class:: WWidgetMerger
|
||||
|
||||
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. ::
|
||||
|
||||
class CV_EXPORTS WWidgetMerger : public Widget3D
|
||||
{
|
||||
public:
|
||||
WWidgetMerger();
|
||||
|
||||
//! Add widget to merge with optional position change
|
||||
void addWidget(const Widget3D& widget, const Affine3d &pose = Affine3d::Identity());
|
||||
|
||||
//! Repacks internal structure to single widget
|
||||
void finalize();
|
||||
};
|
||||
|
||||
viz::WWidgetMerger::WWidgetMerger
|
||||
---------------------------------------
|
||||
Constructs a WWidgetMerger.
|
||||
|
||||
.. ocv:WWidgetMerger:: WWidgetMerger()
|
||||
|
||||
viz::WWidgetMerger::addCloud
|
||||
-------------------------------
|
||||
Adds a cloud to the collection.
|
||||
|
||||
.. ocv:function:: void addWidget(const Widget3D& widget, const Affine3d &pose = Affine3d::Identity())
|
||||
|
||||
:param widget: Widget to merge.
|
||||
:param pose: Pose of the widget.
|
||||
|
||||
viz::WWidgetMerger::finalize
|
||||
-------------------------------
|
||||
Finalizes merger data and constructs final merged widget
|
||||
|
||||
.. ocv:function:: void finalize()
|
||||
|
||||
Reference in New Issue
Block a user