22 #ifndef __FVUTILS_DRAW_FIELD_LINES_H__ 23 #define __FVUTILS_DRAW_FIELD_LINES_H__ 25 #include <utils/math/types.h> 34 typedef std::list<fawkes::arc_t> field_circles_t;
49 FieldLines(std::string field_name,
float field_length,
float field_width,
float line_width);
50 virtual void init() = 0;
float get_field_length() const
Field length getter.
This class implements the 6 by 4 meter SPL field according to the 2008 roules.
float _line_width
The width of the field lines.
Cartesian coordinates (2D).
field_circles_t _field_circles
A std::list of arcs and/or circles on the field.
float _field_width
The total width of the field (actually of the field lines)
virtual void init()=0
Initializes the field (creates all field lines)
virtual ~FieldLines()
Destructor.
float _field_length
The total length of the field (actually of the field lines)
void calc_offsets()
Calculates the field's offsets.
const field_circles_t & get_circles() const
Get circles.
fawkes::cart_coord_2d_t _field_offsets
The center offset (used to draw unsymmetrically fields - usually zero)
float get_field_width() const
Field width getter.
float get_line_width() const
Line width getter.
This class implements the test field in Graz, Austria at the CityTower.
FieldLines(std::string field_name, float field_length, float field_width, float line_width)
Creates a new FieldLines container.
This class acts as a container for lines on a soccer field.
std::string _field_name
The name of the field.
fawkes::cart_coord_2d_t get_field_offsets() const
Offset getter.
const std::string & get_name() const
Returns the field name.
This class implements the test field in Graz, Austria at the CityTower.