Open
Graph Drawing
Framework

 v. 2023.09 (Elderberry)
 

TileToRowsCCPacker.h
Go to the documentation of this file.
1 
32 #pragma once
33 
34 #include <ogdf/basic/Array.h>
35 #include <ogdf/basic/basic.h>
36 #include <ogdf/basic/geometry.h>
38 
39 namespace ogdf {
40 
41 
44  template<class POINT>
45  struct RowInfo;
46 
47 public:
50 
51  virtual ~TileToRowsCCPacker() { }
52 
65  virtual void call(Array<DPoint>& box, Array<DPoint>& offset, double pageRatio = 1.0) override;
66 
79  virtual void call(Array<IPoint>& box, Array<IPoint>& offset, double pageRatio = 1.0) override;
80 
81 private:
82  template<class POINT>
83  static void callGeneric(Array<POINT>& box, Array<POINT>& offset, double pageRatio);
84 
85  template<class POINT>
86  static int findBestRow(Array<RowInfo<POINT>>& row, int nRows, double pageRatio,
87  const POINT& rect);
88 };
89 
90 }
ogdf
The namespace for all OGDF objects.
Definition: multilevelmixer.cpp:39
geometry.h
Declaration of classes GenericPoint, GenericPolyline, GenericLine, GenericSegment,...
ogdf::CCLayoutPackModule
Base class of algorithms that arrange/pack layouts of connected components.
Definition: CCLayoutPackModule.h:49
ogdf::TileToRowsCCPacker::TileToRowsCCPacker
TileToRowsCCPacker()
Creates an instance of tile-to-rows packer.
Definition: TileToRowsCCPacker.h:49
ogdf::TileToRowsCCPacker::~TileToRowsCCPacker
virtual ~TileToRowsCCPacker()
Definition: TileToRowsCCPacker.h:51
ogdf::Array
The parameterized class Array implements dynamic arrays of type E.
Definition: Array.h:219
CCLayoutPackModule.h
Declaration of interface for algorithms that arrange/pack layouts of connected components.
basic.h
Basic declarations, included by all source files.
OGDF_EXPORT
#define OGDF_EXPORT
Specifies that a function or class is exported by the OGDF DLL.
Definition: config.h:101
Array.h
Declaration and implementation of Array class and Array algorithms.
ogdf::TileToRowsCCPacker::RowInfo
Definition: TileToRowsCCPacker.h:45
ogdf::TileToRowsCCPacker
The tile-to-rows algorithm for packing drawings of connected components.
Definition: TileToRowsCCPacker.h:43