FieldDescription.hpp
Go to the documentation of this file.
1 //
2 // FieldDescription.hpp
3 //
4 // Created on: 30.08.2011
5 // Author: wahnfla
6 //
7 
8 #ifndef FIELDDESCRIPTION_HPP
9 #define FIELDDESCRIPTION_HPP
10 
11 #include "Polygon2D.hpp"
12 #include <vector>
13 #include "../BasicDatatypes.hpp"
14 
15 namespace datatypes
16 {
17 
18 //
19 // Interface for fields.
20 //
22 {
23 public:
24  enum FieldType
25  {
26  Undefined = 0,
27  Segmented = 1,
28  Rectangle = 2,
29  Radial = 3,
30  Dynamic = 4
31  };
32 
34 
35  virtual void computePolygon() = 0;
36 
38  {
39  return m_fieldPolygon;
40  }
41 
43  {
44  return m_fieldType;
45  }
46 
47  static std::string fieldTypeToString(FieldType type);
48 protected:
51 };
52 
53 
54 } // namespace parameters
55 
56 #endif // FIELDDESCRIPTION_HPP
FieldType getFieldType() const
A polygon of 2D-points.
Definition: Polygon2D.hpp:43
static std::string fieldTypeToString(FieldType type)
const Polygon2D & getFieldAsPolygon() const
virtual void computePolygon()=0


libsick_ldmrs
Author(s): SICK AG , Martin Günther , Jochen Sprickerhof
autogenerated on Mon Oct 26 2020 03:27:30