Component information container.
More...
#include <infoclasses.h>
|
|
| ComponentInfo () |
| | Default constructor.
|
| |
| | ComponentInfo (QString ID_, ComponentType Type_, double rot_, double x, double y) |
| | Construct with ID, type, rotation and coordinates.
|
| |
| | ComponentInfo (QString ID_, ComponentType Type_, double rot_, QPoint P) |
| | Construct with ID, type, rotation and point.
|
| |
| | ComponentInfo (QString ID_, ComponentType Type_, QPoint P) |
| | Construct with ID, type and point (zero rotation)
|
| |
|
| ~ComponentInfo () |
| | Class destructor.
|
| |
| int | getNumberOfPorts () const |
| | Get number of ports for component type.
|
| |
| void | setParams (QString ID_, ComponentType Type_, double Rotation_, double x, double y) |
| | Set component parameters with coordinates.
|
| |
| void | setParams (QString ID_, ComponentType Type_, double Rotation_, QPoint P) |
| | Set component parameters with point and rotation.
|
| |
| void | setParams (QString ID_, ComponentType Type_, QPoint P) |
| | Set component parameters with point (zero rotation)
|
| |
| double | getVal (const QString &) |
| | Parse parameter value with SI suffix.
|
| |
|
|
QString | ID |
| | Component identifier.
|
| |
|
ComponentType | Type |
| | Component type.
|
| |
|
double | Rotation |
| | Rotation angle in degrees.
|
| |
|
QString | Net1 |
| |
|
QString | Net2 |
| | Connected node IDs.
|
| |
|
std::vector< double > | Coordinates |
| | Position coordinates [x, y].
|
| |
|
QMap< QString, QString > | val |
| | Component parameters (e.g., freq, L1.L, C1.C)
|
| |
Component information container.
◆ ComponentInfo() [1/3]
| ComponentInfo::ComponentInfo |
( |
QString |
ID_, |
|
|
ComponentType |
Type_, |
|
|
double |
rot_, |
|
|
double |
x, |
|
|
double |
y |
|
) |
| |
|
inline |
Construct with ID, type, rotation and coordinates.
- Parameters
-
| ID_ | Component identifier |
| Type_ | Component type |
| rot_ | Rotation angle in degrees |
| x | X coordinate |
| y | Y coordinate |
◆ ComponentInfo() [2/3]
| ComponentInfo::ComponentInfo |
( |
QString |
ID_, |
|
|
ComponentType |
Type_, |
|
|
double |
rot_, |
|
|
QPoint |
P |
|
) |
| |
|
inline |
Construct with ID, type, rotation and point.
- Parameters
-
◆ ComponentInfo() [3/3]
| ComponentInfo::ComponentInfo |
( |
QString |
ID_, |
|
|
ComponentType |
Type_, |
|
|
QPoint |
P |
|
) |
| |
|
inline |
Construct with ID, type and point (zero rotation)
- Parameters
-
◆ getNumberOfPorts()
| int ComponentInfo::getNumberOfPorts |
( |
| ) |
const |
|
inline |
Get number of ports for component type.
- Returns
- Number of ports (2 or 4)
◆ getVal()
| double ComponentInfo::getVal |
( |
const QString & |
property | ) |
|
Parse parameter value with SI suffix.
- Parameters
-
- Returns
- Numeric value with scale applied
◆ setParams() [1/3]
| void ComponentInfo::setParams |
( |
QString |
ID_, |
|
|
ComponentType |
Type_, |
|
|
double |
Rotation_, |
|
|
double |
x, |
|
|
double |
y |
|
) |
| |
|
inline |
Set component parameters with coordinates.
- Parameters
-
| ID_ | Component identifier |
| Type_ | Component type |
| Rotation_ | Rotation angle |
| x | X coordinate |
| y | Y coordinate |
◆ setParams() [2/3]
| void ComponentInfo::setParams |
( |
QString |
ID_, |
|
|
ComponentType |
Type_, |
|
|
double |
Rotation_, |
|
|
QPoint |
P |
|
) |
| |
|
inline |
Set component parameters with point and rotation.
- Parameters
-
◆ setParams() [3/3]
| void ComponentInfo::setParams |
( |
QString |
ID_, |
|
|
ComponentType |
Type_, |
|
|
QPoint |
P |
|
) |
| |
|
inline |
Set component parameters with point (zero rotation)
- Parameters
-
The documentation for this class was generated from the following files: