Open
Graph Drawing
Framework

 v.2012.05
 

CirclePlacer.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_CIRCLE_PLACER_H
00049 #define OGDF_CIRCLE_PLACER_H
00050 
00051 namespace ogdf {
00052 
00053 class OGDF_EXPORT CirclePlacer : public InitialPlacer
00054 {
00055 public:
00056 
00057     enum NodeSelection {
00058         nsNew,
00059         nsOld,
00060         nsAll
00061     };
00062 
00063     CirclePlacer();
00064     void setRadiusFixed(bool fixed);
00065     void setCircleSize(float sizeIncrease);
00066     void setNodeSelection(NodeSelection nodeSel);
00067     void placeOneLevel(MultilevelGraph &MLG);
00068 
00069 private:
00070 
00071     float m_circleSize;
00072     bool m_fixedRadius;
00073     NodeSelection m_nodeSelection;
00074 };
00075 
00076 } // namespace ogdf
00077 
00078 #endif