class cv::viz::WLine

Overview

Simple widgets. Moreā€¦

#include <widgets.hpp>

class WLine: public cv::viz::Widget3D
{
public:
    // construction

    WLine(
        const Point3d& pt1,
        const Point3d& pt2,
        const Color& color = Color::white()
        );
};

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

    void
    applyTransform(const Affine3d& transform);

    Affine3d
    getPose() const;

    void
    setColor(const Color& color);

    void
    setPose(const Affine3d& pose);

    void
    updatePose(const Affine3d& pose);

Detailed Documentation

Simple widgets.

This 3D Widget defines a finite line.

Construction

WLine(
    const Point3d& pt1,
    const Point3d& pt2,
    const Color& color = Color::white()
    )

Constructs a WLine.

Parameters:

pt1 Start point of the line.
pt2 End point of the line.
color Color of the line.