visualization.h
Go to the documentation of this file.
1 
12 #ifndef VISUALIZATION_H
13 #define VISUALIZATION_H
14 
15 namespace argos {
16  class CVisualization;
17 }
18 
19 #include <argos3/core/utility/configuration/base_configurable_resource.h>
20 #include <argos3/core/simulator/simulator.h>
21 
22 namespace argos {
23 
25 
26  public:
27 
29  m_cSimulator(CSimulator::GetInstance()),
30  m_cSpace(m_cSimulator.GetSpace()) {}
31 
32  virtual ~CVisualization() {}
33 
34  virtual void Init(TConfigurationNode& t_tree) = 0;
35 
36  virtual void Reset() = 0;
37 
38  virtual void Destroy() = 0;
39 
40  virtual void Execute() = 0;
41 
42  protected:
43 
46 
49 
50  };
51 
52 #define REGISTER_VISUALIZATION(CLASSNAME, \
53  LABEL, \
54  AUTHOR, \
55  VERSION, \
56  BRIEF_DESCRIPTION, \
57  LONG_DESCRIPTION, \
58  STATUS) \
59  REGISTER_SYMBOL(CVisualization, \
60  CLASSNAME, \
61  LABEL, \
62  AUTHOR, \
63  VERSION, \
64  BRIEF_DESCRIPTION, \
65  LONG_DESCRIPTION, \
66  STATUS)
67 
68 }
69 
70 #endif
The namespace containing all the ARGoS related code.
Definition: ci_actuator.h:12
ticpp::Element TConfigurationNode
The ARGoS configuration XML node.
The core class of ARGOS.
Definition: simulator.h:62
CSimulator & m_cSimulator
A reference to the simulator.
Definition: visualization.h:45
virtual void Init(TConfigurationNode &t_tree)=0
Initializes the resource.
virtual void Reset()=0
Resets the resource.
virtual void Destroy()=0
Undoes whatever was done by Init().
CSpace & m_cSpace
A reference to the space.
Definition: visualization.h:48
virtual void Execute()=0
This class is the base of all XML-configurable ARGoS interface.