|
FAUST compiler
0.9.9.6b8
|
A simple rectangular box with a text and inputs and outputs. More...
#include <connectorSchema.h>


Public Member Functions | |
| virtual void | place (double x, double y, int orientation) |
| Define the graphic position of the connectorSchema. More... | |
| virtual void | draw (device &dev) |
| Draw the connectorSchema on the device. More... | |
| virtual point | inputPoint (unsigned int i) const |
| Returns an input point. More... | |
| virtual point | outputPoint (unsigned int i) const |
| Returns an output point. More... | |
| virtual void | collectTraits (collector &c) |
| Draw horizontal arrows from the input points to the connectorSchema rectangle. More... | |
Public Member Functions inherited from schema | |
| schema (unsigned int inputs, unsigned int outputs, double width, double height) | |
| virtual | ~schema () |
| double | width () const |
| double | height () const |
| unsigned int | inputs () const |
| unsigned int | outputs () const |
| void | beginPlace (double x, double y, int orientation) |
| void | endPlace () |
| bool | placed () const |
| double | x () const |
| double | y () const |
| int | orientation () const |
Protected Member Functions | |
| connectorSchema () | |
| A connector is an invisible square fo dWire size with 1 input and 1 output. More... | |
| void | placeInputPoints () |
| Computes the input points according to the position and the orientation of the connectorSchema. More... | |
| void | placeOutputPoints () |
| Computes the output points according to the position and the orientation of the connectorSchema. More... | |
| void | collectInputWires (collector &c) |
| Draw horizontal arrows from the input points to the connectorSchema rectangle. More... | |
| void | collectOutputWires (collector &c) |
| Draw horizontal line from the connectorSchema rectangle to the output points. More... | |
Protected Attributes | |
| vector< point > | fInputPoint |
| input connection points More... | |
| vector< point > | fOutputPoint |
| output connection points More... | |
Friends | |
| schema * | makeConnectorSchema () |
| Connectors are used to ensure unused inputs and outputs are drawn. More... | |
A simple rectangular box with a text and inputs and outputs.
The constructor is private in order to make sure makeconnectorSchema is used instead
Definition at line 35 of file connectorSchema.h.
|
protected |
A connector is an invisible square fo dWire size with 1 input and 1 output.
Definition at line 42 of file connectorSchema.cpp.
References fInputPoint, and fOutputPoint.
|
protected |
Draw horizontal arrows from the input points to the connectorSchema rectangle.
Definition at line 166 of file connectorSchema.cpp.
References collector::addInput(), collector::addTrait(), dHorz, fInputPoint, schema::inputs(), kLeftRight, schema::orientation(), point::x, and point::y.
Referenced by collectTraits().


|
protected |
Draw horizontal line from the connectorSchema rectangle to the output points.
Definition at line 182 of file connectorSchema.cpp.
References collector::addOutput(), collector::addTrait(), dHorz, fOutputPoint, kLeftRight, schema::orientation(), schema::outputs(), point::x, and point::y.
Referenced by collectTraits().


|
virtual |
Draw horizontal arrows from the input points to the connectorSchema rectangle.
Implements schema.
Definition at line 155 of file connectorSchema.cpp.
References collectInputWires(), and collectOutputWires().

|
virtual |
Draw the connectorSchema on the device.
This methos can only be called after the connectorSchema have been placed
Implements schema.
Definition at line 145 of file connectorSchema.cpp.
References schema::placed().

|
virtual |
Returns an input point.
Implements schema.
Definition at line 66 of file connectorSchema.cpp.
References fInputPoint, schema::inputs(), and schema::placed().

|
virtual |
Returns an output point.
Implements schema.
Definition at line 76 of file connectorSchema.cpp.
References fOutputPoint, schema::outputs(), and schema::placed().

|
virtual |
Define the graphic position of the connectorSchema.
Computes the graphic position of all the elements, in particular the inputs and outputs. This method must be called before draw(), otherwise draw is not allowed
Implements schema.
Definition at line 53 of file connectorSchema.cpp.
References schema::beginPlace(), schema::endPlace(), placeInputPoints(), and placeOutputPoints().

|
protected |
Computes the input points according to the position and the orientation of the connectorSchema.
Definition at line 87 of file connectorSchema.cpp.
References dWire, fInputPoint, schema::height(), schema::inputs(), kLeftRight, schema::orientation(), schema::width(), schema::x(), and schema::y().
Referenced by place().


|
protected |
Computes the output points according to the position and the orientation of the connectorSchema.
Definition at line 116 of file connectorSchema.cpp.
References dWire, fOutputPoint, schema::height(), kLeftRight, schema::orientation(), schema::outputs(), schema::width(), schema::x(), and schema::y().
Referenced by place().


|
friend |
Connectors are used to ensure unused inputs and outputs are drawn.
Definition at line 33 of file connectorSchema.cpp.
|
protected |
input connection points
Definition at line 39 of file connectorSchema.h.
Referenced by collectInputWires(), connectorSchema(), inputPoint(), and placeInputPoints().
|
protected |
output connection points
Definition at line 40 of file connectorSchema.h.
Referenced by collectOutputWires(), connectorSchema(), outputPoint(), and placeOutputPoints().
1.8.7