Open
Graph Drawing
Framework

 v. 2022.02 (Dogwood)
 

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 236 of file OrthoRep.h.

Constructor & Destructor Documentation

◆ OrthoRep() [1/2]

ogdf::OrthoRep::OrthoRep ( )
inline

Definition at line 299 of file OrthoRep.h.

◆ OrthoRep() [2/2]

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

◆ ~OrthoRep()

ogdf::OrthoRep::~OrthoRep ( )
inline

Definition at line 304 of file OrthoRep.h.

Member Function Documentation

◆ alignAdjEntry()

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

Definition at line 275 of file OrthoRep.h.

◆ angle() [1/2]

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

Definition at line 332 of file OrthoRep.h.

◆ angle() [2/2]

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

Definition at line 328 of file OrthoRep.h.

◆ bend() [1/2]

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

Definition at line 342 of file OrthoRep.h.

◆ bend() [2/2]

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

Definition at line 338 of file OrthoRep.h.

◆ cageInfo() [1/2]

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

Definition at line 358 of file OrthoRep.h.

◆ cageInfo() [2/2]

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

Definition at line 353 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 347 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 274 of file OrthoRep.h.

◆ flip()

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

Definition at line 429 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 404 of file OrthoRep.h.

◆ nextDir()

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

Returns the next OrthoDir (in a clockwise manner)

Definition at line 439 of file OrthoRep.h.

◆ normalize()

void ogdf::OrthoRep::normalize ( )

◆ operator const CombinatorialEmbedding &()

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

Definition at line 317 of file OrthoRep.h.

◆ operator const Graph &()

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

Definition at line 322 of file OrthoRep.h.

◆ oppDir()

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

Returns the opposite OrthoDir.

Definition at line 434 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 444 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 448 of file OrthoRep.h.

Member Data Documentation

◆ m_adjAlign

adjEntry ogdf::OrthoRep::m_adjAlign
private

Definition at line 490 of file OrthoRep.h.

◆ m_adjExternal

adjEntry ogdf::OrthoRep::m_adjExternal
private

Definition at line 488 of file OrthoRep.h.

◆ m_alignmentEdge

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

Definition at line 483 of file OrthoRep.h.

◆ m_angle

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

Definition at line 470 of file OrthoRep.h.

◆ m_bends

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

Definition at line 472 of file OrthoRep.h.

◆ m_dir

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

Definition at line 474 of file OrthoRep.h.

◆ m_dissectionEdge

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

Definition at line 481 of file OrthoRep.h.

◆ m_pattern2

bool ogdf::OrthoRep::m_pattern2
private

Definition at line 494 of file OrthoRep.h.

◆ m_pE

CombinatorialEmbedding* ogdf::OrthoRep::m_pE
private

Definition at line 467 of file OrthoRep.h.

◆ m_preprocess

bool ogdf::OrthoRep::m_preprocess
private

Definition at line 492 of file OrthoRep.h.

◆ m_splitNodes

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

Definition at line 486 of file OrthoRep.h.

◆ m_umlCageInfo

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

Definition at line 478 of file OrthoRep.h.


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