Open
Graph Drawing
Framework

 v. 2020.02 (Catalpa)
 

TileToRowsCCPacker.h
Go to the documentation of this file.
1 
32 #pragma once
33 
35 
36 namespace ogdf {
37 
38 
41 {
42  template<class POINT> struct RowInfo;
43 
44 public:
47 
48  virtual ~TileToRowsCCPacker() { }
49 
62  virtual void call(Array<DPoint> &box,
63  Array<DPoint> &offset,
64  double pageRatio = 1.0) override;
65 
78  virtual void call(Array<IPoint> &box,
79  Array<IPoint> &offset,
80  double pageRatio = 1.0) override;
81 
82 private:
83  template<class POINT>
84  static void callGeneric(Array<POINT> &box,
85  Array<POINT> &offset,
86  double pageRatio);
87 
88  template<class POINT>
89  static int findBestRow(Array<RowInfo<POINT> > &row,
90  int nRows,
91  double pageRatio,
92  const POINT &rect);
93 };
94 
95 }
The parameterized class Array implements dynamic arrays of type E.
Definition: Array.h:200
#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.