Loading [MathJax]/extensions/tex2jax.js

Open
Graph Drawing
Framework

 v. 2023.09 (Elderberry)
 

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Loading...
Searching...
No Matches
CCLayoutPackModule.h
Go to the documentation of this file.
1
33#pragma once
34
36
37namespace ogdf {
38
39
47public:
50
51 virtual ~CCLayoutPackModule() { }
52
68 virtual void call(Array<DPoint>& box, Array<DPoint>& offset, double pageRatio = 1.0) = 0;
69
82 void operator()(Array<DPoint>& box, Array<DPoint>& offset, double pageRatio = 1.0) {
83 call(box, offset, pageRatio);
84 }
85
101 virtual void call(Array<IPoint>& box, Array<IPoint>& offset, double pageRatio = 1.0) = 0;
102
115 void operator()(Array<IPoint>& box, Array<IPoint>& offset, double pageRatio = 1.0) {
116 call(box, offset, pageRatio);
117 }
118
127 static bool checkOffsets(const Array<DPoint>& box, const Array<DPoint>& offset);
128
137 static bool checkOffsets(const Array<IPoint>& box, const Array<IPoint>& offset);
138
139
141
142private:
150 template<class POINT>
151 static bool checkOffsetsTP(const Array<POINT>& box, const Array<POINT>& offset);
152};
153
154}
Declaration of class GraphAttributes which extends a Graph by additional attributes.
The parameterized class Array implements dynamic arrays of type E.
Definition Array.h:214
Base class of algorithms that arrange/pack layouts of connected components.
virtual void call(Array< DPoint > &box, Array< DPoint > &offset, double pageRatio=1.0)=0
Arranges the rectangles given by box.
static bool checkOffsets(const Array< IPoint > &box, const Array< IPoint > &offset)
Checks if the rectangles in box do not overlap for given offsets.
virtual void call(Array< IPoint > &box, Array< IPoint > &offset, double pageRatio=1.0)=0
Arranges the rectangles given by box.
static bool checkOffsets(const Array< DPoint > &box, const Array< DPoint > &offset)
Checks if the rectangles in box do not overlap for given offsets.
CCLayoutPackModule()
Initializes a layout packing module.
void operator()(Array< DPoint > &box, Array< DPoint > &offset, double pageRatio=1.0)
Arranges the rectangles given by box.
static bool checkOffsetsTP(const Array< POINT > &box, const Array< POINT > &offset)
Checks if the rectangles in box do not overlap for given offsets.
void operator()(Array< IPoint > &box, Array< IPoint > &offset, double pageRatio=1.0)
Arranges the rectangles given by box.
#define OGDF_EXPORT
Specifies that a function or class is exported by the OGDF DLL.
Definition config.h:101
#define OGDF_MALLOC_NEW_DELETE
Makes the class use malloc for memory allocation.
Definition memory.h:91
static MultilevelBuilder * getDoubleFactoredZeroAdjustedMerger()
The namespace for all OGDF objects.