Doxygen
|
Class representing the tree layout for the built-in class diagram. More...
Public Types | |
using | Ptr = std::unique_ptr<DiagramRow> |
using | Vec = std::vector<Ptr> |
using | iterator = typename Vec::iterator |
Public Member Functions | |
TreeDiagram (const ClassDef *root, bool doBases) | |
void | computeLayout () |
uint32_t | computeRows () |
void | moveChildren (DiagramItem *root, int dx) |
void | computeExtremes (uint32_t *labelWidth, uint32_t *xpos) |
void | drawBoxes (TextStream &t, Image *image, bool doBase, bool bitmap, uint32_t baseRows, uint32_t superRows, uint32_t cellWidth, uint32_t cellHeight, QCString relPath="", bool generateMap=TRUE) |
void | drawConnectors (TextStream &t, Image *image, bool doBase, bool bitmap, uint32_t baseRows, uint32_t superRows, uint32_t cellWidth, uint32_t cellheight) |
DiagramRow * | row (int index) |
uint32_t | numRows () const |
DiagramRow * | addRow (uint32_t l) |
iterator | begin () |
iterator | end () |
Private Member Functions | |
bool | layoutTree (DiagramItem *root, uint32_t row) |
Private Attributes | |
Vec | m_rows |
Class representing the tree layout for the built-in class diagram.
Definition at line 103 of file diagram.cpp.
using TreeDiagram::iterator = typename Vec::iterator |
Definition at line 108 of file diagram.cpp.
using TreeDiagram::Ptr = std::unique_ptr<DiagramRow> |
Definition at line 106 of file diagram.cpp.
using TreeDiagram::Vec = std::vector<Ptr> |
Definition at line 107 of file diagram.cpp.
TreeDiagram::TreeDiagram | ( | const ClassDef * | root, |
bool | doBases ) |
Definition at line 398 of file diagram.cpp.
References DiagramRow::insertClass(), m_rows, Normal, Public, and row().
|
inline |
Definition at line 126 of file diagram.cpp.
References m_rows.
|
inline |
void TreeDiagram::computeExtremes | ( | uint32_t * | labelWidth, |
uint32_t * | xpos ) |
Definition at line 539 of file diagram.cpp.
References FALSE, m_rows, Image::stringLength, and TRUE.
void TreeDiagram::computeLayout | ( | ) |
Definition at line 458 of file diagram.cpp.
References gridWidth, layoutTree(), m_rows, maxTreeWidth, DiagramItem::move(), DiagramItem::numChildren(), DiagramItem::parentItem(), row(), and TRUE.
uint32_t TreeDiagram::computeRows | ( | ) |
Definition at line 509 of file diagram.cpp.
References m_rows, DiagramItem::parentItem(), and row().
void TreeDiagram::drawBoxes | ( | TextStream & | t, |
Image * | image, | ||
bool | doBase, | ||
bool | bitmap, | ||
uint32_t | baseRows, | ||
uint32_t | superRows, | ||
uint32_t | cellWidth, | ||
uint32_t | cellHeight, | ||
QCString | relPath = "", | ||
bool | generateMap = TRUE ) |
Definition at line 592 of file diagram.cpp.
References DualDirIterator< C, I >::atEnd(), FALSE, DiagramItem::getClassDef(), gridHeight, gridWidth, Image::height(), DiagramItem::isInList(), Definition::isLinkable(), labelHorSpacing, labelVertSpacing, m_rows, DiagramItem::numChildren(), DiagramItem::parentItem(), TRUE, writeBitmapBox(), writeMapArea(), writeVectorBox(), DiagramItem::xfPos(), DiagramItem::xPos(), DiagramItem::yfPos(), and DiagramItem::yPos().
void TreeDiagram::drawConnectors | ( | TextStream & | t, |
Image * | image, | ||
bool | doBase, | ||
bool | bitmap, | ||
uint32_t | baseRows, | ||
uint32_t | superRows, | ||
uint32_t | cellWidth, | ||
uint32_t | cellheight ) |
Definition at line 723 of file diagram.cpp.
References Image::drawHorzArrow(), Image::drawHorzLine(), Image::drawVertArrow(), Image::drawVertLine(), FALSE, DiagramItem::getChildren(), getMinProtectionLevel(), gridHeight, gridWidth, Image::height(), DiagramItem::isInList(), labelHorSpacing, labelVertSpacing, m_rows, parent(), DiagramItem::parentItem(), DiagramItem::protection(), protToColor(), protToMask(), protToString(), TRUE, DiagramItem::xfPos(), DiagramItem::xPos(), DiagramItem::yfPos(), and DiagramItem::yPos().
|
inline |
|
private |
Definition at line 415 of file diagram.cpp.
References DiagramItem::avgChildPos(), FALSE, DiagramItem::getChildren(), layoutTree(), m_rows, DiagramItem::number(), DiagramItem::numChildren(), row(), TRUE, and DiagramItem::xPos().
Referenced by computeLayout(), and layoutTree().
void TreeDiagram::moveChildren | ( | DiagramItem * | root, |
int | dx ) |
Definition at line 406 of file diagram.cpp.
References DiagramItem::getChildren(), and moveChildren().
Referenced by moveChildren().
|
inline |
|
inline |
Definition at line 124 of file diagram.cpp.
References m_rows.
Referenced by computeLayout(), computeRows(), layoutTree(), and TreeDiagram().
|
private |
Definition at line 132 of file diagram.cpp.
Referenced by addRow(), begin(), computeExtremes(), computeLayout(), computeRows(), drawBoxes(), drawConnectors(), end(), layoutTree(), numRows(), row(), and TreeDiagram().