Doxygen
|
#include <stdio.h>
#include <stdlib.h>
#include <algorithm>
#include "diagram.h"
#include "image.h"
#include "classdef.h"
#include "config.h"
#include "message.h"
#include "util.h"
#include "doxygen.h"
#include "portable.h"
#include "indexlist.h"
#include "classlist.h"
#include "textstream.h"
#include "growbuf.h"
#include "dir.h"
Go to the source code of this file.
Classes | |
class | DiagramItem |
Class representing a single node in the built-in class diagram. More... | |
class | DiagramRow |
Class representing a row in the built-in class diagram. More... | |
class | TreeDiagram |
Class representing the tree layout for the built-in class diagram. More... | |
class | DualDirIterator< C, I > |
helper class representing an iterator that can iterate forwards or backwards More... | |
struct | ClassDiagram::Private |
Macros | |
#define | IMAGE_EXT ".png" |
Typedefs | |
using | DiagramItemList = std::vector<DiagramItem*> |
Functions | |
static uint32_t | protToMask (Protection p) |
static uint8_t | protToColor (Protection p) |
static QCString | protToString (Protection p) |
static uint32_t | virtToMask (Specifier p) |
static QCString | convertToPSString (const QCString &s) |
static Protection | getMinProtectionLevel (const DiagramItemList &dil) |
static void | writeBitmapBox (DiagramItem *di, Image *image, uint32_t x, uint32_t y, uint32_t w, uint32_t h, bool firstRow, bool hasDocs, bool children=FALSE) |
static void | writeVectorBox (TextStream &t, DiagramItem *di, float x, float y, bool children=FALSE) |
static void | writeMapArea (TextStream &t, const ClassDef *cd, QCString relPath, uint32_t x, uint32_t y, uint32_t w, uint32_t h) |
Variables | |
const uint32_t | maxTreeWidth = 8 |
const uint32_t | gridWidth = 100 |
const uint32_t | gridHeight = 100 |
const uint32_t | labelHorSpacing = 10 |
const uint32_t | labelVertSpacing = 32 |
const uint32_t | labelHorMargin = 6 |
const uint32_t | fontHeight = 12 |
#define IMAGE_EXT ".png" |
Referenced by ClassDiagram::writeImage().
using DiagramItemList = std::vector<DiagramItem*> |
Definition at line 38 of file diagram.cpp.
Definition at line 195 of file diagram.cpp.
References GrowBuf::addChar(), GrowBuf::addStr(), QCString::data(), GrowBuf::get(), and QCString::isEmpty().
Referenced by ClassDiagram::writeFigure(), and writeVectorBox().
|
static |
Definition at line 215 of file diagram.cpp.
References Private, Protected, and Public.
Referenced by TreeDiagram::drawConnectors().
|
static |
Definition at line 160 of file diagram.cpp.
References Package, Private, Protected, and Public.
Referenced by TreeDiagram::drawConnectors().
|
static |
Definition at line 148 of file diagram.cpp.
References Package, Private, Protected, and Public.
Referenced by TreeDiagram::drawConnectors().
|
static |
Definition at line 172 of file diagram.cpp.
References Package, Private, Protected, and Public.
Referenced by TreeDiagram::drawConnectors().
|
static |
Definition at line 184 of file diagram.cpp.
References Normal, and Virtual.
Referenced by writeBitmapBox().
|
static |
Definition at line 235 of file diagram.cpp.
References Image::drawHorzLine(), Image::drawRect(), FALSE, Image::fillRect(), fontHeight, DiagramItem::label(), Image::stringLength, virtToMask(), DiagramItem::virtualness(), and Image::writeString().
Referenced by TreeDiagram::drawBoxes().
|
static |
Definition at line 264 of file diagram.cpp.
References addHtmlExtensionIfMissing(), Definition::anchor(), Definition::briefDescriptionAsTooltip(), convertToHtml(), convertToXML(), Definition::displayName(), externalLinkTarget(), externalRef(), Definition::getOutputFileBase(), Definition::getReference(), QCString::isEmpty(), Definition::isLinkable(), and TRUE.
Referenced by TreeDiagram::drawBoxes().
|
static |
Definition at line 255 of file diagram.cpp.
References convertToPSString(), FALSE, DiagramItem::label(), Virtual, and DiagramItem::virtualness().
Referenced by TreeDiagram::drawBoxes().
const uint32_t fontHeight = 12 |
Definition at line 146 of file diagram.cpp.
Referenced by writeBitmapBox(), and ClassDiagram::writeImage().
const uint32_t gridHeight = 100 |
Definition at line 141 of file diagram.cpp.
Referenced by TreeDiagram::drawBoxes(), TreeDiagram::drawConnectors(), and DiagramRow::insertClass().
const uint32_t gridWidth = 100 |
Definition at line 140 of file diagram.cpp.
Referenced by TreeDiagram::computeLayout(), TreeDiagram::drawBoxes(), TreeDiagram::drawConnectors(), DiagramRow::insertClass(), ClassDiagram::writeFigure(), and ClassDiagram::writeImage().
const uint32_t labelHorMargin = 6 |
Definition at line 145 of file diagram.cpp.
Referenced by ClassDiagram::writeImage().
const uint32_t labelHorSpacing = 10 |
Definition at line 143 of file diagram.cpp.
Referenced by TreeDiagram::drawBoxes(), TreeDiagram::drawConnectors(), and ClassDiagram::writeImage().
const uint32_t labelVertSpacing = 32 |
Definition at line 144 of file diagram.cpp.
Referenced by TreeDiagram::drawBoxes(), TreeDiagram::drawConnectors(), and ClassDiagram::writeImage().
const uint32_t maxTreeWidth = 8 |
Definition at line 139 of file diagram.cpp.
Referenced by TreeDiagram::computeLayout().