#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.
| 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.
| 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.
| 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.
| 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.
| void GraphDrawingAttributes::setDefaultNodeShape | ( | const NODESHAPE & | s | ) | [inline] |
| static const map< int , string >& GraphDrawingAttributes::getNodeShapeNames | ( | ) | [inline, static] |
| static map< int , string > GraphDrawingAttributes::initializeNodeShapeNames | ( | ) | [static, private] |
map< int , COLOR > GraphDrawingAttributes::nodeColor [private] |
Definition at line 100 of file GraphDrawingAttributes.h.
Referenced by getNodeColor(), and setNodeColor().
map< int , string > GraphDrawingAttributes::nodeShapeNames [static, private] |
Definition at line 104 of file GraphDrawingAttributes.h.
Referenced by getNodeShape(), and setDefaultNodeShape().
map< int , NODESHAPE > GraphDrawingAttributes::nodeShape [private] |
Definition at line 106 of file GraphDrawingAttributes.h.
Referenced by getNodeShape(), and setNodeShape().
1.5.6