struct cv::viz::WidgetAccessor
Overview
This class is for users who want to develop their own widgets using VTK library API. : Moreā¦
#include <widget_accessor.hpp> struct WidgetAccessor { // methods static vtkSmartPointer<vtkProp> getProp(const Widget& widget); static void setProp( Widget& widget, vtkSmartPointer<vtkProp> prop ); };
Detailed Documentation
This class is for users who want to develop their own widgets using VTK library API. :
Methods
static vtkSmartPointer<vtkProp> getProp(const Widget& widget)
Returns vtkProp of a given widget.
vtkProp has to be down cast appropriately to be modified.
vtkActor * actor = vtkActor::SafeDownCast(viz::WidgetAccessor::getProp(widget));
Parameters:
widget | Widget whose vtkProp is to be returned. |
static void setProp( Widget& widget, vtkSmartPointer<vtkProp> prop )
Sets vtkProp of a given widget.
Parameters:
widget | Widget whose vtkProp is to be set. |
prop | A vtkProp. |