Open
Graph Drawing
Framework

 v. 2023.09 (Elderberry)
 

CCLayoutPackModule.h
Go to the documentation of this file.
1 
33 #pragma once
34 
36 
37 namespace ogdf {
38 
39 
47 public:
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 
142 private:
150  template<class POINT>
151  static bool checkOffsetsTP(const Array<POINT>& box, const Array<POINT>& offset);
152 };
153 
154 }
ogdf
The namespace for all OGDF objects.
Definition: AugmentationModule.h:36
GraphAttributes.h
Declaration of class GraphAttributes which extends a Graph by additional attributes.
ogdf::CCLayoutPackModule
Base class of algorithms that arrange/pack layouts of connected components.
Definition: CCLayoutPackModule.h:46
OGDF_MALLOC_NEW_DELETE
#define OGDF_MALLOC_NEW_DELETE
Makes the class use malloc for memory allocation.
Definition: memory.h:91
ogdf::CCLayoutPackModule::CCLayoutPackModule
CCLayoutPackModule()
Initializes a layout packing module.
Definition: CCLayoutPackModule.h:49
ogdf::Array
The parameterized class Array implements dynamic arrays of type E.
Definition: Array.h:214
ogdf::CCLayoutPackModule::operator()
void operator()(Array< DPoint > &box, Array< DPoint > &offset, double pageRatio=1.0)
Arranges the rectangles given by box.
Definition: CCLayoutPackModule.h:82
ogdf::CCLayoutPackModule::operator()
void operator()(Array< IPoint > &box, Array< IPoint > &offset, double pageRatio=1.0)
Arranges the rectangles given by box.
Definition: CCLayoutPackModule.h:115
OGDF_EXPORT
#define OGDF_EXPORT
Specifies that a function or class is exported by the OGDF DLL.
Definition: config.h:101
ogdf::CCLayoutPackModule::~CCLayoutPackModule
virtual ~CCLayoutPackModule()
Definition: CCLayoutPackModule.h:51