class cv::viz::Widget2D

Overview

Base class of all 2D widgets. Moreā€¦

#include <widgets.hpp>

class Widget2D: public cv::viz::Widget
{
public:
    // methods

    void
    setColor(const Color& color);
};

// direct descendants

class WImageOverlay;
class WText;

Inherited Members

public:
    // methods

    template <typename _W>
    _W
    cast();

    Widget2D
    cast();

    WWidgetMerger
    cast();

    double
    getRenderingProperty(int property) const;

    Widget&
    operator=(const Widget& other);

    void
    setRenderingProperty(
        int property,
        double value
        );

    static
    Widget
    fromPlyFile(const String& file_name);

Detailed Documentation

Base class of all 2D widgets.

Methods

void
setColor(const Color& color)

Sets the color of the widget.

Parameters:

color color of type Color