Public Member Functions | List of all members
CircuitWire Class Reference

CircuitWire Class is used to specify the wiring of the circuit.
The class can be called from Circuit class.
. More...

Public Member Functions

Variant GetPosition ()
 Returns the position of the terminal as a point sequence. More...
 
bool IsValid ()
 Returns True if an object is valid. More...
 
void Move (int dx, int dy)
 Moves the wiring by specifying the displacement. More...
 
void ReverseRotate ()
 Rotates the wiring by 90 degrees anticlockwise.
 
void Rotate ()
 Rotates the wiring by 90 degrees clockwise.
 
void SetPosition (int sx, int sy, int ex, int ey)
 Arranges a wire by specifying the start position and end position. More...
 

Detailed Description

CircuitWire Class is used to specify the wiring of the circuit.
The class can be called from Circuit class.
.

Example of obtaining the class object:

app.GetModel(0).GetStudy(0).GetCircuit().GetWire(0)

Member Function Documentation

Variant CircuitWire::GetPosition ( )

Returns the position of the terminal as a point sequence.

Returns
Position of the terminal (x1, y1, x2, y2)
bool CircuitWire::IsValid ( )

Returns True if an object is valid.

Returns
Whether or not the CircuitWire objects in the list are valid
void CircuitWire::Move ( int  dx,
int  dy 
)

Moves the wiring by specifying the displacement.

Parameters
dxDisplacement in the X-axis direction
dyDisplacement in the Y-axis direction
void CircuitWire::SetPosition ( int  sx,
int  sy,
int  ex,
int  ey 
)

Arranges a wire by specifying the start position and end position.

Parameters
sxX-coordinate of the start position
syY-coordinate of the start position
exX-coordinate of the end position
eyY-coordinate of the end position