#include <GraphDrawingAttributes.h>
Public Types | |
enum | NODESHAPE { box, polygon, ellipse, circle, point, egg, triangle, plaintext, diamond, trapezium, parallelogram, house, pentagon, hexagon, septagon, octagon, doublecircle, doubleoctagon, tripleoctagon, invtriangle, invtrapezium, invhouse, Mdiamond, Msquare, Mcircle, rect, rectangle, none } |
typedef triple< int, int, int > | COLOR |
Public Member Functions | |
GraphDrawingAttributes () | |
void | setNodeColor (int v, const COLOR &c) |
Set the color for a node. | |
COLOR | getNodeColor (int v) const |
Get the color of a node. | |
void | setNodeShape (int v, const NODESHAPE &s) |
Set the shape for a node. | |
NODESHAPE | getNodeShape (int v) const |
Get the shape of a node. | |
void | setDefaultNodeShape (const NODESHAPE &s) |
Static Public Member Functions | |
static const map< int, string > & | getNodeShapeNames () |
Static Private Member Functions | |
static map< int, string > | initializeNodeShapeNames () |
Private Attributes | |
COLOR | theDefaultNodeColor |
map< int, COLOR > | nodeColor |
NODESHAPE | theDefaultNodeShape |
map< int, NODESHAPE > | nodeShape |
Static Private Attributes | |
static map< int, string > | nodeShapeNames |
Definition at line 22 of file GraphDrawingAttributes.h.
typedef triple< int , int , int > GraphDrawingAttributes::COLOR |
Definition at line 32 of file GraphDrawingAttributes.h.
Definition at line 33 of file GraphDrawingAttributes.h.
GraphDrawingAttributes::GraphDrawingAttributes | ( | ) | [inline] |
Definition at line 46 of file GraphDrawingAttributes.h.
COLOR GraphDrawingAttributes::getNodeColor | ( | int | v | ) | const [inline] |
Get the color of a node.
Definition at line 61 of file GraphDrawingAttributes.h.
References nodeColor, and theDefaultNodeColor.
NODESHAPE GraphDrawingAttributes::getNodeShape | ( | int | v | ) | const [inline] |
Get the shape of a node.
Definition at line 70 of file GraphDrawingAttributes.h.
References nodeShape, and theDefaultNodeShape.
static const map< int , string >& GraphDrawingAttributes::getNodeShapeNames | ( | ) | [inline, static] |
Definition at line 78 of file GraphDrawingAttributes.h.
References nodeShapeNames.
static map< int , string > GraphDrawingAttributes::initializeNodeShapeNames | ( | ) | [static, private] |
void GraphDrawingAttributes::setDefaultNodeShape | ( | const NODESHAPE & | s | ) | [inline] |
Definition at line 76 of file GraphDrawingAttributes.h.
References theDefaultNodeShape.
void GraphDrawingAttributes::setNodeColor | ( | int | v, | |
const COLOR & | c | |||
) | [inline] |
Set the color for a node.
Definition at line 59 of file GraphDrawingAttributes.h.
References nodeColor.
void GraphDrawingAttributes::setNodeShape | ( | int | v, | |
const NODESHAPE & | s | |||
) | [inline] |
Set the shape for a node.
Definition at line 68 of file GraphDrawingAttributes.h.
References nodeShape.
map< int , COLOR > GraphDrawingAttributes::nodeColor [private] |
Definition at line 100 of file GraphDrawingAttributes.h.
Referenced by getNodeColor(), and setNodeColor().
map< int , NODESHAPE > GraphDrawingAttributes::nodeShape [private] |
Definition at line 106 of file GraphDrawingAttributes.h.
Referenced by getNodeShape(), and setNodeShape().
map< int , string > GraphDrawingAttributes::nodeShapeNames [static, private] |
Definition at line 102 of file GraphDrawingAttributes.h.
Referenced by getNodeShapeNames().
Definition at line 98 of file GraphDrawingAttributes.h.
Referenced by getNodeColor().
Definition at line 104 of file GraphDrawingAttributes.h.
Referenced by getNodeShape(), and setDefaultNodeShape().