OpenCV: cv::viz::WidgetAccessor Struct Reference

| OpenCV 3.4.2 Open Source Computer Vision

Static Public Member Functions | List of all members
cv::viz::WidgetAccessor Struct Reference
3D Visualizer » Widget

This class is for users who want to develop their own widgets using VTK library API. : More...

`#include "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

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

## ◆ setProp()

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

- viz/include/opencv2/viz/widget_accessor.hpp