Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

Wire Class Reference

#include <wire.h>

List of all members.

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
WireEndstart
WireEndend
vector< WirePoint * > wirepoints
int mode

Friends

class WireEnd


Constructor & Destructor Documentation

Wire::Wire WirePoint   startpoint
 

Wire::~Wire  
 


Member Function Documentation

bool Wire::add_point WirePoint   p
 

Wire * Wire::break_at int    tx,
int    ty,
WireEnd   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

bool Wire::contains int    tx,
int    ty
 

void Wire::draw Graphics   g,
int    scale,
bool    selected
 

void Wire::get_connected_components vector< Component * > *    sending,
vector< Component * > *    receiving
 

void Wire::get_connected_wires vector< Wire * > *    wirelist
 

void Wire::move_last_point int    newx,
int    newy
 

bool Wire::remove_last_point  
 


Friends And Related Function Documentation

friend class WireEnd [friend]
 


Member Data Documentation

WireEnd* Wire::end
 

int Wire::index
 

int Wire::mode
 

WireEnd* Wire::start
 

vector<WirePoint *> Wire::wirepoints
 


The documentation for this class was generated from the following files:
Generated on Wed Apr 23 10:42:36 2003 for BioFilter by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002