#include <wire.h>
Public Methods | |
| Wire (WirePoint *startpoint) | |
| ~Wire () | |
| void | draw (Graphics *g, int scale, bool selected) |
| bool | add_point (WirePoint *p) |
| void | move_last_point (int newx, int newy) |
| bool | remove_last_point () |
| bool | contains (int tx, int ty) |
| Wire * | break_at (int tx, int ty, WireEnd *wireend) |
| void | get_connected_wires (vector< Wire * > *wirelist) |
| void | get_connected_components (vector< Component * > *sending, vector< Component * > *receiving) |
Public Attributes | |
| int | index |
| WireEnd * | start |
| WireEnd * | end |
| vector< WirePoint * > | wirepoints |
| int | mode |
Friends | |
| class | WireEnd |
|
|
|
|
|
|
|
|
|
|
||||||||||||||||
|
Breaks the wire at point (tx,ty) and returns the piece of wire it broke off. If this wire does not contain point (tx,ty), NULL is returned, because you should have known better. this function also connects wire w to each segment of the broken wire and connects each segment of the broken wire to w |
|
||||||||||||
|
|
|
||||||||||||||||
|
|
|
||||||||||||
|
|
|
|
|
|
||||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1.2.14 written by Dimitri van Heesch,
© 1997-2002