|
FAUST compiler
0.9.9.6b8
|
A decorateSchema is a schema surrounded by a dashed rectangle with a label on the top left. More...
#include <decorateSchema.h>


Public Member Functions | |
| virtual void | place (double ox, double oy, 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 Member Functions | |
| decorateSchema (schema *s1, double margin, const string &text) | |
| A decorateSchema is a schema surrounded by a dashed rectangle with a label on the top left. More... | |
Private Attributes | |
| schema * | fSchema |
| double | fMargin |
| string | fText |
| vector< point > | fInputPoint |
| vector< point > | fOutputPoint |
Friends | |
| schema * | makeDecorateSchema (schema *s1, double margin, const string &text) |
| Creates a new decorated schema. More... | |
A decorateSchema is a schema surrounded by a dashed rectangle with a label on the top left.
The rectangle is placed at half the margin parameter
Definition at line 34 of file decorateSchema.h.
|
private |
A decorateSchema is a schema surrounded by a dashed rectangle with a label on the top left.
The rectangle is placed at half the margin parameter. The constructor is made private to enforce the usage of makeDecorateSchema
Definition at line 43 of file decorateSchema.cpp.
References fInputPoint, fOutputPoint, schema::inputs(), and schema::outputs().

|
virtual |
Draw the enlarged schema.
This methods can only be called after the block have been placed
Implements schema.
Definition at line 152 of file decorateSchema.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 methods can only be called after the block have been placed
Implements schema.
Definition at line 107 of file decorateSchema.cpp.
References device::dasharray(), dLetter, schema::draw(), fMargin, fSchema, fText, schema::height(), inputPoint(), schema::inputPoint(), schema::inputs(), device::label(), min(), outputPoint(), schema::outputPoint(), schema::outputs(), schema::placed(), tl(), device::trait(), schema::width(), point::x, schema::x(), point::y, and schema::y().

|
virtual |
Returns an input point.
Implements schema.
Definition at line 86 of file decorateSchema.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 decorateSchema.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 decorateSchema.cpp.
References schema::beginPlace(), schema::endPlace(), fInputPoint, fMargin, fOutputPoint, fSchema, schema::inputPoint(), schema::inputs(), kRightLeft, schema::outputPoint(), schema::outputs(), schema::place(), point::x, and point::y.

Creates a new decorated schema.
Definition at line 31 of file decorateSchema.cpp.
|
private |
Definition at line 39 of file decorateSchema.h.
Referenced by decorateSchema(), inputPoint(), and place().
|
private |
Definition at line 37 of file decorateSchema.h.
|
private |
Definition at line 40 of file decorateSchema.h.
Referenced by decorateSchema(), outputPoint(), and place().
|
private |
Definition at line 36 of file decorateSchema.h.
Referenced by collectTraits(), draw(), and place().
|
private |
Definition at line 38 of file decorateSchema.h.
Referenced by draw().
1.8.7