class cv::viz::WCone

Overview

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

#include <widgets.hpp>

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

    WCone(
        double length,
        double radius,
        int resolution = 6.0,
        const Color& color = Color::white()
        );

    WCone(
        double radius,
        const Point3d& center,
        const Point3d& tip,
        int resolution = 6.0,
        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 cone. :

Construction

WCone(
    double length,
    double radius,
    int resolution = 6.0,
    const Color& color = Color::white()
    )

Constructs default cone oriented along x-axis with center of its base located at origin.

Parameters:

length Length of the cone.
radius Radius of the cone.
resolution Resolution of the cone.
color Color of the cone.
WCone(
    double radius,
    const Point3d& center,
    const Point3d& tip,
    int resolution = 6.0,
    const Color& color = Color::white()
    )

Constructs repositioned planar cone.

Parameters:

radius Radius of the cone.
center Center of the cone base.
tip Tip of the cone.
resolution Resolution of the cone.
color Color of the cone.