|
Public Types |
enum | TArrowDir {
ARROW_NONE = 0,
ARROW_FORWARD = 1,
ARROW_BACKWARD = 2,
ARROW_BOTH = 3
} |
enum | TLineStyle {
LINE_STYLE_SOLID = 0,
LINE_STYLE_DOT = 1,
LINE_STYLE_DASH = 2,
LINE_STYLE_DASH_DOT = 3,
LINE_STYLE_ZIG_ZAG = 8,
LINE_STYLE_WAVED = 16
} |
enum | TArcVisibilityMode {
ARC_DISPLAY_HIDE_ALL = 0,
ARC_DISPLAY_SUBGRAPH = 1,
ARC_DISPLAY_PREDECESSORS = 2,
ARC_DISPLAY_PRED_SUB = 3,
ARC_DISPLAY_SHOW_ALL = 4
} |
enum | TArcShapeMode {
ARC_SHAPE_POLYGONES = 0,
ARC_SHAPE_SMOOTH = 1
} |
enum | TArcWidthMode {
ARC_WIDTH_UNIFORM = 0,
ARC_WIDTH_PREDECESSORS = 1,
ARC_WIDTH_SUBGRAPH = 2,
ARC_WIDTH_FLOW_LINEAR = 3,
ARC_WIDTH_FLOW_LOGARITHMIC = 4,
ARC_WIDTH_EMPTY_FREE_FULL = 5
} |
enum | TArcStippleMode {
ARC_STIPPLE_OFF = 0,
ARC_STIPPLE_PREDECESSORS = 1,
ARC_STIPPLE_FREE = 2,
ARC_STIPPLE_FRACTIONAL = 3,
ARC_STIPPLE_COLOURS = 4,
ARC_STIPPLE_VOID = 5,
ARC_STIPPLE_SUBGRAPH = 6
} |
enum | TArcColourMode {
ARCS_UNCOLOURED = 0,
ARCS_FIXED_COLOURS = 1,
ARCS_REPEAT_COLOURS = 2,
ARCS_FLOATING_COLOURS = 3,
ARCS_COLOUR_PRED = 4
} |
enum | TArrowDisplayMode {
ARROWS_ARC_ORIENTATION = 0,
ARROWS_OFF = 1,
ARROWS_IMPL_ORIENTATION = 2,
ARROWS_FLOW_DIRECTION = 3,
ARROWS_LIKE_PREDECESSORS = 4
} |
enum | TArrowPosMode {
ARROWS_AT_ENDS = 0,
ARROWS_CENTERED = 1
} |
enum | TNodeShapeMode {
NODE_SHAPE_POINT = 0,
NODE_SHAPE_CIRCULAR = 1,
NODE_SHAPE_BOX = 2,
NODE_SHAPE_BY_COLOUR = 3
} |
enum | TNodeColourMode {
NODES_UNCOLOURED = 0,
NODES_COLOUR_BY_DISTANCE = 1,
NODES_FIXED_COLOURS = 2,
NODES_COLOUR_BY_DEMAND = 3,
NODES_FLOATING_COLOURS = 4
} |
enum | TGridDisplayMode {
GRID_DISPLAY_OFF = 0,
GRID_DISPLAY_ALL = 1
} |
enum | TXFigFontType {
FONT_TIMES_ROMAN = 0,
FONT_TIMES_ITALIC = 1,
FONT_TIMES_BOLD = 2,
FONT_TIMES_BOLD_ITALIC = 3,
FONT_AVANTGARDE_BOOK = 4,
FONT_AVANTGARDE_BOOK_OBLIQUE = 5,
FONT_AVANTGARDE_DEMI = 6,
FONT_AVANTGARDE_DEMI_OBLIQUE = 7,
FONT_BOOKMAN_LIGHT = 8,
FONT_BOOKMAN_LIGHT_ITALIC = 9,
FONT_BOOKMAN_DEMI = 10,
FONT_BOOKMAN_DEMI_ITALIC = 11,
FONT_COURIER = 12,
FONT_COURIER_OBLIQUE = 13,
FONT_COURIER_BOLD = 14,
FONT_COURIER_BOLD_OBLIQUE = 15,
FONT_HELVETICA = 16,
FONT_HELVETICA_OBLIQUE = 17,
FONT_HELVETICA_BOLD = 18,
FONT_HELVETICA_BOLD_OBLIQUE = 19,
FONT_HELVETICA_NARROW = 20,
FONT_HELVETICA_NARROW_OBLIQUE = 21,
FONT_HELVETICA_NARROW_BOLD = 22,
FONT_HELVETICA_NARROW_BOLD_OBLIQUE = 23,
FONT_NEW_CENTURY_SCHOOLBOOK_ROMAN = 24,
FONT_NEW_CENTURY_SCHOOLBOOK_ITALIC = 25,
FONT_NEW_CENTURY_SCHOOLBOOK_BOLD = 26,
FONT_NEW_CENTURY_SCHOOLBOOK_BOLD_ITALIC = 27,
FONT_PALATINO_ROMAN = 28,
FONT_PALATINO_ITALIC = 29,
FONT_PALATINO_BOLD = 30,
FONT_PALATINO_BOLD_ITALIC = 31,
FONT_SYMBOL = 32,
FONT_ZAPF_CHANCERY_MEDIUM_ITALIC = 33,
FONT_ZAPF_DINGBATS = 34
} |
enum | {
PRED_COLOUR = 0,
INFTY_COLOUR = 1,
NO_COLOUR = 2,
OUTLINE_COLOUR = 3,
GRID_COLOUR = 4,
ZERO_COLOUR = 5,
MAX_COLOUR = 25
} |
Public Member Functions |
| canvasBuilder (const abstractMixedGraph &GC) throw (ERRejected) |
virtual | ~canvasBuilder () throw () |
unsigned long | Allocated () const throw () |
void | ComputeBoundingBox () throw () |
double | ScaleDisplayParameters (double zoomCalibration, double sizeX, double sizeY) throw () |
TFloat | CX (TNode v) throw () |
TFloat | CY (TNode v) throw () |
int | RoundToInt (double val) const throw () |
long | RoundToLong (double val) const throw () |
long | CanvasCX (double cx) throw () |
long | CanvasCY (double cy) throw () |
long | CanvasCXOfPoint (TNode v) throw (ERRange) |
long | CanvasCYOfPoint (TNode v) throw (ERRange) |
long | PortCX (TNode u, TNode v) throw () |
long | PortCY (TNode u, TNode v) throw () |
goblinController & | Configuration () throw () |
virtual void | DisplayGraph () throw (ERRejected) |
void | ExtractParameters () throw () |
void | DisplayArc (TArc) throw () |
TArrowDir | ArrowDirections (TArc a) throw () |
void | DisplayArrow (TArc, TNode, TNode) throw () |
void | DisplayArcLabel (TArc a, TNode u, TNode v, TArrowDir displayedCenteredArrows) throw () |
void | ComposeArcLabel (TArc a, ofstream &expFile) throw () |
char * | ArcLabel (TArc, int) throw (ERRejected) |
void | ComposeNodeLabel (TNode v, ofstream &expFile) throw () |
char * | NodeLabel (TNode, int) throw (ERRejected) |
char * | ArcLegenda (int) throw (ERRejected) |
char * | NodeLegenda (char *, int) throw (ERRejected) |
char * | FixedNodeColour (TIndex c) throw () |
char * | FixedEdgeColour (TIndex c) throw () |
char * | SmoothColour (TIndex c, TIndex maxColour, TIndex undefColour) throw () |
virtual void | WriteArc (TArc, TNode, TNode, TLineStyle, int, TArrowDir, TIndex colourIndex, int) throw () |
void | WriteArcSegment (vector< double > &cx, vector< double > &cy, TLineStyle lineStyle, int width, TArrowDir displayedArrows, TIndex colourIndex, int depth) throw () |
virtual void | WritePolyLine (vector< double > &cx, vector< double > &cy, TLineStyle lineStyle, int width, TArrowDir displayedArrows, TIndex colourIndex, int depth)=0 throw () |
void | WriteStraightLine (double cx1, double cy1, double cx2, double cy2, TLineStyle lineStyle, int width, TArrowDir displayedArrows, TIndex colourIndex, int depth) throw () |
virtual void | WriteArrow (TArc a, long xtop, long ytop, double dx, double dy)=0 throw () |
virtual void | WriteArcLabel (TArc a, long xm, long ym)=0 throw () |
virtual void | DisplayNode (TNode)=0 throw () |
virtual void | DisplayLegenda (long xm, long ym, long radius)=0 throw () |
void | DisplayGrids () throw () |
Protected Types |
enum | { LABEL_BUFFER_SIZE = 256
} |
Protected Attributes |
const abstractMixedGraph & | G |
goblinController | CFG |
char | nodeLabelFormat [LABEL_BUFFER_SIZE] |
char | arcLabelFormat [LABEL_BUFFER_SIZE] |
char | tmpLabelBuffer [LABEL_BUFFER_SIZE] |
char | predColour [8] |
char | inftyColour [8] |
char | nodeColour [8] |
TArc | maxNodeColour |
TArc | maxEdgeColour |
const TFloat * | piG |
double | zoom |
double | minX |
double | maxX |
double | minY |
double | maxY |
double | nodeSize |
double | arrowSize |
double | arcLabelSep |
TPortMode | portMode |
TArcWidthMode | arcWidthMode |
int | arcWidthMin |
int | arcWidthMax |
TArcStippleMode | arcStippleMode |
TArcVisibilityMode | arcVisibilityMode |
TArcShapeMode | arcShapeMode |
TArcColourMode | arcColourMode |
TArrowDisplayMode | arrowDisplayMode |
TArrowPosMode | arrowPosMode |
double | arrowSizeRel |
TXFigFontType | arcFontType |
double | arcFontSize |
TNodeShapeMode | nodeShapeMode |
TNodeColourMode | nodeColourMode |
double | nodeSizeRel |
TXFigFontType | nodeFontType |
double | nodeFontSize |
TGridDisplayMode | gridDisplayMode |
double | fineSpacing |
double | bendSpacing |
double | nodeSpacing |
This class partially implements the drawing of graph objects in an unspecified file format of graphical tool kit. The class interface also declares the methods which must be implemented by concrete canvas buiders.