mergeSchema Class Reference

Place and connect two diagrams in merge composition. More...

#include <mergeSchema.h>

Inherits schema.

Collaboration diagram for mergeSchema:
Collaboration graph
[legend]

List of all members.

Public Member Functions

virtual void place (double ox, double oy, int orientation)
 Places the two subschema horizontaly, centered, with enough gap for the connections.
virtual void draw (device &dev)
 Draw the two sub schema and the connections between them.
virtual point inputPoint (unsigned int i) const
 The inputs of s1 :> s2 are the inputs of s1.
virtual point outputPoint (unsigned int i) const
 The outputs of s1 :> s2 are the outputs of s2.

Friends

schemamakeMergeSchema (schema *s1, schema *s2)
 Creates a new merge schema.

Detailed Description

Place and connect two diagrams in merge composition.

Definition at line 33 of file mergeSchema.h.


Friends And Related Function Documentation

schema* makeMergeSchema ( schema s1,
schema s2 
) [friend]

Creates a new merge schema.

Cables are enlarged to dWire. The horizontal gap between the two subschema is such that the connections are not too slopy.

Definition at line 35 of file mergeSchema.cpp.

00036 {
00037     // avoid ugly diagram by ensuring at least dWire width
00038     schema * a = makeEnlargedSchema(s1, dWire);
00039     schema * b = makeEnlargedSchema(s2, dWire);
00040     double  hgap = (a->height()+b->height())/4;
00041     return new mergeSchema(a,b,hgap);
00042 }


The documentation for this class was generated from the following files:

Generated on 1 Feb 2010 for FAUST compiler by  doxygen 1.6.1