#include <GraphDrawingAttributes.h>
Public Types | |
typedef triple< int, int, int > | COLOR |
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 } |
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.
|
Definition at line 32 of file GraphDrawingAttributes.h. |
|
Definition at line 33 of file GraphDrawingAttributes.h. |
|
Definition at line 46 of file GraphDrawingAttributes.h. |
|
Get the color of a node.
Definition at line 61 of file GraphDrawingAttributes.h. References nodeColor, and theDefaultNodeColor. |
|
Get the shape of a node.
Definition at line 70 of file GraphDrawingAttributes.h. References nodeShape, and theDefaultNodeShape. |
|
Definition at line 78 of file GraphDrawingAttributes.h. References nodeShapeNames. |
|
|
|
Definition at line 76 of file GraphDrawingAttributes.h. References theDefaultNodeShape. |
|
Set the color for a node.
Definition at line 59 of file GraphDrawingAttributes.h. References nodeColor. |
|
Set the shape for a node.
Definition at line 68 of file GraphDrawingAttributes.h. References nodeShape. |
|
Definition at line 100 of file GraphDrawingAttributes.h. Referenced by getNodeColor(), and setNodeColor(). |
|
Definition at line 106 of file GraphDrawingAttributes.h. Referenced by getNodeShape(), and setNodeShape(). |
|
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(). |