class cv::viz::WSphere

Overview

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

#include <widgets.hpp>

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

    WSphere(
        const cv::Point3d& center,
        double radius,
        int sphere_resolution = 10,
        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 sphere. :

Construction

WSphere(
    const cv::Point3d& center,
    double radius,
    int sphere_resolution = 10,
    const Color& color = Color::white()
    )

Constructs a WSphere.

Parameters:

center Center of the sphere.
radius Radius of the sphere.
sphere_resolution Resolution of the sphere.
color Color of the sphere.