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;
 
virtual CColor GetColorAtPoint(Real f_x, Real f_y)=0
 
CColor GetColorAtPoint(Real f_x, Real f_y)
Returns the color at the given point. 
 
float Real
Collects all ARGoS code. 
 
void SetChanged()
Marks the floor color as changed. 
 
virtual void Reset()
Restores the initial state of the floor. 
 
CFloorEntity()
Class constructor. 
 
ticpp::Element TConfigurationNode
The ARGoS configuration XML node. 
 
virtual ~CFloorColorSource()
 
#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. 
 
void ClearChanged()
Marks the floor color as not changed. 
 
virtual void Init(TConfigurationNode &t_tree)
Initializes the entity from an XML tree. 
 
bool HasChanged() const 
Returns true if the floor color has changed. 
 
virtual ~CFloorEntity()
Class destructor. 
 
virtual std::string GetTypeDescription() const 
Saves the current floor color to the given file. 
 
const std::string & GetId() const 
Returns the id of this entity. 
 
The namespace containing all the ARGoS related code.