Open
Graph Drawing
Framework

 v.2012.05
 

LayoutModule.h
Go to the documentation of this file.
00001 /*
00002  * $Revision: 2299 $
00003  *
00004  * last checkin:
00005  *   $Author: gutwenger $
00006  *   $Date: 2012-05-07 15:57:08 +0200 (Mon, 07 May 2012) $
00007  ***************************************************************/
00008 
00044 #ifdef _MSC_VER
00045 #pragma once
00046 #endif
00047 
00048 #ifndef OGDF_LAYOUT_MODULE_H
00049 #define OGDF_LAYOUT_MODULE_H
00050 
00051 
00052 
00053 #include <ogdf/basic/GraphAttributes.h>
00054 #include <ogdf/basic/Constraints.h>
00055 #include <ogdf/internal/energybased/MultilevelGraph.h>
00056 
00057 namespace ogdf {
00058 
00059 
00064 class OGDF_EXPORT LayoutModule {
00065 public:
00067     LayoutModule() { }
00068 
00069     virtual ~LayoutModule() { }
00070 
00078     virtual void call(GraphAttributes &GA) = 0;
00079 
00084     virtual void call(GraphAttributes &GA, GraphConstraints & GC) { call(GA); }
00085 
00091     void operator()(GraphAttributes &GA) { call(GA); }
00092 
00093     OGDF_MALLOC_NEW_DELETE
00094 };
00095 
00096 
00097 } // end namespace ogdf
00098 
00099 
00100 #endif