#include "mergeSchema.h"
#include "schema.h"
#include <iostream>
#include <assert.h>
Go to the source code of this file.
Functions | |
schema * | makeMergeSchema (schema *s1, schema *s2) |
Creates a new merge schema. |
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.
References dWire, schema::height(), and makeEnlargedSchema().
Referenced by generateInsideSchema().
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 }