Open
Graph Drawing
Framework

 v. 2023.09 (Elderberry)
 

UPRLayoutModule.h
Go to the documentation of this file.
1 
32 #pragma once
33 
34 #include <ogdf/basic/basic.h>
35 #include <ogdf/basic/memory.h>
36 
37 namespace ogdf {
38 class GraphAttributes;
39 class UpwardPlanRep;
40 
47 public:
50 
51  virtual ~UPRLayoutModule() { }
52 
58  void call(const UpwardPlanRep& UPR, GraphAttributes& AG) { doCall(UPR, AG); }
59 
61 
62 protected:
71  virtual void doCall(const UpwardPlanRep& UPR, GraphAttributes& AG) = 0;
72 
74 };
75 
76 }
ogdf
The namespace for all OGDF objects.
Definition: multilevelmixer.cpp:39
ogdf::GraphAttributes
Stores additional attributes of a graph (like layout information).
Definition: GraphAttributes.h:72
ogdf::UPRLayoutModule
Interface of hierarchy layout algorithms.
Definition: UPRLayoutModule.h:46
ogdf::UPRLayoutModule::numberOfLevels
int numberOfLevels
Definition: UPRLayoutModule.h:60
OGDF_MALLOC_NEW_DELETE
#define OGDF_MALLOC_NEW_DELETE
Makes the class use malloc for memory allocation.
Definition: memory.h:92
ogdf::UPRLayoutModule::~UPRLayoutModule
virtual ~UPRLayoutModule()
Definition: UPRLayoutModule.h:51
basic.h
Basic declarations, included by all source files.
OGDF_EXPORT
#define OGDF_EXPORT
Specifies that a function or class is exported by the OGDF DLL.
Definition: config.h:101
ogdf::UpwardPlanRep
Upward planarized representations (of a connected component) of a graph.
Definition: UpwardPlanRep.h:57
memory.h
Declaration of memory manager for allocating small pieces of memory.
ogdf::UPRLayoutModule::call
void call(const UpwardPlanRep &UPR, GraphAttributes &AG)
Computes a upward layout of UPR in AG.
Definition: UPRLayoutModule.h:58
ogdf::UPRLayoutModule::UPRLayoutModule
UPRLayoutModule()
Initializes a upward planarized representation layout module.
Definition: UPRLayoutModule.h:49