Loading...
Searching...
No Matches
cv::viz::WidgetAccessor Struct Reference
This class is for users who want to develop their own widgets using VTK library API. : More...
#include <opencv2/viz/widget_accessor.hpp>
Static Public Member Functions | |
static vtkSmartPointer< vtkProp > | getProp (const Widget &widget) |
Returns vtkProp of a given widget. | |
static void | setProp (Widget &widget, vtkSmartPointer< vtkProp > prop) |
Sets vtkProp of a given widget. | |
Detailed Description
This class is for users who want to develop their own widgets using VTK library API. :
Member Function Documentation
◆ getProp()
|
static |
Returns vtkProp of a given widget.
- Parameters
-
widget Widget whose vtkProp is to be returned.
- Note
- vtkProp has to be down cast appropriately to be modified. vtkActor * actor = vtkActor::SafeDownCast(viz::WidgetAccessor::getProp(widget));static vtkSmartPointer< vtkProp > getProp(const Widget &widget)Returns vtkProp of a given widget.
◆ setProp()
|
static |
Sets vtkProp of a given widget.
- Parameters
-
widget Widget whose vtkProp is to be set. prop A vtkProp.
The documentation for this struct was generated from the following file:
- opencv2/viz/widget_accessor.hpp