44 :
schema(s->inputs(), s->outputs(), s->width()+2*margin, s->height()+2*margin),
70 for (
unsigned int i=0; i <
inputs(); i++) {
75 for (
unsigned int i=0; i <
outputs(); i++) {
114 for (
unsigned int i=0; i<
inputs(); i++) {
121 for (
unsigned int i=0; i<
outputs(); i++) {
135 double tr =
min(tl+tw, x1);
159 for (
unsigned int i=0; i<
inputs(); i++) {
166 for (
unsigned int i=0; i<
outputs(); i++) {
void addTrait(const trait &t)
unsigned int outputs() const
virtual point inputPoint(unsigned int i) const =0
void beginPlace(double x, double y, int orientation)
A decorateSchema is a schema surrounded by a dashed rectangle with a label on the top left...
virtual void draw(device &dev)
Draw the enlarged schema.
virtual void draw(device &dev)=0
virtual point inputPoint(unsigned int i) const
Returns an input point.
virtual void collectTraits(collector &c)=0
virtual void label(double x, double y, const char *name)=0
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...
unsigned int inputs() const
virtual void place(double ox, double oy, int orientation)
Define the graphic position of the schema.
schema * makeDecorateSchema(schema *s, double margin, const string &text)
Creates a new decorated schema.
virtual void place(double x, double y, int orientation)=0
vector< point > fInputPoint
virtual point outputPoint(unsigned int i) const =0
An abstract block diagram schema.
virtual point outputPoint(unsigned int i) const
Returns an output point.
virtual void collectTraits(collector &c)
Draw the enlarged schema.
const double dLetter
width of a letter
double min(double x, double y)
virtual void dasharray(double x1, double y1, double x2, double y2)=0
virtual void trait(double x1, double y1, double x2, double y2)=0
vector< point > fOutputPoint