splitSchema Class Reference

place and connect two diagrams in split composition More...

#include <splitSchema.h>

Inherits schema.

Collaboration diagram for splitSchema:
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

schemamakeSplitSchema (schema *s1, schema *s2)
 Creates a new split schema.

Detailed Description

place and connect two diagrams in split composition

Definition at line 33 of file splitSchema.h.


Friends And Related Function Documentation

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

Creates a new split 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 34 of file splitSchema.cpp.

00035 {
00036     // make sure a and b are at least dWire large
00037     schema * a = makeEnlargedSchema(s1, dWire);
00038     schema * b = makeEnlargedSchema(s2, dWire);
00039 
00040     // horizontal gap to avaoid too slopy connections
00041     double  hgap = (a->height()+b->height())/4;
00042 
00043     return new splitSchema(a,b,hgap);
00044 }


The documentation for this class was generated from the following files:
Generated by  doxygen 1.6.2-20100208