GraphDrawingAttributes Class Reference

#include <GraphDrawingAttributes.h>

List of all members.

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, COLORnodeColor
NODESHAPE theDefaultNodeShape
map< int, NODESHAPEnodeShape

Static Private Attributes

static map< int, string > nodeShapeNames

Detailed Description

Definition at line 22 of file GraphDrawingAttributes.h.


Member Typedef Documentation

typedef triple< int , int , int > GraphDrawingAttributes::COLOR

Definition at line 32 of file GraphDrawingAttributes.h.


Member Enumeration Documentation

Enumerator:
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 

Definition at line 33 of file GraphDrawingAttributes.h.


Constructor & Destructor Documentation

GraphDrawingAttributes::GraphDrawingAttributes (  )  [inline]

Definition at line 46 of file GraphDrawingAttributes.h.


Member Function Documentation

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.


Member Data Documentation

map< int , COLOR > GraphDrawingAttributes::nodeColor [private]

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().

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().


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on Mon Sep 26 18:43:47 2011 for CRyptography And Groups (CRAG) by  doxygen 1.6.1