96 for (
int i=0; i<N; i++) {
102 double px =
x() +
width();
105 for (
int i=0; i<N; i++) {
122 double px =
x() +
width();
125 for (
int i=0; i<N; i++) {
134 for (
int i=0; i<N; i++) {
170 for (
unsigned int i=0; i<
inputs(); i++) {
186 for (
unsigned int i=0; i<
outputs(); i++) {
void addOutput(const point &p)
void addTrait(const trait &t)
unsigned int outputs() const
const double dWire
distance between two wires
void beginPlace(double x, double y, int orientation)
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.
unsigned int inputs() const
schema * makeConnectorSchema()
Connectors are used to ensure unused inputs and outputs are drawn.
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.
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.
const double dHorz
marge horizontale
void addInput(const point &p)
connectorSchema()
A connector is an invisible square fo dWire size with 1 input and 1 output.