Open
Graph Drawing
Framework

 v. 2023.09 (Elderberry)
 

Loading...
Searching...
No Matches
PackingRowInfo.h
Go to the documentation of this file.
1
32#pragma once
33
34#include <ogdf/basic/basic.h>
35
36namespace ogdf {
37namespace energybased {
38namespace fmmm {
39
43 friend std::ostream& operator<<(std::ostream& output, const PackingRowInfo& A) {
44 output << " max_height " << A.max_height << " total_width " << A.total_width
45 << " row_index " << A.row_index;
46 return output;
47 }
48
50 friend std::istream& operator>>(std::istream& input, PackingRowInfo& A) {
51 input >> A.max_height >> A.total_width >> A.row_index;
52 return input;
53 }
54
55public:
57 {
58 total_width = 0;
59 max_height = 0;
60 row_index = 0;
61 }
62
63 void set_max_height(double h) { max_height = h; }
64
65 void set_total_width(double w) { total_width = w; }
66
67 void set_row_index(int i) { row_index = i; }
68
69 double get_max_height() { return max_height; }
70
71 double get_total_width() { return total_width; }
72
73 int get_row_index() { return row_index; }
74
75private:
76 double max_height;
77 double total_width;
79};
80
81}
82}
83}
Basic declarations, included by all source files.
Helping data structure for MAARPacking.
friend std::istream & operator>>(std::istream &input, PackingRowInfo &A)
Inputstream for PackingRowInfo.
int row_index
the index of the row (first row in packing has index 0)
friend std::ostream & operator<<(std::ostream &output, const PackingRowInfo &A)
Outputstream for PackingRowInfo.
double total_width
the sum of the width of all rectsngles in this row
double max_height
the maximum height of a rectangle placed in this row
static MultilevelBuilder * getDoubleFactoredZeroAdjustedMerger()
The namespace for all OGDF objects.