class cv::viz::WGrid

Overview

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

#include <widgets.hpp>

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

    WGrid(
        const Vec2i& cells = Vec2i::all(10),
        const Vec2d& cells_spacing = Vec2d::all(1.0),
        const Color& color = Color::white()
        );

    WGrid(
        const Point3d& center,
        const Vec3d& normal,
        const Vec3d& new_yaxis,
        const Vec2i& cells = Vec2i::all(10),
        const Vec2d& cells_spacing = Vec2d::all(1.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 grid. :

Construction

WGrid(
    const Vec2i& cells = Vec2i::all(10),
    const Vec2d& cells_spacing = Vec2d::all(1.0),
    const Color& color = Color::white()
    )

Constructs a WGrid.

Parameters:

cells Number of cell columns and rows, respectively.
cells_spacing Size of each cell, respectively.
color Color of the grid.
WGrid(
    const Point3d& center,
    const Vec3d& normal,
    const Vec3d& new_yaxis,
    const Vec2i& cells = Vec2i::all(10),
    const Vec2d& cells_spacing = Vec2d::all(1.0),
    const Color& color = Color::white()
    )

Creates repositioned grid.