19#ifndef GAZEBO_RENDERING_GRID_HH_
20#define GAZEBO_RENDERING_GRID_HH_
26#include <ignition/math/Color.hh>
53 class GZ_RENDERING_VISIBLE
Grid
61 public:
Grid(
Scene *_scene,
const uint32_t _cellCount,
62 const float _cellLength,
const ignition::math::Color &_color);
74 public:
void Enable(
const bool _enable);
86 public:
void SetColor(
const ignition::math::Color &_color);
90 public: ignition::math::Color
Color()
const;
125 private:
void Create();
129 private: std::unique_ptr<GridPrivate> dataPtr;
rendering
Definition RenderEngine.hh:31
Displays a grid of cells, drawn with lines.
Definition Grid.hh:54
VisualPtr GridVisual() const
Get thevisual associated with this grid.
double HeightOffset() const
Get the height offset.
void SetUserData(const Ogre::Any &_data)
Sets user data on all ogre objects we own.
void Init()
Initialize the grid.
ignition::math::Color Color() const
Return the grid color.
void SetCellLength(const float _len)
Set the cell length.
void Enable(const bool _enable)
Enable or disable the grid.
void SetHeight(const uint32_t _count)
Set the height of the grid.
float CellLength() const
Get the cell length.
void SetColor(const ignition::math::Color &_color)
Sets the color of the grid.
void SetCellCount(const uint32_t _count)
Set the number of cells.
Grid(Scene *_scene, const uint32_t _cellCount, const float _cellLength, const ignition::math::Color &_color)
Constructor.
uint32_t CellCount() const
Get the number of cells.
void SetHeightOffset(const double _offset)
Set the height offset of the grid.
uint32_t Height() const
Get the number of cells in the normal direction of the grid.
Representation of an entire scene graph.
Definition Scene.hh:94
Definition JointMaker.hh:40
std::shared_ptr< Visual > VisualPtr
Definition RenderTypes.hh:114
Forward declarations for the common classes.
Definition Animation.hh:27