Open
Graph Drawing
Framework

 v. 2023.09 (Elderberry)
 

ogdf::OrthoRep Class Reference

Orthogonal representation of an embedded graph. More...

#include <ogdf/orthogonal/OrthoRep.h>

Classes

struct  SideInfoUML
 Information about a side of a vertex in UML diagrams. More...
 
struct  VertexInfoUML
 Further information about the cages of vertices in UML diagrams. More...
 

Public Member Functions

 OrthoRep ()
 
 OrthoRep (CombinatorialEmbedding &E)
 
 ~OrthoRep ()
 
adjEntry alignAdjEntry () const
 
int & angle (adjEntry adj)
 
int angle (adjEntry adj) const
 
BendStringbend (adjEntry adj)
 
const BendStringbend (adjEntry adj) const
 
VertexInfoUMLcageInfo (node v)
 
const VertexInfoUMLcageInfo (node v) const
 
bool check (string &error) const
 
void computeCageInfoUML (const PlanRep &PG)
 
OrthoDir direction (adjEntry adj) const
 
void dissect ()
 
void dissect2 (PlanRep *PG=nullptr)
 
adjEntry externalAdjEntry () const
 
void gridDissect (PlanRep *PG)
 
void init (CombinatorialEmbedding &E)
 
bool isNormalized () const
 
bool isOrientated () const
 
void normalize ()
 
 operator const CombinatorialEmbedding & () const
 
 operator const Graph & () const
 
void orientate ()
 
void orientate (adjEntry adj, OrthoDir dir)
 
void orientate (const PlanRep &PG, OrthoDir preferedDir)
 
void rotate (int r)
 
void undissect (bool align=false)
 

Static Public Member Functions

static char flip (char c)
 
static OrthoDir nextDir (OrthoDir d)
 Returns the next OrthoDir (in a clockwise manner) More...
 
static OrthoDir oppDir (OrthoDir d)
 Returns the opposite OrthoDir. More...
 
static OrthoDir prevDir (OrthoDir d)
 Returns the previous OrthoDir (in a clockwise manner) More...
 

Private Member Functions

void freeCageInfoUML ()
 
void orientateFace (adjEntry adj, OrthoDir dir)
 

Private Attributes

adjEntry m_adjAlign
 
adjEntry m_adjExternal
 
EdgeArray< bool > m_alignmentEdge
 
AdjEntryArray< int > m_angle
 
AdjEntryArray< BendStringm_bends
 
AdjEntryArray< OrthoDirm_dir
 
EdgeArray< bool > m_dissectionEdge
 
bool m_pattern2
 
CombinatorialEmbeddingm_pE
 
bool m_preprocess
 
ArrayBuffer< nodem_splitNodes
 
NodeArray< VertexInfoUML * > m_umlCageInfo
 

Friends

std::ostream & operator<< (std::ostream &os, const OrthoRep &op)
 

Detailed Description

Orthogonal representation of an embedded graph.

Definition at line 219 of file OrthoRep.h.

Constructor & Destructor Documentation

◆ OrthoRep() [1/2]

ogdf::OrthoRep::OrthoRep ( )
inline

Definition at line 279 of file OrthoRep.h.

◆ OrthoRep() [2/2]

ogdf::OrthoRep::OrthoRep ( CombinatorialEmbedding E)
explicit

◆ ~OrthoRep()

ogdf::OrthoRep::~OrthoRep ( )
inline

Definition at line 285 of file OrthoRep.h.

Member Function Documentation

◆ alignAdjEntry()

adjEntry ogdf::OrthoRep::alignAdjEntry ( ) const
inline

Definition at line 255 of file OrthoRep.h.

◆ angle() [1/2]

int& ogdf::OrthoRep::angle ( adjEntry  adj)
inline

Definition at line 304 of file OrthoRep.h.

◆ angle() [2/2]

int ogdf::OrthoRep::angle ( adjEntry  adj) const
inline

Definition at line 302 of file OrthoRep.h.

◆ bend() [1/2]

BendString& ogdf::OrthoRep::bend ( adjEntry  adj)
inline

Definition at line 309 of file OrthoRep.h.

◆ bend() [2/2]

const BendString& ogdf::OrthoRep::bend ( adjEntry  adj) const
inline

Definition at line 307 of file OrthoRep.h.

◆ cageInfo() [1/2]

VertexInfoUML* ogdf::OrthoRep::cageInfo ( node  v)
inline

Definition at line 318 of file OrthoRep.h.

◆ cageInfo() [2/2]

const VertexInfoUML* ogdf::OrthoRep::cageInfo ( node  v) const
inline

Definition at line 315 of file OrthoRep.h.

◆ check()

bool ogdf::OrthoRep::check ( string &  error) const

◆ computeCageInfoUML()

void ogdf::OrthoRep::computeCageInfoUML ( const PlanRep PG)

◆ direction()

OrthoDir ogdf::OrthoRep::direction ( adjEntry  adj) const
inline

Definition at line 312 of file OrthoRep.h.

◆ dissect()

void ogdf::OrthoRep::dissect ( )

◆ dissect2()

void ogdf::OrthoRep::dissect2 ( PlanRep PG = nullptr)

◆ externalAdjEntry()

adjEntry ogdf::OrthoRep::externalAdjEntry ( ) const
inline

Definition at line 253 of file OrthoRep.h.

◆ flip()

static char ogdf::OrthoRep::flip ( char  c)
inlinestatic

Definition at line 381 of file OrthoRep.h.

◆ freeCageInfoUML()

void ogdf::OrthoRep::freeCageInfoUML ( )
private

◆ gridDissect()

void ogdf::OrthoRep::gridDissect ( PlanRep PG)

◆ init()

void ogdf::OrthoRep::init ( CombinatorialEmbedding E)

◆ isNormalized()

bool ogdf::OrthoRep::isNormalized ( ) const

◆ isOrientated()

bool ogdf::OrthoRep::isOrientated ( ) const
inline

Definition at line 360 of file OrthoRep.h.

◆ nextDir()

static OrthoDir ogdf::OrthoRep::nextDir ( OrthoDir  d)
inlinestatic

Returns the next OrthoDir (in a clockwise manner)

Definition at line 389 of file OrthoRep.h.

◆ normalize()

void ogdf::OrthoRep::normalize ( )

◆ operator const CombinatorialEmbedding &()

ogdf::OrthoRep::operator const CombinatorialEmbedding & ( ) const
inline

Definition at line 295 of file OrthoRep.h.

◆ operator const Graph &()

ogdf::OrthoRep::operator const Graph & ( ) const
inline

Definition at line 298 of file OrthoRep.h.

◆ oppDir()

static OrthoDir ogdf::OrthoRep::oppDir ( OrthoDir  d)
inlinestatic

Returns the opposite OrthoDir.

Definition at line 384 of file OrthoRep.h.

◆ orientate() [1/3]

void ogdf::OrthoRep::orientate ( )

◆ orientate() [2/3]

void ogdf::OrthoRep::orientate ( adjEntry  adj,
OrthoDir  dir 
)

◆ orientate() [3/3]

void ogdf::OrthoRep::orientate ( const PlanRep PG,
OrthoDir  preferedDir 
)

◆ orientateFace()

void ogdf::OrthoRep::orientateFace ( adjEntry  adj,
OrthoDir  dir 
)
private

◆ prevDir()

static OrthoDir ogdf::OrthoRep::prevDir ( OrthoDir  d)
inlinestatic

Returns the previous OrthoDir (in a clockwise manner)

Definition at line 394 of file OrthoRep.h.

◆ rotate()

void ogdf::OrthoRep::rotate ( int  r)

◆ undissect()

void ogdf::OrthoRep::undissect ( bool  align = false)

Friends And Related Function Documentation

◆ operator<<

std::ostream& operator<< ( std::ostream &  os,
const OrthoRep op 
)
friend

Definition at line 398 of file OrthoRep.h.

Member Data Documentation

◆ m_adjAlign

adjEntry ogdf::OrthoRep::m_adjAlign
private

Definition at line 439 of file OrthoRep.h.

◆ m_adjExternal

adjEntry ogdf::OrthoRep::m_adjExternal
private

Definition at line 437 of file OrthoRep.h.

◆ m_alignmentEdge

EdgeArray<bool> ogdf::OrthoRep::m_alignmentEdge
private

Definition at line 432 of file OrthoRep.h.

◆ m_angle

AdjEntryArray<int> ogdf::OrthoRep::m_angle
private

Definition at line 419 of file OrthoRep.h.

◆ m_bends

AdjEntryArray<BendString> ogdf::OrthoRep::m_bends
private

Definition at line 421 of file OrthoRep.h.

◆ m_dir

AdjEntryArray<OrthoDir> ogdf::OrthoRep::m_dir
private

Definition at line 423 of file OrthoRep.h.

◆ m_dissectionEdge

EdgeArray<bool> ogdf::OrthoRep::m_dissectionEdge
private

Definition at line 430 of file OrthoRep.h.

◆ m_pattern2

bool ogdf::OrthoRep::m_pattern2
private

Definition at line 443 of file OrthoRep.h.

◆ m_pE

CombinatorialEmbedding* ogdf::OrthoRep::m_pE
private

Definition at line 416 of file OrthoRep.h.

◆ m_preprocess

bool ogdf::OrthoRep::m_preprocess
private

Definition at line 441 of file OrthoRep.h.

◆ m_splitNodes

ArrayBuffer<node> ogdf::OrthoRep::m_splitNodes
private

Definition at line 435 of file OrthoRep.h.

◆ m_umlCageInfo

NodeArray<VertexInfoUML*> ogdf::OrthoRep::m_umlCageInfo
private

Definition at line 427 of file OrthoRep.h.


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