Open
Graph Drawing
Framework

 v.2012.05
 

UPRLayoutModule.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  
00042 #ifdef _MSC_VER
00043 #pragma once
00044 #endif
00045 
00046 #ifndef OGDF_UPR_LAYOUT_MODULE_H
00047 #define OGDF_UPR_LAYOUT_MODULE_H
00048 
00049 
00050 
00051 #include <ogdf/layered/Hierarchy.h>
00052 #include <ogdf/basic/GraphCopyAttributes.h>
00053 
00054 
00055 namespace ogdf {
00056 
00057 
00063 class OGDF_EXPORT UPRLayoutModule {
00064 public:
00066     UPRLayoutModule() { }
00067 
00068     virtual ~UPRLayoutModule() { }
00069 
00075     void call(const UpwardPlanRep &UPR, GraphAttributes &AG) {  
00076         doCall(UPR, AG);        
00077     }   
00078 
00079     int numberOfLevels;
00080 
00081 protected:
00090     virtual void doCall(const UpwardPlanRep &UPR, GraphAttributes &AG) = 0;
00091 
00092     OGDF_MALLOC_NEW_DELETE
00093 };
00094 
00095 
00096 } // end namespace ogdf
00097 
00098 
00099 #endif