|
FAUST compiler
0.9.9.6b8
|

Go to the source code of this file.
Enumerations | |
| enum | { kHorDir, kUpDir, kDownDir } |
Functions | |
| static double | computeHorzGap (schema *a, schema *b) |
| Compute the horizontal gap needed to draw the internal wires. More... | |
| static int | direction (const point &a, const point &b) |
| Compute the direction of a connection. More... | |
| schema * | makeSeqSchema (schema *s1, schema *s2) |
| Make a sequential schema. More... | |
| anonymous enum |
| Enumerator | |
|---|---|
| kHorDir | |
| kUpDir | |
| kDownDir | |
Definition at line 29 of file seqSchema.cpp.
Compute the horizontal gap needed to draw the internal wires.
It depends on the largest group of connections that go in the same direction.
Definition at line 325 of file seqSchema.cpp.
References direction(), dWire, schema::height(), schema::inputPoint(), schema::inputs(), kDownDir, kLeftRight, kUpDir, max(), schema::outputPoint(), schema::outputs(), and schema::place().
Referenced by makeSeqSchema().


Compute the direction of a connection.
Note that Y axis goes from top to bottom
Definition at line 313 of file seqSchema.cpp.
References kDownDir, kHorDir, kUpDir, and point::y.
Referenced by seqSchema::collectInternalWires(), computeHorzGap(), and seqSchema::drawInternalWires().

Make a sequential schema.
May add cables to ensure the internal connections are between the same number of outputs and inputs. Compute an horizontal gap based on the number of upward and downward connections.
Definition at line 43 of file seqSchema.cpp.
References computeHorzGap(), schema::inputs(), makeCableSchema(), makeParSchema(), and schema::outputs().
Referenced by addSchemaInputs(), addSchemaOutputs(), generateAbstractionSchema(), and generateInsideSchema().


1.8.7