Open
Graph Drawing
Framework

 v. 2023.09 (Elderberry)
 

Loading...
Searching...
No Matches
ogdf::VertexPositionModule Class Referenceabstract

Interface for computing a good / optimal vertex position. More...

#include <ogdf/geometric/VertexPositionModule.h>

+ Inheritance diagram for ogdf::VertexPositionModule:

Public Member Functions

 VertexPositionModule ()
 
 ~VertexPositionModule ()
 
virtual DPoint call (GraphAttributes &GA, node v)=0
 computes a good position for the vertex v with respect to GA
 
DPoint operator() (GraphAttributes &GA, node v)
 computes a good position for the vertex v with respect to GA
 
void setBoundingBox (double x_min, double y_min, double x_max, double y_max)
 Vertex has to be moved within the given bound.
 

Protected Attributes

double m_x_max = 1
 
double m_x_min = 0
 
double m_y_max = 1
 
double m_y_min = 0
 

Detailed Description

Interface for computing a good / optimal vertex position.

Definition at line 43 of file VertexPositionModule.h.

Constructor & Destructor Documentation

◆ VertexPositionModule()

ogdf::VertexPositionModule::VertexPositionModule ( )
inline

Definition at line 46 of file VertexPositionModule.h.

◆ ~VertexPositionModule()

ogdf::VertexPositionModule::~VertexPositionModule ( )
inline

Definition at line 48 of file VertexPositionModule.h.

Member Function Documentation

◆ call()

virtual DPoint ogdf::VertexPositionModule::call ( GraphAttributes GA,
node  v 
)
pure virtual

computes a good position for the vertex v with respect to GA

Implemented in ogdf::CrossingMinimalPosition< FT >, and ogdf::RandomVertexPosition.

◆ operator()()

DPoint ogdf::VertexPositionModule::operator() ( GraphAttributes GA,
node  v 
)
inline

computes a good position for the vertex v with respect to GA

Definition at line 67 of file VertexPositionModule.h.

◆ setBoundingBox()

void ogdf::VertexPositionModule::setBoundingBox ( double  x_min,
double  y_min,
double  x_max,
double  y_max 
)
inline

Vertex has to be moved within the given bound.

Parameters
x_minminimum x-coordinate
y_minminimum y-coordinate
x_maxmaximum x-coordinate
y_maxmaximum y-coordinate

Definition at line 56 of file VertexPositionModule.h.

Member Data Documentation

◆ m_x_max

double ogdf::VertexPositionModule::m_x_max = 1
protected

Definition at line 72 of file VertexPositionModule.h.

◆ m_x_min

double ogdf::VertexPositionModule::m_x_min = 0
protected

Definition at line 70 of file VertexPositionModule.h.

◆ m_y_max

double ogdf::VertexPositionModule::m_y_max = 1
protected

Definition at line 73 of file VertexPositionModule.h.

◆ m_y_min

double ogdf::VertexPositionModule::m_y_min = 0
protected

Definition at line 71 of file VertexPositionModule.h.


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