Open
Graph Drawing
Framework

 v.2015.05
 

ogdf::GraphAttributes Class Reference

Stores additional attributes of a graph (like layout information). More...

#include <ogdf/basic/GraphAttributes.h>

+ Inheritance diagram for ogdf::GraphAttributes:

Public Types

enum  {
  nodeGraphics = 0x00001, edgeGraphics = 0x00002, edgeIntWeight = 0x00004, edgeDoubleWeight = 0x00008, edgeLabel = 0x00010, nodeLabel = 0x00020, edgeType = 0x00040, nodeType = 0x00080, nodeId = 0x00100, edgeArrow = 0x00200, edgeStyle = 0x00400, nodeStyle = 0x00800, nodeTemplate = 0x01000, edgeSubGraphs = 0x02000,
  nodeWeight = 0x04000, threeD = 0x10000
}
 Bits for specifying attributes. More...
 

Public Member Functions

Construction and management of attributes
 GraphAttributes ()
 Constructs graph attributes for no associated graph (default constructor). More...
 
 GraphAttributes (const Graph &G, long initAttributes=nodeGraphics|edgeGraphics)
 Constructs graph attributes associated with the graph G. More...
 
virtual ~GraphAttributes ()
 
long attributes () const
 Returns currently accessible attributes. More...
 
virtual void init (const Graph &G, long initAttr)
 Initializes the graph attributes for graph G. More...
 
void initAttributes (long attr)
 Initializes attributes in attr for usage. More...
 
void destroyAttributes (long attr)
 Destroys attributes in attr. More...
 
const GraphconstGraph () const
 Returns a reference to the associated graph. More...
 
General attributes
bool directed () const
 Returns if the graph is directed. More...
 
void setDirected (bool directed)
 Sets if the graph is directed to directed. More...
 
Node attributes
double x (node v) const
 Returns the x-coordinate of node v. More...
 
double & x (node v)
 Returns the x-coordinate of node v. More...
 
double y (node v) const
 Returns the y-coordinate of node v. More...
 
double & y (node v)
 Returns the y-coordinate of node v. More...
 
double z (node v) const
 Returns the z-coordinate of node v. More...
 
double & z (node v)
 Returns the z-coordinate of node v. More...
 
double width (node v) const
 Returns the width of the bounding box of node v. More...
 
double & width (node v)
 Returns the width of the bounding box of node v. More...
 
const NodeArray< double > & width () const
 Returns a reference to the node array m_width. More...
 
NodeArray< double > & width ()
 Returns a reference to the node array m_width. More...
 
double height (node v) const
 Returns the height of the bounding box of node v. More...
 
double & height (node v)
 Returns the height of the bounding box of node v. More...
 
const NodeArray< double > & height () const
 Returns a reference to the node array m_height. More...
 
NodeArray< double > & height ()
 Returns a reference to the node array m_height. More...
 
Shape shape (node v) const
 Returns the shape type of node v. More...
 
Shapeshape (node v)
 Returns the shape type of node v. More...
 
StrokeType strokeType (node v) const
 Returns the stroke type of node v. More...
 
void setStrokeType (node v, StrokeType st)
 Sets the stroke type of node v to st. More...
 
const ColorstrokeColor (node v) const
 Returns the stroke color of node v. More...
 
ColorstrokeColor (node v)
 Returns the stroke color of node v. More...
 
float strokeWidth (node v) const
 Returns the stroke width of node v. More...
 
float & strokeWidth (node v)
 Returns the stroke width of node v. More...
 
FillPattern fillPattern (node v) const
 Returns the fill pattern of node v. More...
 
void setFillPattern (node v, FillPattern fp)
 Sets the fill pattern of node v to fp. More...
 
const ColorfillColor (node v) const
 Returns the fill color of node v. More...
 
ColorfillColor (node v)
 Returns the fill color of node v. More...
 
const ColorfillBgColor (node v) const
 Returns the background color of fill patterns for node v. More...
 
ColorfillBgColor (node v)
 Returns the background color of fill patterns for node v. More...
 
const string & label (node v) const
 Returns the label of node v. More...
 
string & label (node v)
 Returns the label of node v. More...
 
const string & templateNode (node v) const
 Returns the template name of node v. More...
 
