Open
Graph Drawing
Framework

 v. 2023.09 (Elderberry)
 

Loading...
Searching...
No Matches
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
39namespace ogdf {
40
41
44 template<class POINT>
45 struct RowInfo;
46
47public:
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
81private:
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}
Declaration and implementation of Array class and Array algorithms.
Declaration of interface for algorithms that arrange/pack layouts of connected components.
Declaration of classes GenericPoint, GenericPolyline, GenericLine, GenericSegment,...
Basic declarations, included by all source files.
The parameterized class Array implements dynamic arrays of type E.
Definition Array.h:219
Base class of algorithms that arrange/pack layouts of connected components.
The tile-to-rows algorithm for packing drawings of connected components.
virtual void call(Array< DPoint > &box, Array< DPoint > &offset, double pageRatio=1.0) override
Arranges the rectangles given by box.
static void callGeneric(Array< POINT > &box, Array< POINT > &offset, double pageRatio)
static int findBestRow(Array< RowInfo< POINT > > &row, int nRows, double pageRatio, const POINT &rect)
TileToRowsCCPacker()
Creates an instance of tile-to-rows packer.
virtual void call(Array< IPoint > &box, Array< IPoint > &offset, double pageRatio=1.0) override
Arranges the rectangles given by box.
#define OGDF_EXPORT
Specifies that a function or class is exported by the OGDF dynamic library (shared object / DLL),...
Definition config.h:117
The namespace for all OGDF objects.