class cv::viz::Widget3D

Overview

Base class of all 3D widgets. Moreā€¦

#include <widgets.hpp>

class Widget3D: public cv::viz::Widget
{
public:
    // methods

    void
    applyTransform(const Affine3d& transform);

    Affine3d
    getPose() const;

    void
    setColor(const Color& color);

    void
    setPose(const Affine3d& pose);

    void
    updatePose(const Affine3d& pose);
};

// direct descendants

class WArrow;
class WCameraPosition;
class WCircle;
class WCloud;
class WCloudCollection;
class WCloudNormals;
class WCone;
class WCoordinateSystem;
class WCube;
class WCylinder;
class WGrid;
class WImage3D;
class WLine;
class WMesh;
class WPaintedCloud;
class WPlane;
class WPolyLine;
class WSphere;
class WText3D;
class WTrajectory;
class WTrajectoryFrustums;
class WTrajectorySpheres;
class WWidgetMerger;

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

Detailed Documentation

Base class of all 3D widgets.

Methods

void
applyTransform(const Affine3d& transform)

Transforms internal widget data (i.e. points, normals) using the given transform.

Parameters:

transform Specified transformation to apply.
Affine3d
getPose() const

Returns the current pose of the widget.

void
setColor(const Color& color)

Sets the color of the widget.

Parameters:

color color of type Color
void
setPose(const Affine3d& pose)

Sets pose of the widget.

Parameters:

pose The new pose of the widget.
void
updatePose(const Affine3d& pose)

Updates pose of the widget by pre-multiplying its current pose.

Parameters:

pose The pose that the current pose of the widget will be pre-multiplied by.