Open
Graph Drawing
Framework

 v. 2020.02 (Catalpa)
 

CCLayoutPackModule.h
Go to the documentation of this file.
1 
33 #pragma once
34 
36 
37 
38 
39 namespace ogdf {
40 
41 
49 public:
52 
53  virtual ~CCLayoutPackModule() { }
54 
70  virtual void call(Array<DPoint> &box,
71  Array<DPoint> &offset,
72  double pageRatio = 1.0) = 0;
73 
87  Array<DPoint> &offset,
88  double pageRatio = 1.0)
89  {
90  call(box,offset,pageRatio);
91  }
92 
108  virtual void call(Array<IPoint> &box,
109  Array<IPoint> &offset,
110  double pageRatio = 1.0) = 0;
111 
125  Array<IPoint> &offset,
126  double pageRatio = 1.0)
127  {
128  call(box,offset,pageRatio);
129  }
130 
139  static bool checkOffsets(const Array<DPoint> &box,
140  const Array<DPoint> &offset);
141 
150  static bool checkOffsets(const Array<IPoint> &box,
151  const Array<IPoint> &offset);
152 
153 
155 
156 private:
164  template<class POINT>
165  static bool checkOffsetsTP(
166  const Array<POINT> &box,
167  const Array<POINT> &offset);
168 };
169 
170 }
void operator()(Array< DPoint > &box, Array< DPoint > &offset, double pageRatio=1.0)
Arranges the rectangles given by box.
Declaration of class GraphAttributes which extends a Graph by additional attributes.
The parameterized class Array implements dynamic arrays of type E.
Definition: Array.h:200
CCLayoutPackModule()
Initializes a layout packing module.
#define OGDF_EXPORT
Specifies that a function or class is exported by the OGDF DLL.
Definition: config.h:99
void operator()(Array< IPoint > &box, Array< IPoint > &offset, double pageRatio=1.0)
Arranges the rectangles given by box.
#define OGDF_MALLOC_NEW_DELETE
Makes the class use malloc for memory allocation.
Definition: memory.h:91
Base class of algorithms that arrange/pack layouts of connected components.
The namespace for all OGDF objects.