TreeDiagram Class Reference

#include <diagram.h>

Inheritance diagram for TreeDiagram:

QList List of all members.

Public Member Functions

 TreeDiagram (ClassDef *root, bool doBases)
 ~TreeDiagram ()
void computeLayout ()
uint computeRows ()
void moveChildren (DiagramItem *root, int dx)
void computeExtremes (uint *labelWidth, uint *xpos)
void drawBoxes (QTextStream &t, Image *image, bool doBase, bool bitmap, uint baseRows, uint superRows, uint cellWidth, uint cellHeight, QCString relPath="", bool generateMap=TRUE)
void drawConnectors (QTextStream &t, Image *image, bool doBase, bool bitmap, uint baseRows, uint superRows, uint cellWidth, uint cellheight)

Detailed Description

Definition at line 94 of file diagram.h.


Constructor & Destructor Documentation

TreeDiagram::TreeDiagram ( ClassDef root,
bool  doBases 
)

Definition at line 302 of file diagram.cpp.

References DiagramRow::insertClass(), Normal, and Public.

TreeDiagram::~TreeDiagram (  ) 

Definition at line 310 of file diagram.cpp.


Member Function Documentation

void TreeDiagram::computeLayout (  ) 

Definition at line 368 of file diagram.cpp.

References DiagramItem::getChildren(), gridWidth, maxTreeWidth, DiagramItem::move(), DiagramItem::parentItem(), and DiagramItem::putInList().

Referenced by ClassDiagram::ClassDiagram().

uint TreeDiagram::computeRows (  ) 

Definition at line 416 of file diagram.cpp.

References DiagramItem::parentItem().

Referenced by ClassDiagram::writeFigure(), and ClassDiagram::writeImage().

void TreeDiagram::moveChildren ( DiagramItem root,
int  dx 
)

Definition at line 315 of file diagram.cpp.

References DiagramItem::getChildren(), and DiagramItem::move().

Referenced by ClassDiagram::ClassDiagram().

void TreeDiagram::computeExtremes ( uint *  labelWidth,
uint *  xpos 
)

Definition at line 466 of file diagram.cpp.

References DiagramItem::isInList(), DiagramItem::label(), Image::stringLength, and DiagramItem::xPos().

Referenced by ClassDiagram::writeFigure(), and ClassDiagram::writeImage().

void TreeDiagram::drawBoxes ( QTextStream &  t,
Image image,
bool  doBase,
bool  bitmap,
uint  baseRows,
uint  superRows,
uint  cellWidth,
uint  cellHeight,
QCString  relPath = "",
bool  generateMap = TRUE 
)

Definition at line 487 of file diagram.cpp.

References DiagramItem::getChildren(), DiagramItem::getClassDef(), Image::getHeight(), gridHeight, gridWidth, DiagramItem::isInList(), ClassDef::isLinkable(), labelHorSpacing, labelVertSpacing, DiagramItem::parentItem(), DiagramItem::xPos(), and DiagramItem::yPos().

Referenced by ClassDiagram::writeFigure(), and ClassDiagram::writeImage().

void TreeDiagram::drawConnectors ( QTextStream &  t,
Image image,
bool  doBase,
bool  bitmap,
uint  baseRows,
uint  superRows,
uint  cellWidth,
uint  cellheight 
)

Definition at line 618 of file diagram.cpp.

References Image::drawHorzArrow(), Image::drawHorzLine(), Image::drawVertArrow(), Image::drawVertLine(), DiagramItem::getChildren(), Image::getHeight(), gridHeight, gridWidth, DiagramItem::isInList(), labelHorSpacing, labelVertSpacing, DiagramItem::parentItem(), DiagramItem::protection(), DiagramItem::xPos(), and DiagramItem::yPos().

Referenced by ClassDiagram::writeFigure(), and ClassDiagram::writeImage().


The documentation for this class was generated from the following files:



Generated on Mon Mar 31 10:59:16 2008 by  doxygen 1.5.1