string & templateNode (node v)
 Returns the template name of node v. More...
 
int weight (node v) const
 Returns the weight of node v. More...
 
int & weight (node v)
 Returns the weight of node v. More...
 
Graph::NodeType type (node v) const
 Returns the type of node v. More...
 
Graph::NodeTypetype (node v)
 Returns the type of node v. More...
 
int idNode (node v) const
 Returns the user ID of node v. More...
 
int & idNode (node v)
 Returns the user ID of node v. More...
 
Edge attributes
const DPolylinebends (edge e) const
 Returns the list of bend points of edge e. More...
 
DPolylinebends (edge e)
 Returns the list of bend points of edge e. More...
 
EdgeArrow arrowType (edge e) const
 Returns the arrow type of edge e. More...
 
EdgeArrowarrowType (edge e)
 Returns the arrow type of edge e. More...
 
StrokeType strokeType (edge e) const
 Returns the stroke type of edge e. More...
 
void setStrokeType (edge e, StrokeType st)
 Sets the stroke type of edge e to st. More...
 
const ColorstrokeColor (edge e) const
 Returns the stroke color of edge e. More...
 
ColorstrokeColor (edge e)
 Returns the stroke color of edge e. More...
 
float strokeWidth (edge e) const
 Returns the stroke width of edge e. More...
 
float & strokeWidth (edge e)
 Returns the stroke width of edge e. More...
 
const string & label (edge e) const
 Returns the label of edge e. More...
 
string & label (edge e)
 Returns the label of edge e. More...
 
int intWeight (edge e) const
 Returns the (integer) weight of edge e. More...
 
int & intWeight (edge e)
 Returns the (integer) weight of edge e. More...
 
double doubleWeight (edge e) const
 Returns the (real number) weight of edge e. More...
 
double & doubleWeight (edge e)
 Returns the (real number) weight of edge e. More...
 
Graph::EdgeType type (edge e) const
 Returns the type of edge e. More...
 
Graph::EdgeTypetype (edge e)
 Returns the type of edge e. More...
 
__uint32 subGraphBits (edge e) const
 Returns the edgesubgraph value of an edge e. More...
 
__uint32subGraphBits (edge e)
 Returns the edgesubgraph value of an edge e. More...
 
bool inSubGraph (edge e, int n) const
 Checks whether edge e belongs to basic graph n. More...
 
void addSubGraph (edge e, int n)
 Adds edge e to basic graph n. More...
 
void removeSubGraph (edge e, int n)
 Removes edge e from basic graph n. More...
 
Utility functions
const DRect boundingBox () const
 Returns the bounding box of the graph. More...
 
void setAllWidth (double w)
 Sets the width of all nodes to w. More...
 
void setAllHeight (double h)
 Sets the height of all nodes to h. More...
 
void clearAllBends ()
 Removes all edge bends. More...
 
void removeUnnecessaryBendsHV ()
 Removes unnecessary bend points in orthogonal segements. More...
 
void addNodeCenter2Bends (int mode=1)
 Adds additional bend points to all edges for connecting their endpoints. More...
 
bool isAssociationClass (node v) const
 Returns true iff v represents an association class. More...
 
int hierarchyList (List< List< node > * > &list) const
 Returns a list of all inheritance hierarchies in the graph. More...
 
int hierarchyList (List< List< edge > * > &list) const
 Returns a list of all inheritance hierarchies in the graph. More...
 

Protected Attributes

long m_attributes
 bit vector of currently used attributes More...
 
EdgeArray< DPolylinem_bends
 list of bend points of an edge More...
 
bool m_directed
 whether or not the graph is directed More...
 
EdgeArray< double > m_doubleWeight
 (real number) weight of an edge More...
 
EdgeArray< EdgeArrowm_edgeArrow
 arrow type of an edge More...
 
EdgeArray< string > m_edgeLabel
 label of an edge More...
 
EdgeArray< Strokem_edgeStroke
 stroke of an edge More...
 
EdgeArray< Graph::EdgeTypem_eType
 type of an edge (association or generalization) More...
 
NodeArray< double > m_height
 height of a nodes's bounding box More...
 
EdgeArray< int > m_intWeight
 (integer) weight of an edge More...
 
NodeArray< Fillm_nodeFill
 fill of a node More...
 
