OpenCV 5.0.0-pre
Open Source Computer Vision
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>

Collaboration diagram for cv::viz::WidgetAccessor:

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 vtkSmartPointer< vtkProp > cv::viz::WidgetAccessor::getProp ( const Widget & widget)
static

Returns vtkProp of a given widget.

Parameters
widgetWidget 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 void cv::viz::WidgetAccessor::setProp ( Widget & widget,
vtkSmartPointer< vtkProp > prop )
static

Sets vtkProp of a given widget.

Parameters
widgetWidget whose vtkProp is to be set.
propA vtkProp.

The documentation for this struct was generated from the following file: