Commit 509a93c7 authored by Anatoly Baksheev's avatar Anatoly Baksheev

minor naming

parent 200b254b
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
#include <opencv2/core/cvdef.h> #include <opencv2/core/cvdef.h>
#include <vtkSmartPointer.h> #include <vtkSmartPointer.h>
#include <vtkLODActor.h> #include <vtkProp.h>
namespace temp_viz namespace temp_viz
{ {
...@@ -13,6 +13,6 @@ namespace temp_viz ...@@ -13,6 +13,6 @@ namespace temp_viz
struct CV_EXPORTS WidgetAccessor struct CV_EXPORTS WidgetAccessor
{ {
static vtkSmartPointer<vtkProp> getProp(const Widget &widget); static vtkSmartPointer<vtkProp> getProp(const Widget &widget);
static void setProp(Widget &widget, vtkSmartPointer<vtkProp> actor); static void setProp(Widget &widget, vtkSmartPointer<vtkProp> prop);
}; };
} }
...@@ -15,7 +15,6 @@ namespace temp_viz ...@@ -15,7 +15,6 @@ namespace temp_viz
Widget& operator =(const Widget &other); Widget& operator =(const Widget &other);
~Widget(); ~Widget();
private: private:
class Impl; class Impl;
Impl *impl_; Impl *impl_;
......
...@@ -6,10 +6,10 @@ ...@@ -6,10 +6,10 @@
class temp_viz::Widget::Impl class temp_viz::Widget::Impl
{ {
public: public:
vtkSmartPointer<vtkProp> actor; vtkSmartPointer<vtkProp> prop;
int ref_counter; int ref_counter;
Impl() : actor(0) {} Impl() : prop(0) {}
}; };
temp_viz::Widget::Widget() : impl_(0) temp_viz::Widget::Widget() : impl_(0)
...@@ -59,12 +59,12 @@ void temp_viz::Widget::release() ...@@ -59,12 +59,12 @@ void temp_viz::Widget::release()
vtkSmartPointer<vtkProp> temp_viz::WidgetAccessor::getProp(const Widget& widget) vtkSmartPointer<vtkProp> temp_viz::WidgetAccessor::getProp(const Widget& widget)
{ {
return widget.impl_->actor; return widget.impl_->prop;
} }
void temp_viz::WidgetAccessor::setProp(Widget& widget, vtkSmartPointer<vtkProp> actor) void temp_viz::WidgetAccessor::setProp(Widget& widget, vtkSmartPointer<vtkProp> prop)
{ {
widget.impl_->actor = actor; widget.impl_->prop = prop;
} }
/////////////////////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////////////////////
...@@ -191,4 +191,4 @@ void temp_viz::Widget2D::setColor(const Color &color) ...@@ -191,4 +191,4 @@ void temp_viz::Widget2D::setColor(const Color &color)
Color c = vtkcolor(color); Color c = vtkcolor(color);
actor->GetProperty ()->SetColor (c.val); actor->GetProperty ()->SetColor (c.val);
actor->Modified (); actor->Modified ();
} }
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment