Open
Graph Drawing
Framework

 v. 2023.09 (Elderberry)
 

Loading...
Searching...
No Matches
ogdf::VisibilityLayout Class Reference

#include <ogdf/upward/VisibilityLayout.h>

+ Inheritance diagram for ogdf::VisibilityLayout:

Classes

struct  EdgeSegment
 
struct  NodeSegment
 

Public Member Functions

 VisibilityLayout ()
 
virtual void call (GraphAttributes &GA) override
 Computes a layout of graph GA.
 
void layout (GraphAttributes &GA, const UpwardPlanRep &UPROrig)
 
void setMinGridDistance (int dist)
 
void setUpwardPlanarizer (UpwardPlanarizerModule *upPlanarizer)
 
- Public Member Functions inherited from ogdf::LayoutModule
 LayoutModule ()
 Initializes a layout module.
 
virtual ~LayoutModule ()
 
void operator() (GraphAttributes &GA)
 Computes a layout of graph GA.
 

Private Member Functions

void constructDualGraph (const UpwardPlanRep &UPR, Graph &D, node &s_D, node &t_D, FaceArray< node > &faceToNode, NodeArray< face > &leftFace_node, NodeArray< face > &rightFace_node, EdgeArray< face > &leftFace_edge, EdgeArray< face > &rightFace_edge)
 
void constructVisibilityRepresentation (const UpwardPlanRep &UPR)
 

Private Attributes

EdgeArray< EdgeSegmentedgeToVis
 
int m_grid_dist
 
std::unique_ptr< UpwardPlanarizerModulem_upPlanarizer
 
NodeArray< NodeSegmentnodeToVis
 

Detailed Description

Definition at line 49 of file VisibilityLayout.h.

Constructor & Destructor Documentation

◆ VisibilityLayout()

ogdf::VisibilityLayout::VisibilityLayout ( )
inline

Definition at line 51 of file VisibilityLayout.h.

Member Function Documentation

◆ call()

virtual void ogdf::VisibilityLayout::call ( GraphAttributes GA)
overridevirtual

Computes a layout of graph GA.

This method is the actual algorithm call and must be implemented by derived classes.

Parameters
GAis the input graph and will also be assigned the layout information.

Implements ogdf::LayoutModule.

◆ constructDualGraph()

void ogdf::VisibilityLayout::constructDualGraph ( const UpwardPlanRep UPR,
Graph D,
node s_D,
node t_D,
FaceArray< node > &  faceToNode,
NodeArray< face > &  leftFace_node,
NodeArray< face > &  rightFace_node,
EdgeArray< face > &  leftFace_edge,
EdgeArray< face > &  rightFace_edge 
)
private

◆ constructVisibilityRepresentation()

void ogdf::VisibilityLayout::constructVisibilityRepresentation ( const UpwardPlanRep UPR)
private

◆ layout()

void ogdf::VisibilityLayout::layout ( GraphAttributes GA,
const UpwardPlanRep UPROrig 
)

◆ setMinGridDistance()

void ogdf::VisibilityLayout::setMinGridDistance ( int  dist)
inline

Definition at line 65 of file VisibilityLayout.h.

◆ setUpwardPlanarizer()

void ogdf::VisibilityLayout::setUpwardPlanarizer ( UpwardPlanarizerModule upPlanarizer)
inline

Definition at line 61 of file VisibilityLayout.h.

Member Data Documentation

◆ edgeToVis

EdgeArray<EdgeSegment> ogdf::VisibilityLayout::edgeToVis
private

Definition at line 90 of file VisibilityLayout.h.

◆ m_grid_dist

int ogdf::VisibilityLayout::m_grid_dist
private

Definition at line 70 of file VisibilityLayout.h.

◆ m_upPlanarizer

std::unique_ptr<UpwardPlanarizerModule> ogdf::VisibilityLayout::m_upPlanarizer
private

Definition at line 92 of file VisibilityLayout.h.

◆ nodeToVis

NodeArray<NodeSegment> ogdf::VisibilityLayout::nodeToVis
private

Definition at line 87 of file VisibilityLayout.h.


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