36#ifndef _SSD_ELEMENT_GEOMETRY_H_
37#define _SSD_ELEMENT_GEOMETRY_H_
39#include "OMSimulator/Types.h"
58 void setX1(
double x1) {this->x1 = x1;}
59 void setY1(
double y1) {this->y1 = y1;}
60 void setX2(
double x2) {this->x2 = x2;}
61 void setY2(
double y2) {this->y2 = y2;}
62 void setSizePosition(
double x1,
double y1,
double x2,
double y2) {this->x1 = x1; this->y1 = y1; this->x2 = x2; this->y2 = y2;}
63 void setRotation(
double rotation) {this->rotation = rotation;}
69 double getX1()
const {
return x1;}
70 double getY1()
const {
return y1;}
71 double getX2()
const {
return x2;}
72 double getY2()
const {
return y2;}
80 oms_status_enu_t
exportToSSD(pugi::xml_node& root)
const;
Definition ElementGeometry.h:50
double getY1() const
Definition ElementGeometry.h:70
~ElementGeometry()
Definition ElementGeometry.cpp:82
bool hasIconSource() const
Definition ElementGeometry.h:75
bool getIconFlip() const
Definition ElementGeometry.h:77
double getX2() const
Definition ElementGeometry.h:71
double getIconRotation() const
Definition ElementGeometry.h:76
bool getIconFixedAspectRatio() const
Definition ElementGeometry.h:78
void setIconRotation(double iconRotation)
Definition ElementGeometry.h:65
void setY1(double y1)
Definition ElementGeometry.h:59
void setSizePosition(double x1, double y1, double x2, double y2)
Definition ElementGeometry.h:62
std::string getIconSource() const
Definition ElementGeometry.h:74
void setRotation(double rotation)
Definition ElementGeometry.h:63
oms_status_enu_t exportToSSD(pugi::xml_node &root) const
Definition ElementGeometry.cpp:138
void setIconFlip(bool iconFlip)
Definition ElementGeometry.h:66
double getX1() const
Definition ElementGeometry.h:69
oms_status_enu_t importFromSSD(const pugi::xml_node &node)
Definition ElementGeometry.cpp:170
void setX2(double x2)
Definition ElementGeometry.h:60
void setX1(double x1)
Definition ElementGeometry.h:58
double getRotation() const
Definition ElementGeometry.h:73
double getY2() const
Definition ElementGeometry.h:72
void setY2(double y2)
Definition ElementGeometry.h:61
void setIconSource(std::string iconSource)
Definition ElementGeometry.cpp:123
void setIconFixedAspectRatio(bool iconFixedAspectRatio)
Definition ElementGeometry.h:67
ElementGeometry()
Definition ElementGeometry.cpp:43
ElementGeometry & operator=(ElementGeometry const &rhs)
Definition ElementGeometry.cpp:90