Open
Graph Drawing
Framework

 v. 2023.09 (Elderberry)
 

TileToRowsCCPacker.h
Go to the documentation of this file.
1 
32 #pragma once
33 
35 
36 namespace ogdf {
37 
38 
41  template<class POINT>
42  struct RowInfo;
43 
44 public:
47 
48  virtual ~TileToRowsCCPacker() { }
49 
62  virtual void call(Array<DPoint>& box, Array<DPoint>& offset, double pageRatio = 1.0) override;
63 
76  virtual void call(Array<IPoint>& box, Array<IPoint>& offset, double pageRatio = 1.0) override;
77 
78 private:
79  template<class POINT>
80  static void callGeneric(Array<POINT>& box, Array<POINT>& offset, double pageRatio);
81 
82  template<class POINT>
83  static int findBestRow(Array<RowInfo<POINT>>& row, int nRows, double pageRatio,
84  const POINT& rect);
85 };
86 
87 }
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:46
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:214
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:101
ogdf::TileToRowsCCPacker::RowInfo
Definition: TileToRowsCCPacker.h:42
ogdf::TileToRowsCCPacker
The tile-to-rows algorithm for packing drawings of connected components.
Definition: TileToRowsCCPacker.h:40