Open
Graph Drawing
Framework

 v. snapshot-2017-02-16
 

LayoutModule.h
Go to the documentation of this file.
1 
33 #pragma once
34 
36 
37 namespace ogdf {
38 
39 
45 public:
48 
49  virtual ~LayoutModule() { }
50 
58  virtual void call(GraphAttributes &GA) = 0;
59 
65  void operator()(GraphAttributes &GA) { call(GA); }
66 
68 };
69 
70 
71 } // end namespace ogdf
Declaration of class GraphAttributes which extends a Graph by additional attributes.
#define OGDF_EXPORT
Specifies that a function or class is exported by the OGDF DLL.
Definition: config.h:99
#define OGDF_MALLOC_NEW_DELETE
Makes the class use malloc for memory allocation.
Definition: memory.h:91
LayoutModule()
Initializes a layout module.
Definition: LayoutModule.h:47
virtual ~LayoutModule()
Definition: LayoutModule.h:49
Stores additional attributes of a graph (like layout information).
Interface of general layout algorithms.
Definition: LayoutModule.h:44
void operator()(GraphAttributes &GA)
Computes a layout of graph GA.
Definition: LayoutModule.h:65
The namespace for all OGDF objects.