class cv::viz::WCube

Overview

This 3D Widget defines a cube. Moreā€¦

#include <widgets.hpp>

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

    WCube(
        const Point3d& min_point = Vec3d::all(-0.5),
        const Point3d& max_point = Vec3d::all(0.5),
        bool wire_frame = true,
        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 cube.

Construction

WCube(
    const Point3d& min_point = Vec3d::all(-0.5),
    const Point3d& max_point = Vec3d::all(0.5),
    bool wire_frame = true,
    const Color& color = Color::white()
    )

Constructs a WCube.

Cube Widget

Parameters:

min_point Specifies minimum point of the bounding box.
max_point Specifies maximum point of the bounding box.
wire_frame If true, cube is represented as wireframe.
color Color of the cube.