53 class GZ_RENDERING_VISIBLE
Grid
62 public:
Grid(
Scene *_scene, uint32_t _cellCount,
float _cellLength,
75 public:
void Enable(
bool _enable);
79 public: Ogre::SceneNode *
GetSceneNode() {
return this->sceneNode; }
83 public:
void SetUserData(
const Ogre::Any &_data);
95 public:
void SetCellCount(uint32_t _count);
102 public:
void SetCellLength(
float _len);
110 public:
void SetLineWidth(
float _width);
118 public:
void SetHeight(uint32_t _count);
122 public: uint32_t
GetHeight()
const {
return this->height;}
124 private:
void Create();
126 private: Ogre::SceneNode *sceneNode;
127 private: Ogre::ManualObject *manualObject;
129 private: Ogre::MaterialPtr material;
131 private:
unsigned int cellCount;
132 private:
float cellLength;
133 private:
float lineWidth;
135 private:
float heightOffset;
137 private: std::string name;
138 private:
unsigned int height;
140 private:
Scene *scene;
float GetCellLength() const
Get the cell length.
Definition: Grid.hh:106
common::Color GetColor() const
Return the grid color.
Definition: Grid.hh:91
Ogre::SceneNode * GetSceneNode()
Get the Ogre scene node associated with this grid.
Definition: Grid.hh:79
Displays a grid of cells, drawn with lines.
Definition: Grid.hh:53
Representation of an entire scene graph.
Definition: Scene.hh:74
Defines a color.
Definition: Color.hh:36
float GetLineWidth() const
Get the width of the grid line.
Definition: Grid.hh:114
GAZEBO_VISIBLE void Init(google::protobuf::Message &_message, const std::string &_id="")
Initialize a message.
uint32_t GetHeight() const
Get the height of the grid.
Definition: Grid.hh:122
uint32_t GetCellCount() const
Get the number of cells.
Definition: Grid.hh:98