Open
Graph Drawing
Framework

 v.2012.07
 

CCLayoutPackModule.h
Go to the documentation of this file.
1 /*
2  * $Revision: 2523 $
3  *
4  * last checkin:
5  * $Author: gutwenger $
6  * $Date: 2012-07-02 20:59:27 +0200 (Mon, 02 Jul 2012) $
7  ***************************************************************/
8 
44 #ifdef _MSC_VER
45 #pragma once
46 #endif
47 
48 #ifndef OGDF_CC_LAYOUT_PACK_MODULE_H
49 #define OGDF_CC_LAYOUT_PACK_MODULE_H
50 
51 
52 
54 
55 
56 
57 namespace ogdf {
58 
59 
67 public:
70 
71  virtual ~CCLayoutPackModule() { }
72 
88  virtual void call(Array<DPoint> &box,
89  Array<DPoint> &offset,
90  double pageRatio = 1.0) = 0;
91 
104  void operator()(Array<DPoint> &box,
105  Array<DPoint> &offset,
106  double pageRatio = 1.0)
107  {
108  call(box,offset,pageRatio);
109  }
110 
126  virtual void call(Array<IPoint> &box,
127  Array<IPoint> &offset,
128  double pageRatio = 1.0) = 0;
129 
142  void operator()(Array<IPoint> &box,
143  Array<IPoint> &offset,
144  double pageRatio = 1.0)
145  {
146  call(box,offset,pageRatio);
147  }
148 
157  static bool checkOffsets(const Array<DPoint> &box,
158  const Array<DPoint> &offset);
159 
168  static bool checkOffsets(const Array<IPoint> &box,
169  const Array<IPoint> &offset);
170 
171 
173 
174 private:
182  template<class POINT>
183  static bool checkOffsetsTP(
184  const Array<POINT> &box,
185  const Array<POINT> &offset);
186 };
187 
188 
189 } // end namespace ogdf
190 
191 
192 #endif