OpenCV  4.3.0-dev
Open Source Computer Vision
Static Public Member Functions | List of all members
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. More...
 
static void setProp (Widget &widget, vtkSmartPointer< vtkProp > prop)
 Sets vtkProp of a given widget. More...
 

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));

◆ 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: