Open
Graph Drawing
Framework

 v.2012.05
 

InitialPlacer.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_INITIAL_PLACER_H
00047 #define OGDF_INITIAL_PLACER_H
00048 
00049 #include <ogdf/basic/Graph.h>
00050 #include <ogdf/internal/energybased/MultilevelGraph.h>
00051 
00052 namespace ogdf {
00053 
00054 class OGDF_EXPORT InitialPlacer
00055 {
00056 protected:
00057     bool m_randomOffset;
00058 
00059 public:
00060     InitialPlacer():m_randomOffset(true) {};
00061     virtual ~InitialPlacer() {};
00062 
00063     virtual void placeOneLevel(MultilevelGraph &MLG) = 0;
00064 
00065     void setRandomOffset(bool on)
00066     {
00067         m_randomOffset = on;
00068     };
00069 
00070 };
00071 
00072 } // namespace ogdf
00073 
00074 #endif