Open
Graph Drawing
Framework

 v. 2022.02 (Dogwood)
 

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 }
ogdf
The namespace for all OGDF objects.
Definition: AugmentationModule.h:36
ogdf::CCLayoutPackModule
Base class of algorithms that arrange/pack layouts of connected components.
Definition: CCLayoutPackModule.h:48
ogdf::TileToRowsCCPacker::TileToRowsCCPacker
TileToRowsCCPacker()
Creates an instance of tile-to-rows packer.
Definition: TileToRowsCCPacker.h:46
ogdf::TileToRowsCCPacker::~TileToRowsCCPacker
virtual ~TileToRowsCCPacker()
Definition: TileToRowsCCPacker.h:48
ogdf::Array
The parameterized class Array implements dynamic arrays of type E.
Definition: Array.h:204
CCLayoutPackModule.h
Declaration of interface for algorithms that arrange/pack layouts of connected components.
OGDF_EXPORT
#define OGDF_EXPORT
Specifies that a function or class is exported by the OGDF DLL.
Definition: config.h:99
ogdf::TileToRowsCCPacker::RowInfo
Definition: TileToRowsCCPacker.h:42
ogdf::TileToRowsCCPacker
The tile-to-rows algorithm for packing drawings of connected components.
Definition: TileToRowsCCPacker.h:40