schema Class Reference

An abstract block diagram schema. More...

#include <schema.h>

Inherited by blockSchema, cableSchema, cutSchema, decorateSchema, enlargedSchema, mergeSchema, parSchema, recSchema, seqSchema, splitSchema, and topSchema.

List of all members.

Public Member Functions

 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
virtual void place (double x, double y, int orientation)=0
virtual void draw (device &dev)=0
virtual point inputPoint (unsigned int i) const =0
virtual point outputPoint (unsigned int i) const =0

Private Attributes

const unsigned int fInputs
const unsigned int fOutputs
const double fWidth
const double fHeight
bool fPlaced
 false until place() is called
double fX
double fY
int fOrientation

Detailed Description

An abstract block diagram schema.

Definition at line 56 of file schema.h.


Constructor & Destructor Documentation

schema::schema ( unsigned int  inputs,
unsigned int  outputs,
double  width,
double  height 
) [inline]

Definition at line 72 of file schema.h.

00073         :   fInputs(inputs),
00074             fOutputs(outputs),
00075             fWidth(width),
00076             fHeight(height),
00077             fPlaced(false),
00078             fX(0),
00079             fY(0),
00080             fOrientation(0)
00081     {}

virtual schema::~schema (  )  [inline, virtual]

Definition at line 82 of file schema.h.

00082 {}


Member Function Documentation

void schema::beginPlace ( double  x,
double  y,
int  orientation 
) [inline]
virtual void schema::draw ( device dev  )  [pure virtual]
void schema::endPlace (  )  [inline]
double schema::height (  )  const [inline]
virtual point schema::inputPoint ( unsigned int  i  )  const [pure virtual]
unsigned int schema::inputs (  )  const [inline]
int schema::orientation (  )  const [inline]
virtual point schema::outputPoint ( unsigned int  i  )  const [pure virtual]
unsigned int schema::outputs (  )  const [inline]
virtual void schema::place ( double  x,
double  y,
int  orientation 
) [pure virtual]
bool schema::placed (  )  const [inline]
double schema::width (  )  const [inline]
double schema::x (  )  const [inline]

Definition at line 97 of file schema.h.

References fX.

Referenced by topSchema::draw(), decorateSchema::draw(), blockSchema::drawOrientationMark(), blockSchema::drawRectangle(), blockSchema::drawText(), blockSchema::placeInputPoints(), and blockSchema::placeOutputPoints().

00097 { return fX; }

Here is the caller graph for this function:

double schema::y (  )  const [inline]

Definition at line 98 of file schema.h.

References fY.

Referenced by topSchema::draw(), decorateSchema::draw(), blockSchema::drawOrientationMark(), blockSchema::drawRectangle(), blockSchema::drawText(), blockSchema::placeInputPoints(), and blockSchema::placeOutputPoints().

00098 { return fY; }

Here is the caller graph for this function:


Member Data Documentation

const double schema::fHeight [private]

Definition at line 62 of file schema.h.

Referenced by height().

const unsigned int schema::fInputs [private]

Definition at line 59 of file schema.h.

Referenced by inputs().

int schema::fOrientation [private]

Definition at line 68 of file schema.h.

Referenced by beginPlace(), and orientation().

const unsigned int schema::fOutputs [private]

Definition at line 60 of file schema.h.

Referenced by outputs().

bool schema::fPlaced [private]

false until place() is called

Definition at line 65 of file schema.h.

Referenced by endPlace(), and placed().

const double schema::fWidth [private]

Definition at line 61 of file schema.h.

Referenced by width().

double schema::fX [private]

Definition at line 66 of file schema.h.

Referenced by beginPlace(), and x().

double schema::fY [private]

Definition at line 67 of file schema.h.

Referenced by beginPlace(), and y().


The documentation for this class was generated from the following file:
Generated on Tue Aug 10 08:04:22 2010 for FAUST compiler by  doxygen 1.6.3