Go to the documentation of this file.
19 #ifndef GAZEBO_RENDERING_GRID_HH_
20 #define GAZEBO_RENDERING_GRID_HH_
26 #include <ignition/math/Color.hh>
58 class GZ_RENDERING_VISIBLE
Grid
68 public:
Grid(
Scene *_scene,
const uint32_t _cellCount,
69 const float _cellLength,
const float _lineWidth,
78 public:
Grid(
Scene *_scene,
const uint32_t _cellCount,
79 const float _cellLength,
const ignition::math::Color &_color);
91 public:
void Enable(
const bool _enable);
99 public:
void SetUserData(
const Ogre::Any &_data);
108 public:
void SetColor(
const ignition::math::Color &_color);
112 public: ignition::math::Color Color()
const;
116 public:
void SetCellCount(
const uint32_t _count);
120 public: uint32_t CellCount()
const;
124 public:
void SetCellLength(
const float _len);
128 public:
float CellLength()
const;
142 public:
void SetHeight(
const uint32_t _count);
146 public: uint32_t Height()
const;
150 public:
void SetHeightOffset(
const double _offset);
154 public:
double HeightOffset()
const;
157 private:
void Create();
161 private: std::unique_ptr<GridPrivate> dataPtr;
void Enable(const bool _enable)
Enable or disable the grid.
void Init()
Initialize the grid.
Definition: JointMaker.hh:39
Representation of an entire scene graph.
Definition: Scene.hh:101
float LineWidth() const GAZEBO_DEPRECATED(9.0)
Get the width of the grid line.
Forward declarations for the common classes.
Definition: Animation.hh:26
void SetCellLength(const float _len)
Set the cell length.
double HeightOffset() const
Get the height offset.
void SetLineWidth(const float _width) GAZEBO_DEPRECATED(9.0)
Set the line width.
void SetUserData(const Ogre::Any &_data)
Sets user data on all ogre objects we own.
Grid(Scene *_scene, const uint32_t _cellCount, const float _cellLength, const float _lineWidth, const common::Color &_color) GAZEBO_DEPRECATED(9.0)
Constructor.
void SetCellCount(const uint32_t _count)
Set the number of cells.
uint32_t CellCount() const
Get the number of cells.
float CellLength() const
Get the cell length.
Displays a grid of cells, drawn with lines.
Definition: Grid.hh:58
ignition::math::Color Color() const
Return the grid color.
void SetHeightOffset(const double _offset)
Set the height offset of the grid.
GAZEBO_VISIBLE void Init(google::protobuf::Message &_message, const std::string &_id="")
Initialize a message.
void SetColor(const common::Color &_color) GAZEBO_DEPRECATED(9.0)
Sets the color of the grid.
Defines a color.
Definition: Color.hh:36
#define GAZEBO_DEPRECATED(version)
Definition: system.hh:328
std::shared_ptr< Visual > VisualPtr
Definition: RenderTypes.hh:114
VisualPtr GridVisual() const
Get thevisual associated with this grid.
void SetHeight(const uint32_t _count)
Set the height of the grid.
uint32_t Height() const
Get the number of cells in the normal direction of the grid.