|
FAUST compiler
0.9.9.6b8
|
An enlarged schema. More...
#include <enlargedSchema.h>


Public Member Functions | |
| enlargedSchema (schema *s, double width) | |
| Put additional space left and right of a schema so that the result has a certain width. More... | |
| virtual void | place (double x, double y, int orientation) |
| Define the graphic position of the schema. More... | |
| virtual void | draw (device &dev) |
| Draw the enlarged schema. 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 the enlarged schema. 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 |
Private Attributes | |
| schema * | fSchema |
| vector< point > | fInputPoint |
| vector< point > | fOutputPoint |
An enlarged schema.
Definition at line 35 of file enlargedSchema.h.
| enlargedSchema::enlargedSchema | ( | schema * | s, |
| double | width | ||
| ) |
Put additional space left and right of a schema so that the result has a certain width.
The wires are prolonged accordingly.
Definition at line 45 of file enlargedSchema.cpp.
References fInputPoint, fOutputPoint, schema::inputs(), and schema::outputs().

|
virtual |
Draw the enlarged schema.
This methos can only be called after the block have been placed
Implements schema.
Definition at line 133 of file enlargedSchema.cpp.
References collector::addTrait(), schema::collectTraits(), fSchema, inputPoint(), schema::inputPoint(), schema::inputs(), outputPoint(), schema::outputPoint(), schema::outputs(), and schema::placed().

|
virtual |
Draw the enlarged schema.
This methos can only be called after the block have been placed
Implements schema.
Definition at line 107 of file enlargedSchema.cpp.
References schema::draw(), fSchema, inputPoint(), schema::inputPoint(), schema::inputs(), outputPoint(), schema::outputPoint(), schema::outputs(), schema::placed(), device::trait(), point::x, and point::y.

|
virtual |
Returns an input point.
Implements schema.
Definition at line 86 of file enlargedSchema.cpp.
References fInputPoint, schema::inputs(), and schema::placed().
Referenced by collectTraits(), and draw().


|
virtual |
Returns an output point.
Implements schema.
Definition at line 96 of file enlargedSchema.cpp.
References fOutputPoint, schema::outputs(), and schema::placed().
Referenced by collectTraits(), and draw().


|
virtual |
Define the graphic position of the schema.
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 59 of file enlargedSchema.cpp.
References schema::beginPlace(), schema::endPlace(), fInputPoint, fOutputPoint, fSchema, schema::inputPoint(), schema::inputs(), kRightLeft, schema::outputPoint(), schema::outputs(), schema::place(), schema::width(), point::x, and point::y.

|
private |
Definition at line 38 of file enlargedSchema.h.
Referenced by enlargedSchema(), inputPoint(), and place().
|
private |
Definition at line 39 of file enlargedSchema.h.
Referenced by enlargedSchema(), outputPoint(), and place().
|
private |
Definition at line 37 of file enlargedSchema.h.
Referenced by collectTraits(), draw(), and place().
1.8.7