rearrange widget constructors

This commit is contained in:
ozantonkal
2013-07-09 15:18:44 +02:00
parent 10d955f18b
commit 200b254bad
5 changed files with 72 additions and 63 deletions

View File

@@ -12,7 +12,7 @@ namespace temp_viz
//It is indended for those users who want to develop own widgets system using VTK library API.
struct CV_EXPORTS WidgetAccessor
{
static vtkSmartPointer<vtkProp> getActor(const Widget &widget);
static void setVtkProp(Widget &widget, vtkSmartPointer<vtkProp> actor);
static vtkSmartPointer<vtkProp> getProp(const Widget &widget);
static void setProp(Widget &widget, vtkSmartPointer<vtkProp> actor);
};
}

View File

@@ -132,6 +132,9 @@ namespace temp_viz
TextWidget(const String &text, const Point2i &pos, int font_size = 10, const Color &color = Color::white());
TextWidget(const Widget& other) : Widget2D(other) {}
TextWidget& operator=(const Widget &other);
void setText(const String &text);
String getText() const;
};
class CV_EXPORTS CloudWidget : public Widget3D