14 #include <argos3/core/simulator/entity/entity.h>
15 #include <argos3/core/utility/math/vector2.h>
16 #include <argos3/core/utility/math/vector3.h>
17 #include <argos3/core/utility/datatypes/color.h>
36 #ifdef ARGOS_WITH_FREEIMAGE
37 virtual void SaveAsImage(
const std::string& str_path) = 0;
66 #ifdef ARGOS_WITH_FREEIMAGE
68 const std::string& str_file_name);
76 UInt32 un_pixels_per_meter);
102 "The floor entity \"" <<
104 "\" has no associated color source.");
114 return m_bHasChanged;
122 m_bHasChanged =
true;
130 m_bHasChanged =
false;
139 #ifdef ARGOS_WITH_FREEIMAGE
140 void SaveAsImage(
const std::string& str_path);
157 CFloorColorSource* m_pcColorSource;
#define ARGOS_ASSERT(condition, message)
When code is compiled in debug, this macro throws an ARGoS exception with the passed message if the s...
unsigned int UInt32
32-bit unsigned integer.
float Real
Collects all ARGoS code.
The namespace containing all the ARGoS related code.
ticpp::Element TConfigurationNode
The ARGoS configuration XML node.
const std::string & GetId() const
Returns the id of this entity.
virtual void Reset()
Restores the initial state of the floor.
CColor GetColorAtPoint(Real f_x, Real f_y)
Returns the color at the given point.
CFloorEntity()
Class constructor.
virtual void Init(TConfigurationNode &t_tree)
Initializes the entity from an XML tree.
virtual std::string GetTypeDescription() const
Saves the current floor color to the given file.
virtual ~CFloorEntity()
Class destructor.
bool HasChanged() const
Returns true if the floor color has changed.
void ClearChanged()
Marks the floor color as not changed.
void SetChanged()
Marks the floor color as changed.
virtual CColor GetColorAtPoint(Real f_x, Real f_y)=0
virtual ~CFloorColorSource()