Warning: include(php/utility.php): Failed to open stream: No such file or directory in /home/argos/argos3/doc/api/embedded/a00759_source.php on line 2

Warning: include(): Failed opening 'php/utility.php' for inclusion (include_path='.:/usr/lib64/php') in /home/argos/argos3/doc/api/embedded/a00759_source.php on line 2
The ARGoS Website

light_entity.h
Go to the documentation of this file.
1 
7 #ifndef LIGHT_ENTITY_H
8 #define LIGHT_ENTITY_H
9 
10 namespace argos {
11  class CLightEntity;
12  class CLedEquippedEntity;
13 }
14 
15 #include <argos3/core/simulator/entity/positional_entity.h>
16 #include <argos3/plugins/simulator/entities/led_equipped_entity.h>
17 
18 namespace argos {
19 
20  class CLightEntity : public CLEDEntity {
21 
22  public:
23 
24  ENABLE_VTABLE();
25 
26  public:
27 
28  CLightEntity();
29 
30  CLightEntity(const std::string& str_id,
31  const CVector3& c_position,
32  const CColor& c_color,
33  Real f_intensity);
34 
35  virtual void Init(TConfigurationNode& t_tree);
36 
37  inline Real GetIntensity() const {
38  return m_fIntensity;
39  }
40 
41  inline void SetIntensity(Real f_intensity) {
42  m_fIntensity = f_intensity;
43  }
44 
45  virtual std::string GetTypeDescription() const {
46  return "light";
47  }
48 
49  protected:
50 
52  };
53 
54 }
55 
56 #endif
void SetIntensity(Real f_intensity)
Definition: light_entity.h:41
A 3D vector class.
Definition: vector3.h:29
float Real
Collects all ARGoS code.
Definition: datatypes.h:39
ticpp::Element TConfigurationNode
The ARGoS configuration XML node.
Real GetIntensity() const
Definition: light_entity.h:37
The basic color type.
Definition: color.h:25
virtual std::string GetTypeDescription() const
Returns a string label for this class.
Definition: light_entity.h:45
virtual void Init(TConfigurationNode &t_tree)
Initializes the state of the entity from the XML configuration tree.
The namespace containing all the ARGoS related code.
Definition: ci_actuator.h:12