Open
Graph Drawing
Framework

 v. snapshot-2017-02-16
 

TileToRowsCCPacker.h
Go to the documentation of this file.
1 
32 #pragma once
33 
35 
36 
37 
38 namespace ogdf {
39 
40 
43 {
44  template<class POINT> struct RowInfo;
45 
46 public:
49 
50  virtual ~TileToRowsCCPacker() { }
51 
64  virtual void call(Array<DPoint> &box,
65  Array<DPoint> &offset,
66  double pageRatio = 1.0) override;
67 
80  virtual void call(Array<IPoint> &box,
81  Array<IPoint> &offset,
82  double pageRatio = 1.0) override;
83 
84 private:
85  template<class POINT>
86  static void callGeneric(Array<POINT> &box,
87  Array<POINT> &offset,
88  double pageRatio);
89 
90  template<class POINT>
91  static int findBestRow(Array<RowInfo<POINT> > &row,
92  int nRows,
93  double pageRatio,
94  const POINT &rect);
95 };
96 
97 
98 } // end namespace ogdf
The parameterized class Array implements dynamic arrays of type E.
Definition: Array.h:56
#define OGDF_EXPORT
Specifies that a function or class is exported by the OGDF DLL.
Definition: config.h:99
TileToRowsCCPacker()
Creates an instance of tile-to-rows packer.
The tile-to-rows algorithm for packing drawings of connected components.
Base class of algorithms that arrange/pack layouts of connected components.
The namespace for all OGDF objects.
Declaration of interface for algorithms that arrange/pack layouts of connected components.