GroundGrid.h
Go to the documentation of this file.
1 /*+-------------------------------------------------------------------------+
2  | MultiVehicle simulator (libmvsim) |
3  | |
4  | Copyright (C) 2014 Jose Luis Blanco Claraco (University of Almeria) |
5  | Copyright (C) 2017 Borys Tymchenko (Odessa Polytechnic University) |
6  | Distributed under GNU General Public License version 3 |
7  | See <http://www.gnu.org/licenses/> |
8  +-------------------------------------------------------------------------+ */
9 
10 #pragma once
11 
13 #include <mrpt/opengl/CGridPlaneXY.h>
14 
15 #include <mrpt/version.h>
16 #if MRPT_VERSION<0x199
17 #include <mrpt/utils/TColor.h>
18 using mrpt::utils::TColor;
19 using mrpt::utils::TColorf;
20 #else
21 #include <mrpt/img/TColor.h>
22 using mrpt::img::TColor;
23 using mrpt::img::TColorf;
24 #endif
25 
26 
27 namespace mvsim
28 {
30 {
32  public:
33  GroundGrid(World* parent, const rapidxml::xml_node<char>* root);
34  virtual ~GroundGrid();
35 
36  virtual void loadConfigFrom(
37  const rapidxml::xml_node<char>* root);
38  virtual void gui_update(
39  mrpt::opengl::COpenGLScene& scene);
40 
41  protected:
45  TColor m_color;
46  double m_line_width;
47 
48  mrpt::opengl::CGridPlaneXY::Ptr m_gl_groundgrid;
49 };
50 }
virtual ~GroundGrid()
Definition: GroundGrid.cpp:37
virtual void loadConfigFrom(const rapidxml::xml_node< char > *root)
See docs in base class.
Definition: GroundGrid.cpp:38
std::string m_float_center_at_vehicle_name
Definition: GroundGrid.h:43
#define DECLARES_REGISTER_WORLD_ELEMENT(CLASS_NAME)
GroundGrid(World *parent, const rapidxml::xml_node< char > *root)
Definition: GroundGrid.cpp:21
virtual void gui_update(mrpt::opengl::COpenGLScene &scene)
See docs in base class.
Definition: GroundGrid.cpp:62
mrpt::opengl::CGridPlaneXY::Ptr m_gl_groundgrid
Definition: GroundGrid.h:48
double m_line_width
Definition: GroundGrid.h:46


mvsim
Author(s):
autogenerated on Thu Jun 6 2019 19:36:40