NodeArray< int > m_nodeId
 user ID of a node More...
 
NodeArray< int > m_nodeIntWeight
 (integer) weight of a node More...
 
NodeArray< string > m_nodeLabel
 label of a node More...
 
NodeArray< Shapem_nodeShape
 shape of a node More...
 
NodeArray< Strokem_nodeStroke
 stroke of a node More...
 
NodeArray< string > m_nodeTemplate
 name of template of a node More...
 
const Graphm_pGraph
 associated graph More...
 
EdgeArray< __uint32m_subGraph
 is element of subgraphs given by bitvector More...
 
NodeArray< Graph::NodeTypem_vType
 type (vertex, dummy, generalizationMerger) More...
 
NodeArray< double > m_width
 width of a node's bounding box More...
 
NodeArray< double > m_x
 x-coordinate of a node More...
 
NodeArray< double > m_y
 y-coordinate pf a node More...
 
NodeArray< double > m_z
 z-coordinate pf a node More...
 

Detailed Description

Stores additional attributes of a graph (like layout information).

It is frequently necessary to associate additional attributes with a graph. The class GraphAttributes provides various such attributes and is the central place were such attributes are stored.

Attributes are simply stored in node or edge arrays; for memory consumption reasons, only a subset of these arrays is in fact initialized for the graph; non-initialized arrays require only a few bytes of extra memory.

Which arrays are initialized is specified by a bit vector; each bit in this bit vector corresponds to one or more attributes. E.g., nodeGraphics corresponds to the attributes m_x, m_y, m_width, and m_height; whereas edgeDoubleWeight only corresponds to the attribute m_doubleWeight.

Attributes can be initialized by the constructor GraphAttributes(const Graph &,long) or the function initAttributes(); attributes can also be deinitialized by calling destroyAttributes().

Definition at line 86 of file GraphAttributes.h.

Member Enumeration Documentation

anonymous enum

Bits for specifying attributes.

Enumerator
nodeGraphics 

node attributes m_x, m_y, m_width, m_height, m_nodeShape

edgeGraphics 

edge attribute m_bends

edgeIntWeight 

edge attribute m_intWeight

edgeDoubleWeight 

edge attribute m_doubleWeight

edgeLabel 

edge attribute m_edgeLabel

nodeLabel 

node attribute m_nodeLabel

edgeType 

edge attribute m_eType

nodeType 

node attribute m_vType

nodeId 

node attribute m_nodeId

edgeArrow 

edge attribute m_edgeArrow

edgeStyle 

edge attribute m_edgeStroke

nodeStyle 

node attributes m_nodeStroke, m_nodeFill

nodeTemplate 

node attribute m_nodeTemplate

edgeSubGraphs 

edge attribute m_subGraph

nodeWeight 

node attribute m_nodeIntWeight

threeD 

node attribute m_z, note that all methods (bounding box etc. work on 2D coordinates only)

Definition at line 126 of file GraphAttributes.h.

Constructor & Destructor Documentation

ogdf::GraphAttributes::GraphAttributes ( )

Constructs graph attributes for no associated graph (default constructor).

The associated graph can be set later with the init() function.

ogdf::GraphAttributes::GraphAttributes ( const Graph G,
long  initAttributes = nodeGraphics|edgeGraphics 
)
explicit

Constructs graph attributes associated with the graph G.

Parameters
Gis the associated graph.
initAttributesspecifies the set of attributes that can be accessed.
virtual ogdf::GraphAttributes::~GraphAttributes ( )
inlinevirtual

Definition at line 164 of file GraphAttributes.h.

Member Function Documentation

void ogdf::GraphAttributes::addNodeCenter2Bends ( int  mode = 1)

Adds additional bend points to all edges for connecting their endpoints.

According to mode switch add either the node center points to the bends or the anchor point on the node boundary

  • mode = 0: only add node center
  • mode = 1: compute intersection with the line segment to the center and the boundary of the rectangular node
  • mode = 2: compute intersection with the first/last line segment and the boundary of the rectangular node
void ogdf::GraphAttributes::addSubGraph ( edge  e,
int  n 
)
inline

Adds edge e to basic graph n.

Definition at line 489 of file GraphAttributes.h.

EdgeArrow ogdf::GraphAttributes::arrowType ( edge  e) const
inline

Returns the arrow type of edge e.

Definition at line 402 of file GraphAttributes.h.

EdgeArrow& ogdf::GraphAttributes::arrowType ( edge  e)
inline

Returns the arrow type of edge e.

Definition at line 406 of file GraphAttributes.h.

long ogdf::GraphAttributes::attributes ( ) const
inline

Returns currently accessible attributes.

Definition at line 168 of file GraphAttributes.h.

const DPolyline& ogdf::GraphAttributes::bends ( edge  e) const
inline

Returns the list of bend points of edge e.

Definition at line 393 of file GraphAttributes.h.

DPolyline& ogdf::GraphAttributes::bends ( edge  e)
inline

Returns the list of bend points of edge e.

Definition at line 397 of file GraphAttributes.h.

const DRect ogdf::GraphAttributes::boundingBox ( ) const

Returns the bounding box of the graph.

void ogdf::GraphAttributes::clearAllBends ( )

Removes all edge bends.

const Graph& ogdf::GraphAttributes::constGraph ( ) const
inline

Returns a reference to the associated graph.

Definition at line 189 of file GraphAttributes.h.

void ogdf::GraphAttributes::destroyAttributes ( long  attr)

Destroys attributes in attr.

bool ogdf::GraphAttributes::directed ( ) const
inline

Returns if the graph is directed.

Definition at line 200 of file GraphAttributes.h.

double ogdf::GraphAttributes::doubleWeight ( edge  e) const
inline

Returns the (real number) weight of edge e.

Definition at line 456 of file GraphAttributes.h.

double& ogdf::GraphAttributes::doubleWeight ( edge  e)
inline

Returns the (real number) weight of edge e.

Definition at line 460 of file GraphAttributes.h.

const Color& ogdf::GraphAttributes::fillBgColor ( node  v) const
inline

Returns the background color of fill patterns for node v.

Definition at line 333 of file GraphAttributes.h.

Color& ogdf::GraphAttributes::fillBgColor ( node  v)
inline

Returns the background color of fill patterns for node v.

Definition at line 337 of file GraphAttributes.h.

const Color& ogdf::GraphAttributes::fillColor ( node  v) const
inline

Returns the fill color of node v.

Definition at line 324 of file GraphAttributes.h.

Color& ogdf::GraphAttributes::fillColor ( node  v)
inline

Returns the fill color of node v.

Definition at line 328 of file GraphAttributes.h.

FillPattern ogdf::GraphAttributes::fillPattern ( node  v) const
inline

Returns the fill pattern of node v.

Definition at line 315 of file GraphAttributes.h.

double ogdf::GraphAttributes::height ( node  v) const
inline

Returns the height of the bounding box of node v.

Definition at line 261 of file GraphAttributes.h.

double& ogdf::GraphAttributes::height ( node  v)
inline

Returns the height of the bounding box of node v.

Definition at line 265 of file GraphAttributes.h.

const NodeArray<double>& ogdf::GraphAttributes::height ( ) const
inline

Returns a reference to the node array m_height.

Definition at line 270 of file GraphAttributes.h.

NodeArray<double>& ogdf::GraphAttributes::height ( )
inline

Returns a reference to the node array m_height.

Definition at line 274 of file GraphAttributes.h.

int ogdf::GraphAttributes::hierarchyList ( List< List< node > * > &  list) const

Returns a list of all inheritance hierarchies in the graph.

Inheritance hierarchies are identified by edges with type Graph::generalization.

Parameters
listis a list of all hierarchies; each hierarchie is itself a list of all nodes in this hierarchy.
Returns
Returns the number of generalization hierarchies.
int ogdf::GraphAttributes::hierarchyList ( List< List< edge > * > &  list) const

Returns a list of all inheritance hierarchies in the graph.

Inheritance hierarchies are identified by edges with type Graph::generalization.

Parameters
listis a list of all hierarchies; each hierarchie is itself a list of all edges in this hierarchy.
Returns
Returns the number of generalization hierarchies.
int ogdf::GraphAttributes::idNode ( node  v) const
inline

Returns the user ID of node v.

Definition at line 378 of file GraphAttributes.h.

int& ogdf::GraphAttributes::idNode ( node  v)
inline

Returns the user ID of node v.

Definition at line 382 of file GraphAttributes.h.

virtual void ogdf::GraphAttributes::init ( const Graph G,
long  initAttr 
)
virtual

Initializes the graph attributes for graph G.

Parameters
Gis the new associated graph.
initAttrspecifies the set of attributes that can be accessed.
Warning
All attributes that were allocated before are destroyed by this function! If you wish to extend the set of allocated attributes, use initAttributes().

Reimplemented in ogdf::ClusterGraphAttributes, and ogdf::UMLGraph.

void ogdf::GraphAttributes::initAttributes ( long  attr)

Initializes attributes in attr for usage.

bool ogdf::GraphAttributes::inSubGraph ( edge  e,
int  n 
) const
inline

Checks whether edge e belongs to basic graph n.

Definition at line 483 of file GraphAttributes.h.

int ogdf::GraphAttributes::intWeight ( edge  e) const
inline

Returns the (integer) weight of edge e.

Definition at line 447 of file GraphAttributes.h.

int& ogdf::GraphAttributes::intWeight ( edge  e)
inline

Returns the (integer) weight of edge e.

Definition at line 451 of file GraphAttributes.h.

bool ogdf::GraphAttributes::isAssociationClass ( node  v) const
inline

Returns true iff v represents an association class.

We hide the internal representation of semantic node types from the user to be able to change this later (semantic node type member array). We are not allowed to set association classes manually, only by calling createAssociationClass().

Definition at line 546 of file GraphAttributes.h.

const string& ogdf::GraphAttributes::label ( node  v) const
inline

Returns the label of node v.

Definition at line 342 of file GraphAttributes.h.

string& ogdf::GraphAttributes::label ( node  v)
inline

Returns the label of node v.

Definition at line 346 of file GraphAttributes.h.

const string& ogdf::GraphAttributes::label ( edge  e) const
inline

Returns the label of edge e.

Definition at line 438 of file GraphAttributes.h.

string& ogdf::GraphAttributes::label ( edge  e)
inline

Returns the label of edge e.

Definition at line 442 of file GraphAttributes.h.

void ogdf::GraphAttributes::removeSubGraph ( edge  e,
int  n 
)
inline

Removes edge e from basic graph n.

Definition at line 495 of file GraphAttributes.h.

void ogdf::GraphAttributes::removeUnnecessaryBendsHV ( )

Removes unnecessary bend points in orthogonal segements.

Processes all edges and removes unnecessary bend points in the bend point list of the edge, i.e., bend points such that the preceding and succeeding bend point form a horizontal or vertical segement containing this bend point. This function is useful to remove redundant bend points in an orthogonal layout.

void ogdf::GraphAttributes::setAllHeight ( double  h)

Sets the height of all nodes to h.

void ogdf::GraphAttributes::setAllWidth ( double  w)

Sets the width of all nodes to w.

void ogdf::GraphAttributes::setDirected ( bool  directed)
inline

Sets if the graph is directed to directed.

Definition at line 205 of file GraphAttributes.h.

void ogdf::GraphAttributes::setFillPattern ( node  v,
FillPattern  fp 
)
inline

Sets the fill pattern of node v to fp.

Definition at line 319 of file GraphAttributes.h.

void ogdf::GraphAttributes::setStrokeType ( node  v,
StrokeType  st 
)
inline

Sets the stroke type of node v to st.

Definition at line 292 of file GraphAttributes.h.

void ogdf::GraphAttributes::setStrokeType ( edge  e,
StrokeType  st 
)
inline

Sets the stroke type of edge e to st.

Definition at line 415 of file GraphAttributes.h.

Shape ogdf::GraphAttributes::shape ( node  v) const
inline

Returns the shape type of node v.

Definition at line 279 of file GraphAttributes.h.

Shape& ogdf::GraphAttributes::shape ( node  v)
inline

Returns the shape type of node v.

Definition at line 283 of file GraphAttributes.h.

const Color& ogdf::GraphAttributes::strokeColor ( node  v) const
inline

Returns the stroke color of node v.

Definition at line 297 of file GraphAttributes.h.

Color& ogdf::GraphAttributes::strokeColor ( node  v)
inline

Returns the stroke color of node v.

Definition at line 301 of file GraphAttributes.h.

const Color& ogdf::GraphAttributes::strokeColor ( edge  e) const
inline

Returns the stroke color of edge e.

Definition at line 420 of file GraphAttributes.h.

Color& ogdf::GraphAttributes::strokeColor ( edge  e)
inline

Returns the stroke color of edge e.

Definition at line 424 of file GraphAttributes.h.

StrokeType ogdf::GraphAttributes::strokeType ( node  v) const
inline

Returns the stroke type of node v.

Definition at line 288 of file GraphAttributes.h.

StrokeType ogdf::GraphAttributes::strokeType ( edge  e) const
inline

Returns the stroke type of edge e.

Definition at line 411 of file GraphAttributes.h.

float ogdf::GraphAttributes::strokeWidth ( node  v) const
inline

Returns the stroke width of node v.

Definition at line 306 of file GraphAttributes.h.

float& ogdf::GraphAttributes::strokeWidth ( node  v)
inline

Returns the stroke width of node v.

Definition at line 310 of file GraphAttributes.h.

float ogdf::GraphAttributes::strokeWidth ( edge  e) const
inline

Returns the stroke width of edge e.

Definition at line 429 of file GraphAttributes.h.

float& ogdf::GraphAttributes::strokeWidth ( edge  e)
inline

Returns the stroke width of edge e.

Definition at line 433 of file GraphAttributes.h.

__uint32 ogdf::GraphAttributes::subGraphBits ( edge  e) const
inline

Returns the edgesubgraph value of an edge e.

Definition at line 474 of file GraphAttributes.h.

__uint32& ogdf::GraphAttributes::subGraphBits ( edge  e)
inline

Returns the edgesubgraph value of an edge e.

Definition at line 478 of file GraphAttributes.h.

const string& ogdf::GraphAttributes::templateNode ( node  v) const
inline

Returns the template name of node v.

Definition at line 351 of file GraphAttributes.h.

string& ogdf::GraphAttributes::templateNode ( node  v)
inline

Returns the template name of node v.

Definition at line 355 of file GraphAttributes.h.

Graph::NodeType ogdf::GraphAttributes::type ( node  v) const
inline

Returns the type of node v.

Definition at line 369 of file GraphAttributes.h.

Graph::NodeType& ogdf::GraphAttributes::type ( node  v)
inline

Returns the type of node v.

Definition at line 373 of file GraphAttributes.h.

Graph::EdgeType ogdf::GraphAttributes::type ( edge  e) const
inline

Returns the type of edge e.

Definition at line 465 of file GraphAttributes.h.

Graph::EdgeType& ogdf::GraphAttributes::type ( edge  e)
inline

Returns the type of edge e.

Definition at line 469 of file GraphAttributes.h.

int ogdf::GraphAttributes::weight ( node  v) const
inline

Returns the weight of node v.

Definition at line 360 of file GraphAttributes.h.

int& ogdf::GraphAttributes::weight ( node  v)
inline

Returns the weight of node v.

Definition at line 364 of file GraphAttributes.h.

double ogdf::GraphAttributes::width ( node  v) const
inline

Returns the width of the bounding box of node v.

Definition at line 243 of file GraphAttributes.h.

double& ogdf::GraphAttributes::width ( node  v)
inline

Returns the width of the bounding box of node v.

Definition at line 247 of file GraphAttributes.h.

const NodeArray<double>& ogdf::GraphAttributes::width ( ) const
inline

Returns a reference to the node array m_width.

Definition at line 252 of file GraphAttributes.h.

NodeArray<double>& ogdf::GraphAttributes::width ( )
inline

Returns a reference to the node array m_width.

Definition at line 256 of file GraphAttributes.h.

double ogdf::GraphAttributes::x ( node  v) const
inline

Returns the x-coordinate of node v.

Definition at line 216 of file GraphAttributes.h.

double& ogdf::GraphAttributes::x ( node  v)
inline

Returns the x-coordinate of node v.

Definition at line 220 of file GraphAttributes.h.

double ogdf::GraphAttributes::y ( node  v) const
inline

Returns the y-coordinate of node v.

Definition at line 225 of file GraphAttributes.h.

double& ogdf::GraphAttributes::y ( node  v)
inline

Returns the y-coordinate of node v.

Definition at line 229 of file GraphAttributes.h.

double ogdf::GraphAttributes::z ( node  v) const
inline

Returns the z-coordinate of node v.

Definition at line 234 of file GraphAttributes.h.

double& ogdf::GraphAttributes::z ( node  v)
inline

Returns the z-coordinate of node v.

Definition at line 238 of file GraphAttributes.h.

Member Data Documentation

long ogdf::GraphAttributes::m_attributes
protected

bit vector of currently used attributes

Definition at line 122 of file GraphAttributes.h.

EdgeArray<DPolyline> ogdf::GraphAttributes::m_bends
protected

list of bend points of an edge

Definition at line 111 of file GraphAttributes.h.

bool ogdf::GraphAttributes::m_directed
protected

whether or not the graph is directed

Definition at line 91 of file GraphAttributes.h.

EdgeArray<double> ogdf::GraphAttributes::m_doubleWeight
protected

(real number) weight of an edge

Definition at line 118 of file GraphAttributes.h.

EdgeArray<EdgeArrow> ogdf::GraphAttributes::m_edgeArrow
protected

arrow type of an edge

Definition at line 113 of file GraphAttributes.h.

EdgeArray<string> ogdf::GraphAttributes::m_edgeLabel
protected

label of an edge

Definition at line 112 of file GraphAttributes.h.

EdgeArray<Stroke> ogdf::GraphAttributes::m_edgeStroke
protected

stroke of an edge

Definition at line 114 of file GraphAttributes.h.

EdgeArray<Graph::EdgeType> ogdf::GraphAttributes::m_eType
protected

type of an edge (association or generalization)

Definition at line 119 of file GraphAttributes.h.

NodeArray<double> ogdf::GraphAttributes::m_height
protected

height of a nodes's bounding box

Definition at line 98 of file GraphAttributes.h.

EdgeArray<int> ogdf::GraphAttributes::m_intWeight
protected

(integer) weight of an edge

Definition at line 117 of file GraphAttributes.h.

NodeArray<Fill> ogdf::GraphAttributes::m_nodeFill
protected

fill of a node

Definition at line 102 of file GraphAttributes.h.

NodeArray<int> ogdf::GraphAttributes::m_nodeId
protected

user ID of a node

Definition at line 106 of file GraphAttributes.h.

NodeArray<int> ogdf::GraphAttributes::m_nodeIntWeight
protected

(integer) weight of a node

Definition at line 107 of file GraphAttributes.h.

NodeArray<string> ogdf::GraphAttributes::m_nodeLabel
protected

label of a node

Definition at line 100 of file GraphAttributes.h.

NodeArray<Shape> ogdf::GraphAttributes::m_nodeShape
protected

shape of a node

Definition at line 99 of file GraphAttributes.h.

NodeArray<Stroke> ogdf::GraphAttributes::m_nodeStroke
protected

stroke of a node

Definition at line 101 of file GraphAttributes.h.

NodeArray<string> ogdf::GraphAttributes::m_nodeTemplate
protected

name of template of a node

Definition at line 103 of file GraphAttributes.h.

const Graph* ogdf::GraphAttributes::m_pGraph
protected

associated graph

Definition at line 89 of file GraphAttributes.h.

EdgeArray<__uint32> ogdf::GraphAttributes::m_subGraph
protected

is element of subgraphs given by bitvector

Definition at line 120 of file GraphAttributes.h.

NodeArray<Graph::NodeType> ogdf::GraphAttributes::m_vType
protected

type (vertex, dummy, generalizationMerger)

Definition at line 108 of file GraphAttributes.h.

NodeArray<double> ogdf::GraphAttributes::m_width
protected

width of a node's bounding box

Definition at line 97 of file GraphAttributes.h.

NodeArray<double> ogdf::GraphAttributes::m_x
protected

x-coordinate of a node

Definition at line 94 of file GraphAttributes.h.

NodeArray<double> ogdf::GraphAttributes::m_y
protected

y-coordinate pf a node

Definition at line 95 of file GraphAttributes.h.

NodeArray<double> ogdf::GraphAttributes::m_z
protected

z-coordinate pf a node

Definition at line 96 of file GraphAttributes.h.


The documentation for this class was generated from the following file: