Open
Graph Drawing
Framework

 v.2012.05
 

BarycenterPlacer.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 #include <ogdf/energybased/multilevelmixer/InitialPlacer.h>
00043 
00044 #ifdef _MSC_VER
00045 #pragma once
00046 #endif
00047 
00048 #ifndef OGDF_BARYCENTER_PLACER_H
00049 #define OGDF_BARYCENTER_PLACER_H
00050 
00051 namespace ogdf {
00052 
00053 class OGDF_EXPORT BarycenterPlacer : public InitialPlacer
00054 {
00055 private:
00056     bool m_weightedPositions;
00057 
00058 public:
00059     BarycenterPlacer();
00060 
00061     void placeOneLevel(MultilevelGraph &MLG);
00062     void placeOneNode(MultilevelGraph &MLG);
00063     void weightedPositionPriority(bool on);
00064 };
00065 
00066 } // namespace ogdf
00067 
00068 #endif