30 ComponentInfo(QString ID_, ComponentType Type_,
double rot_,
double x,
32 : ID(ID_), Type(Type_), Rotation(rot_), Coordinates(2) {
37 ComponentInfo(QString ID_, ComponentType Type_,
double rot_, QPoint P)
38 : ID(ID_), Type(Type_), Rotation(rot_), Coordinates(2) {
39 Coordinates[0] = P.x();
40 Coordinates[1] = P.y();
44 : ID(ID_), Type(Type_), Coordinates(2) {
45 Coordinates[0] = P.x();
46 Coordinates[1] = P.y();
56 std::vector<double> Coordinates;
57 int getNumberOfPorts()
const {
59 case MicrostripCoupledLines:
68 void setParams(QString ID_, ComponentType Type_,
double Rotation_,
double x,
78 void setParams(QString ID_, ComponentType Type_,
double Rotation_, QPoint P)
83 Coordinates[0] = P.x();
84 Coordinates[1] = P.y();
87 void setParams(QString ID_, ComponentType Type_, QPoint P)
92 Coordinates[0] = P.x();
93 Coordinates[1] = P.y();
96 QMap<QString, QString> val;
97 double getVal(QString);
104 WireInfo(QString O,
int OP, QString D,
int DP)
105 : OriginID(O), PortOrigin(OP), DestinationID(D), PortDestination(DP) {}
106 void setParams(QString O,
int OP, QString D,
int DP) {
107 OriginID = O, DestinationID = D;
108 PortOrigin = OP, PortDestination = DP;
109 WireColor = Qt::black;
111 void setParams(QString O,
int OP, QString D,
int DP, QColor Color) {
112 OriginID = O, DestinationID = D;
113 PortOrigin = OP, PortDestination = DP;
116 void setID(QString
id) { ID = id; }
117 QString getID() {
return ID; }
119 void setNet(QString net) { Net = net; }
120 QString getNet() {
return Net; }
124 QString DestinationID;
138 NodeInfo(QString ID_,
double x,
double y) : ID(ID_), Coordinates(2) {
143 NodeInfo(QString ID_, QPoint P) : ID(ID_), Coordinates(2) {
144 Coordinates[0] = P.x();
145 Coordinates[1] = P.y();
149 void setParams(QString ID_,
double x,
double y) {
155 void setParams(QString ID_, QPoint P) {
157 Coordinates[0] = P.x();
158 Coordinates[1] = P.y();
163 std::vector<double> Coordinates;
171 TextInfo(QString ID_, QString text_, QFont font_ = QFont(),
172 QColor color_ = Qt::black, QPointF position_ = QPointF())
173 : ID(ID_), text(text_), font(font_), color(color_), position(position_) {}
175 void setParams(QString ID_, QString text_, QFont font_ = QFont(),
176 QColor color_ = Qt::black, QPointF position_ = QPointF()) {
181 position = position_;
Definition infoclasses.h:167