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... | |
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:
| Variant CircuitWire::GetPosition | ( | ) |
Returns the position of the terminal as a point sequence.
| bool CircuitWire::IsValid | ( | ) |
Returns True if an object is valid.
| void CircuitWire::Move | ( | int | dx, |
| int | dy | ||
| ) |
Moves the wiring by specifying the displacement.
| dx | Displacement in the X-axis direction |
| dy | Displacement 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.
| sx | X-coordinate of the start position |
| sy | Y-coordinate of the start position |
| ex | X-coordinate of the end position |
| ey | Y-coordinate of the end position |