Open
Graph Drawing
Framework

 v. 2023.09 (Elderberry)
 

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 More...
 
DPoint operator() (GraphAttributes &GA, node v)
 computes a good position for the vertex v with respect to GA More...
 
void setBoundingBox (double x_min, double y_min, double x_max, double y_max)
 Vertex has to be moved within the given bound. More...
 

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 44 of file VertexPositionModule.h.

Constructor & Destructor Documentation

◆ VertexPositionModule()

ogdf::VertexPositionModule::VertexPositionModule ( )
inline

Definition at line 47 of file VertexPositionModule.h.

◆ ~VertexPositionModule()

ogdf::VertexPositionModule::~VertexPositionModule ( )
inline

Definition at line 49 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 68 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 57 of file VertexPositionModule.h.

Member Data Documentation

◆ m_x_max

double ogdf::VertexPositionModule::m_x_max = 1
protected

Definition at line 73 of file VertexPositionModule.h.

◆ m_x_min

double ogdf::VertexPositionModule::m_x_min = 0
protected

Definition at line 71 of file VertexPositionModule.h.

◆ m_y_max

double ogdf::VertexPositionModule::m_y_max = 1
protected

Definition at line 74 of file VertexPositionModule.h.

◆ m_y_min

double ogdf::VertexPositionModule::m_y_min = 0
protected

Definition at line 72 of file VertexPositionModule.h.


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