Open
Graph Drawing
Framework

 v. 2023.09 (Elderberry)
 

LayoutClusterPlanRepModule.h
Go to the documentation of this file.
1 
33 #pragma once
34 
35 #include <ogdf/basic/Graph.h>
36 #include <ogdf/basic/basic.h>
37 #include <ogdf/basic/geometry.h>
38 #include <ogdf/basic/memory.h>
39 
40 namespace ogdf {
41 class ClusterPlanRep;
42 class Layout;
43 template<class E>
44 class List;
45 
53 public:
56 
58 
68  virtual void call(ClusterPlanRep& PG, adjEntry adjExternal, Layout& drawing,
69  List<edge>& origEdges, Graph& originalGraph) = 0;
70 
72  const DPoint& getBoundingBox() const { return m_boundingBox; }
73 
75  virtual void setOptions(int /* optionField */) { }
76 
77  // don't make it abstract!
78 
80  virtual int getOptions() { return 0; }
81 
82  // don't make it abstract!
83 
85  virtual double separation() const = 0;
86 
88  virtual void separation(double sep) = 0;
89 
90 protected:
96 
98 };
99 
100 }
ogdf
The namespace for all OGDF objects.
Definition: multilevelmixer.cpp:39
Graph.h
Includes declaration of graph class.
ogdf::GenericPoint< double >
geometry.h
Declaration of classes GenericPoint, GenericPolyline, GenericLine, GenericSegment,...
ogdf::ClusterPlanRep
Planarized representations for clustered graphs.
Definition: ClusterPlanRep.h:56
ogdf::LayoutClusterPlanRepModule::setOptions
virtual void setOptions(int)
Sets the (generic) options; derived classes have to cope with the interpretation)
Definition: LayoutClusterPlanRepModule.h:75
ogdf::AdjElement
Class for adjacency list elements.
Definition: Graph_d.h:142
ogdf::Layout
Stores a layout of a graph (coordinates of nodes, bend points of edges).
Definition: Layout.h:49
OGDF_MALLOC_NEW_DELETE
#define OGDF_MALLOC_NEW_DELETE
Makes the class use malloc for memory allocation.
Definition: memory.h:92
ogdf::List< edge >
ogdf::LayoutClusterPlanRepModule::~LayoutClusterPlanRepModule
virtual ~LayoutClusterPlanRepModule()
Definition: LayoutClusterPlanRepModule.h:57
ogdf::Graph
Data type for general directed graphs (adjacency list representation).
Definition: Graph_d.h:869
ogdf::LayoutClusterPlanRepModule::m_boundingBox
DPoint m_boundingBox
Stores the bounding box of the computed layout.
Definition: LayoutClusterPlanRepModule.h:95
ogdf::LayoutClusterPlanRepModule::LayoutClusterPlanRepModule
LayoutClusterPlanRepModule()
Initializes a cluster planar layout module.
Definition: LayoutClusterPlanRepModule.h:55
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::LayoutClusterPlanRepModule::getBoundingBox
const DPoint & getBoundingBox() const
Returns the bounding box of the computed layout.
Definition: LayoutClusterPlanRepModule.h:72
ogdf::LayoutClusterPlanRepModule::getOptions
virtual int getOptions()
Returns the (generic) options.
Definition: LayoutClusterPlanRepModule.h:80
ogdf::LayoutClusterPlanRepModule
Interface for planar cluster layout algorithms.
Definition: LayoutClusterPlanRepModule.h:52
memory.h
Declaration of memory manager for allocating small pieces of memory.