rearrange widget constructors
This commit is contained in:
@@ -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);
|
||||
};
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user