Qucs-S S-parameter Viewer & RF Synthesis Tools
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
ComponentInfo Class Reference

Component information container. More...

#include <infoclasses.h>

Public Member Functions

 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.
 

Public Attributes

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)
 

Detailed Description

Component information container.

Constructor & Destructor Documentation

◆ 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
xX coordinate
yY coordinate

◆ ComponentInfo() [2/3]

ComponentInfo::ComponentInfo ( QString  ID_,
ComponentType  Type_,
double  rot_,
QPoint  P 
)
inline

Construct with ID, type, rotation and point.

Parameters
ID_Component identifier
Type_Component type
rot_Rotation angle in degrees
PPosition point

◆ ComponentInfo() [3/3]

ComponentInfo::ComponentInfo ( QString  ID_,
ComponentType  Type_,
QPoint  P 
)
inline

Construct with ID, type and point (zero rotation)

Parameters
ID_Component identifier
Type_Component type
PPosition point

Member Function Documentation

◆ 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
PropertyParameter name
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
xX coordinate
yY coordinate

◆ setParams() [2/3]

void ComponentInfo::setParams ( QString  ID_,
ComponentType  Type_,
double  Rotation_,
QPoint  P 
)
inline

Set component parameters with point and rotation.

Parameters
ID_Component identifier
Type_Component type
Rotation_Rotation angle
PPosition point

◆ setParams() [3/3]

void ComponentInfo::setParams ( QString  ID_,
ComponentType  Type_,
QPoint  P 
)
inline

Set component parameters with point (zero rotation)

Parameters
ID_Component identifier
Type_Component type
PPosition point

The documentation for this class was generated from the following files: