Open
Graph Drawing
Framework

 v.2010.10
 

Public Member Functions | Protected Member Functions | Protected Attributes | Private Member Functions | Private Attributes

ogdf::CompactionConstraintGraphBase Class Reference

#include <ogdf/orthogonal/CompactionConstraintGraph.h>

Inheritance diagram for ogdf::CompactionConstraintGraphBase:
ogdf::Graph ogdf::CompactionConstraintGraph< ATYPE >

List of all members.

Public Member Functions

void writeGML (const char *fileName) const
 Writes the graph in GML format to file fileName.
void writeGML (ostream &os) const
 Writes the graph in GML format to output stream os.
void writeGML (const char *fileName, NodeArray< bool > one) const
void writeGML (ostream &os, NodeArray< bool > one) const
edge basicArc (edge e) const
bool verticalGen (edge e) const
bool verticalArc (edge e) const
bool onBorder (edge e) const
bool fixOnBorder (edge e) const
void align (bool b)
bool alignmentArc (edge e) const
const PlanRepgetPlanRep () const
edge pathToOriginal (node v)

Protected Member Functions

 CompactionConstraintGraphBase (const OrthoRep &OR, const PlanRep &PG, OrthoDir arcDir, int costGen=1, int costAssoc=1, bool align=false)
void computeTopologicalSegmentNum (NodeArray< int > &topNum)
void removeRedundantVisibArcs (SListPure< Tuple2< node, node > > &visibArcs)
void embed ()
virtual void writeLength (ostream &os, edge e) const =0

Protected Attributes

const OrthoRepm_pOR
const PlanRepm_pPR
OrthoDir m_arcDir
OrthoDir m_oppArcDir
int m_edgeCost [2]
NodeArray< SListPure< node > > m_path
NodeArray< nodem_pathNode
EdgeArray< edgem_edgeToBasicArc
EdgeArray< int > m_cost
EdgeArray< ConstraintEdgeTypem_type
EdgeArray< bool > m_verticalGen
EdgeArray< bool > m_verticalArc
EdgeArray< int > m_border
EdgeArray< bool > m_alignmentArc
NodeArray< edgem_pathToEdge
NodeArray< edgem_originalEdge

Private Member Functions

void insertPathVertices (const PlanRep &PG)
void dfsInsertPathVertex (node v, node pathVertex, NodeArray< bool > &visited, const NodeArray< node > &genOpposite)
void insertBasicArcs (const PlanRep &PG)

Private Attributes

bool m_align
node m_superSource
node m_superSink
SList< nodem_sources
SList< nodem_sinks

Detailed Description

Definition at line 88 of file CompactionConstraintGraph.h.


Constructor & Destructor Documentation

ogdf::CompactionConstraintGraphBase::CompactionConstraintGraphBase ( const OrthoRep OR,
const PlanRep PG,
OrthoDir  arcDir,
int  costGen = 1,
int  costAssoc = 1,
bool  align = false 
) [protected]

Member Function Documentation

void ogdf::CompactionConstraintGraphBase::align ( bool  b  )  [inline]

Definition at line 118 of file CompactionConstraintGraph.h.

bool ogdf::CompactionConstraintGraphBase::alignmentArc ( edge  e  )  const [inline]

Definition at line 122 of file CompactionConstraintGraph.h.

edge ogdf::CompactionConstraintGraphBase::basicArc ( edge  e  )  const [inline]

Definition at line 100 of file CompactionConstraintGraph.h.

void ogdf::CompactionConstraintGraphBase::computeTopologicalSegmentNum ( NodeArray< int > &  topNum  )  [protected]
void ogdf::CompactionConstraintGraphBase::dfsInsertPathVertex ( node  v,
node  pathVertex,
NodeArray< bool > &  visited,
const NodeArray< node > &  genOpposite 
) [private]
void ogdf::CompactionConstraintGraphBase::embed (  )  [protected]
bool ogdf::CompactionConstraintGraphBase::fixOnBorder ( edge  e  )  const [inline]

Definition at line 115 of file CompactionConstraintGraph.h.

const PlanRep& ogdf::CompactionConstraintGraphBase::getPlanRep (  )  const [inline]

Definition at line 124 of file CompactionConstraintGraph.h.

void ogdf::CompactionConstraintGraphBase::insertBasicArcs ( const PlanRep PG  )  [private]
void ogdf::CompactionConstraintGraphBase::insertPathVertices ( const PlanRep PG  )  [private]
bool ogdf::CompactionConstraintGraphBase::onBorder ( edge  e  )  const [inline]

Definition at line 113 of file CompactionConstraintGraph.h.

edge ogdf::CompactionConstraintGraphBase::pathToOriginal ( node  v  )  [inline]

Definition at line 126 of file CompactionConstraintGraph.h.

void ogdf::CompactionConstraintGraphBase::removeRedundantVisibArcs ( SListPure< Tuple2< node, node > > &  visibArcs  )  [protected]
bool ogdf::CompactionConstraintGraphBase::verticalArc ( edge  e  )  const [inline]

Definition at line 111 of file CompactionConstraintGraph.h.

bool ogdf::CompactionConstraintGraphBase::verticalGen ( edge  e  )  const [inline]

Definition at line 108 of file CompactionConstraintGraph.h.

void ogdf::CompactionConstraintGraphBase::writeGML ( ostream &  os,
NodeArray< bool >  one 
) const
void ogdf::CompactionConstraintGraphBase::writeGML ( const char *  fileName  )  const

Writes the graph in GML format to file fileName.

Reimplemented from ogdf::Graph.

Reimplemented in ogdf::CompactionConstraintGraph< ATYPE >.

void ogdf::CompactionConstraintGraphBase::writeGML ( ostream &  os  )  const

Writes the graph in GML format to output stream os.

Reimplemented from ogdf::Graph.

Reimplemented in ogdf::CompactionConstraintGraph< ATYPE >.

void ogdf::CompactionConstraintGraphBase::writeGML ( const char *  fileName,
NodeArray< bool >  one 
) const
virtual void ogdf::CompactionConstraintGraphBase::writeLength ( ostream &  os,
edge  e 
) const [protected, pure virtual]

Member Data Documentation


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