From fde0185a774b258988c9e37efbb8be14090e581a Mon Sep 17 00:00:00 2001 From: Anatoly Baksheev Date: Sun, 16 Feb 2014 21:27:25 +0400 Subject: [PATCH] iteractor work --- modules/viz/doc/widget.rst | 9 ++++----- modules/viz/include/opencv2/viz/widgets.hpp | 5 ++--- modules/viz/src/vtk/vtkCocoaInteractorFix.mm | 3 +-- modules/viz/src/vtk/vtkVizInteractorStyle.cpp | 1 - modules/viz/test/test_viz3d.cpp | 1 - 5 files changed, 7 insertions(+), 12 deletions(-) diff --git a/modules/viz/doc/widget.rst b/modules/viz/doc/widget.rst index 31546ae8e2..0884ecede4 100644 --- a/modules/viz/doc/widget.rst +++ b/modules/viz/doc/widget.rst @@ -934,7 +934,7 @@ 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 sinle cloud + //! Repacks internal structure to single cloud void finalize(); }; @@ -1030,8 +1030,8 @@ viz::WWidgetMerger --------------------- .. ocv:class:: WWidgetMerger -This class allos 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. +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 { @@ -1041,11 +1041,10 @@ if widgetA has color array and widgetB has only global color defined, then resul //! Add widget to merge with optional position change void addWidget(const Widget3D& widget, const Affine3d &pose = Affine3d::Identity()); - //! Repacks internal structure to sinle widget + //! Repacks internal structure to single widget void finalize(); }; - viz::WWidgetMerger::WWidgetMerger --------------------------------------- Constructs a WWidgetMerger. diff --git a/modules/viz/include/opencv2/viz/widgets.hpp b/modules/viz/include/opencv2/viz/widgets.hpp index 0c2a4f7050..2949598c54 100644 --- a/modules/viz/include/opencv2/viz/widgets.hpp +++ b/modules/viz/include/opencv2/viz/widgets.hpp @@ -346,7 +346,7 @@ namespace cv 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(), const Affine3d &pose = Affine3d::Identity()); - //! Repacks internal structure to sinle cloud + //! Repacks internal structure to single cloud void finalize(); }; @@ -363,7 +363,6 @@ namespace cv WMesh(InputArray cloud, InputArray polygons, InputArray colors = noArray(), InputArray normals = noArray()); }; - class CV_EXPORTS WWidgetMerger : public Widget3D { public: @@ -372,7 +371,7 @@ namespace cv //! Add widget to merge with optional position change void addWidget(const Widget3D& widget, const Affine3d &pose = Affine3d::Identity()); - //! Repacks internal structure to sinle widget + //! Repacks internal structure to single widget void finalize(); }; diff --git a/modules/viz/src/vtk/vtkCocoaInteractorFix.mm b/modules/viz/src/vtk/vtkCocoaInteractorFix.mm index 23bba552d3..dad41b073e 100644 --- a/modules/viz/src/vtk/vtkCocoaInteractorFix.mm +++ b/modules/viz/src/vtk/vtkCocoaInteractorFix.mm @@ -148,7 +148,7 @@ renWin->SetRootWindow(NULL); } } -} +} @end @@ -209,4 +209,3 @@ vtkSmartPointer cv::viz::vtkCocoaRenderWindowInteract { return vtkSmartPointer::New(); } - diff --git a/modules/viz/src/vtk/vtkVizInteractorStyle.cpp b/modules/viz/src/vtk/vtkVizInteractorStyle.cpp index 57aee636e6..9b5eca2b0e 100644 --- a/modules/viz/src/vtk/vtkVizInteractorStyle.cpp +++ b/modules/viz/src/vtk/vtkVizInteractorStyle.cpp @@ -1074,4 +1074,3 @@ void cv::viz::vtkVizInteractorStyle::PrintSelf(ostream& os, vtkIndent indent) os << indent << "AngleStepSize: " << AngleStepSize << "\n"; os << indent << "MotionUserScale: "<< MotionUserScale << "\n"; } - diff --git a/modules/viz/test/test_viz3d.cpp b/modules/viz/test/test_viz3d.cpp index 45d3cdc3cf..45128df2f7 100644 --- a/modules/viz/test/test_viz3d.cpp +++ b/modules/viz/test/test_viz3d.cpp @@ -59,6 +59,5 @@ TEST(Viz_viz3d, DISABLED_develop) //cv::Mat cloud = cv::viz::readCloud(get_dragon_ply_file_path()); //---->>>>> - viz.spin(); }