class cv::viz::WCylinder

Overview

This 3D Widget defines a cylinder. : Moreā€¦

#include <widgets.hpp>

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

    WCylinder(
        const Point3d& axis_point1,
        const Point3d& axis_point2,
        double radius,
        int numsides = 30,
        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

This 3D Widget defines a cylinder. :

Construction

WCylinder(
    const Point3d& axis_point1,
    const Point3d& axis_point2,
    double radius,
    int numsides = 30,
    const Color& color = Color::white()
    )

Constructs a WCylinder.

Parameters:

axis_point1 A point1 on the axis of the cylinder.
axis_point2 A point2 on the axis of the cylinder.
radius Radius of the cylinder.
numsides Resolution of the cylinder.
color Color of the cylinder.