exportToTk Class Reference
[Building canvasses]

This class implements a builder for Tk canvas files of graph objects. More...

#include <exportToTk.h>

Inheritance diagram for exportToTk:

canvasBuilder managedObject goblinRootObject

Public Types

enum  TObjectTypeID {
  ID_GRAPH_NODE = 0,
  ID_GRAPH_EDGE = 1,
  ID_NODE_LABEL = 2,
  ID_EDGE_LABEL = 3,
  ID_UPPER_LEFT = 4,
  ID_LOWER_RIGHT = 5,
  ID_BEND_NODE = 6,
  ID_ALIGN_NODE = 7,
  ID_BACKGROUND = 8,
  ID_ARROW = 10,
  ID_GRID_LINE = 11
}

Public Member Functions

 exportToTk (const abstractMixedGraph &GG, const char *expFileName) throw (ERFile)
 ~exportToTk () throw ()
unsigned long Size () const throw ()
unsigned long Allocated () const throw ()
void DisplayLegenda (long xm, long ym, long radius) throw ()
void WriteNodeLegenda (long x, long y, char *index) throw ()
void WritePolyLine (vector< double > &cx, vector< double > &cy, TLineStyle lineStyle, int width, TArrowDir displayedArrows, TIndex colourIndex, int depth) throw ()
void WriteArrow (TArc a, long xtop, long ytop, double dx, double dy) throw ()
void WriteArcLabel (TArc a, long xm, long ym) throw ()
void DisplayNode (TNode v) throw ()
void WriteSmallNode (TNode v, long x, long y) throw ()
void WriteCircularNode (TNode v, long x, long y, char *fillColour) throw ()
void WriteRectangularNode (TNode v, long x, long y, char *fillColour) throw ()
void WriteRegularNode (TNode v, long x, long y, char *fillColour) throw ()
void WriteNodeLabel (TNode v, long x, long y) throw ()
void DisplayArtificialNode (TNode v) throw ()

Detailed Description

This class implements a builder for Tk canvas files of graph objects.


Member Enumeration Documentation

enum TObjectTypeID
 

Types which are interpreted by the Tcl user interface to generate canvas objects from the table in file.

Enumerator:
ID_GRAPH_NODE  What follows is the configuration set of a oval object associated with a graph node.
ID_GRAPH_EDGE  What follows is the configuration set of a line object associated with a graph edge.
ID_NODE_LABEL  What follows is the configuration set of a text object associated with a graph node.
ID_EDGE_LABEL  What follows is the configuration set of a text object associated with a graph edge.
ID_UPPER_LEFT  What follows is the configuration set of the upper left corner of the bounding box.
ID_LOWER_RIGHT  What follows is the configuration set of the bottom right corner of the bounding box.
ID_BEND_NODE  What follows is the configuration set of a rectangle object associated with a layout bend point.
ID_ALIGN_NODE  What follows is the configuration set of a rectangle object associated with an arc label anchor.
ID_BACKGROUND  What follows is the configuration set of the background image.
ID_ARROW  What follows is the configuration set of a polygone object associated with a graph arc.
ID_GRID_LINE  What follows is the configuration set of a grid line.


Constructor & Destructor Documentation

exportToTk const abstractMixedGraph GG,
const char *  expFileName
throw (ERFile)
 

~exportToTk  )  throw ()
 


Member Function Documentation

unsigned long Allocated  )  const throw ()
 

Reimplemented from canvasBuilder.

void DisplayArtificialNode TNode  v  )  throw ()
 

void DisplayLegenda long  xm,
long  ym,
long  radius
throw () [virtual]
 

Implements canvasBuilder.

void DisplayNode TNode  v  )  throw () [virtual]
 

Implements canvasBuilder.

unsigned long Size  )  const throw () [virtual]
 

Implements goblinRootObject.

void WriteArcLabel TArc  a,
long  xm,
long  ym
throw () [virtual]
 

Implements canvasBuilder.

void WriteArrow TArc  a,
long  xtop,
long  ytop,
double  dx,
double  dy
throw () [virtual]
 

Implements canvasBuilder.

void WriteCircularNode TNode  v,
long  x,
long  y,
char *  fillColour
throw ()
 

void WriteNodeLabel TNode  v,
long  x,
long  y
throw ()
 

void WriteNodeLegenda long  x,
long  y,
char *  index
throw ()
 

void WritePolyLine vector< double > &  cx,
vector< double > &  cy,
TLineStyle  lineStyle,
int  width,
TArrowDir  displayedArrows,
TIndex  colourIndex,
int  depth
throw ()
 

void WriteRectangularNode TNode  v,
long  x,
long  y,
char *  fillColour
throw ()
 

void WriteRegularNode TNode  v,
long  x,
long  y,
char *  fillColour
throw ()
 

void WriteSmallNode TNode  v,
long  x,
long  y
throw ()