22 #ifndef __connectorSchema__
23 #define __connectorSchema__
vector< point > fOutputPoint
output connection points
A simple rectangular box with a text and inputs and outputs.
virtual point inputPoint(unsigned int i) const
Returns an input point.
void collectOutputWires(collector &c)
Draw horizontal line from the connectorSchema rectangle to the output points.
void placeOutputPoints()
Computes the output points according to the position and the orientation of the connectorSchema.
void placeInputPoints()
Computes the input points according to the position and the orientation of the connectorSchema.
friend schema * makeConnectorSchema()
Connectors are used to ensure unused inputs and outputs are drawn.
vector< point > fInputPoint
input connection points
virtual point outputPoint(unsigned int i) const
Returns an output point.
virtual void draw(device &dev)
Draw the connectorSchema on the device.
virtual void collectTraits(collector &c)
Draw horizontal arrows from the input points to the connectorSchema rectangle.
void collectInputWires(collector &c)
Draw horizontal arrows from the input points to the connectorSchema rectangle.
An abstract block diagram schema.
virtual void place(double x, double y, int orientation)
Define the graphic position of the connectorSchema.
connectorSchema()
A connector is an invisible square fo dWire size with 1 input and 1 output.