68 : orientation(unknown_orientation),
69 rotation(unknown_rotation)
71 assert(rotation >= 0);
72 assert(rotation <= unknown_rotation);
73 assert(orientation >= 0);
74 assert(orientation <= unknown_orientation);
78 : orientation(orientation),
81 assert(rotation >= 0);
82 assert(rotation <= unknown_rotation);
83 assert(orientation >= 0);
84 assert(orientation <= unknown_orientation);
87 explicit PatientPosition(PositionValue position);
89 bool operator==(
const PatientPosition& p1)
const
91 return this->get_orientation() == p1.get_orientation() && this->get_position() == p1.get_position()
92 && this->get_position_as_string() == p1.get_position_as_string() && this->get_rotation() == p1.get_rotation();
95 bool operator!=(
const PatientPosition& p1)
const {
return !this->operator==(p1); }
97 void set_rotation(
const RotationValue rotation_v)
99 assert(rotation_v >= 0);
100 assert(rotation_v <= unknown_rotation);
101 rotation = rotation_v;
103 RotationValue get_rotation()
const {
return rotation; }
105 void set_orientation(
const OrientationValue orientation_v)
107 assert(orientation_v >= 0);
108 assert(orientation_v <= unknown_orientation);
109 orientation = orientation_v;
111 OrientationValue get_orientation()
const {
return orientation; }
113 PositionValue get_position()
const;
116 const char* get_position_as_string()
const;
119 OrientationValue orientation;
120 RotationValue rotation;