OMSimulatorLib
The OMSimulator project is a FMI-based co-simulation environment that supports ordinary (i.e., non-delayed) and TLM connections.
|
Go to the documentation of this file.
32 #ifndef _SSD_ELEMENT_GEOMETRY_H_
33 #define _SSD_ELEMENT_GEOMETRY_H_
35 #include "OMSimulator/Types.h"
37 #include <pugixml.hpp>
54 void setX1(
double x1) {this->x1 = x1;}
55 void setY1(
double y1) {this->y1 = y1;}
56 void setX2(
double x2) {this->x2 = x2;}
57 void setY2(
double y2) {this->y2 = y2;}
58 void setSizePosition(
double x1,
double y1,
double x2,
double y2) {this->x1 = x1; this->y1 = y1; this->x2 = x2; this->y2 = y2;}
59 void setRotation(
double rotation) {this->rotation = rotation;}
65 double getX1()
const {
return x1;}
66 double getY1()
const {
return y1;}
67 double getX2()
const {
return x2;}
68 double getY2()
const {
return y2;}
76 oms_status_enu_t
exportToSSD(pugi::xml_node& root)
const;
std::string getIconSource() const
Definition: ElementGeometry.h:70
void setIconFixedAspectRatio(bool iconFixedAspectRatio)
Definition: ElementGeometry.h:63
double getY2() const
Definition: ElementGeometry.h:68
void setX1(double x1)
Definition: ElementGeometry.h:54
double getX2() const
Definition: ElementGeometry.h:67
void setIconSource(std::string iconSource)
Definition: ElementGeometry.cpp:119
#define logTrace()
Definition: Logging.h:110
void setX2(double x2)
Definition: ElementGeometry.h:56
double getRotation() const
Definition: ElementGeometry.h:69
double getY1() const
Definition: ElementGeometry.h:66
void setRotation(double rotation)
Definition: ElementGeometry.h:59
ElementGeometry & operator=(ElementGeometry const &rhs)
Definition: ElementGeometry.cpp:86
void setIconRotation(double iconRotation)
Definition: ElementGeometry.h:61
ElementGeometry()
Definition: ElementGeometry.cpp:39
Definition: ElementGeometry.h:45
~ElementGeometry()
Definition: ElementGeometry.cpp:78
double getX1() const
Definition: ElementGeometry.h:65
bool hasIconSource() const
Definition: ElementGeometry.h:71
double getIconRotation() const
Definition: ElementGeometry.h:72
bool getIconFixedAspectRatio() const
Definition: ElementGeometry.h:74
void setIconFlip(bool iconFlip)
Definition: ElementGeometry.h:62
oms_status_enu_t exportToSSD(pugi::xml_node &root) const
Definition: ElementGeometry.cpp:134
bool getIconFlip() const
Definition: ElementGeometry.h:73
oms_status_enu_t importFromSSD(const pugi::xml_node &node)
Definition: ElementGeometry.cpp:166
void setY1(double y1)
Definition: ElementGeometry.h:55
void setY2(double y2)
Definition: ElementGeometry.h:57
void setSizePosition(double x1, double y1, double x2, double y2)
Definition: ElementGeometry.h:58
const char * element_geometry
Definition: Tags.cpp:53