Open
Graph Drawing
Framework

 v. 2023.09 (Elderberry)
 

PackingRowInfo.h
Go to the documentation of this file.
1 
32 #pragma once
33 
34 #include <ogdf/basic/basic.h>
35 
36 namespace ogdf {
37 namespace energybased {
38 namespace 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 
55 public:
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 
75 private:
76  double max_height;
77  double total_width;
78  int row_index;
79 };
80 
81 }
82 }
83 }
ogdf::energybased::fmmm::PackingRowInfo
Helping data structure for MAARPacking.
Definition: PackingRowInfo.h:41
ogdf
The namespace for all OGDF objects.
Definition: AugmentationModule.h:36
ogdf::whaType::A
@ A
ogdf::energybased::fmmm::PackingRowInfo::set_max_height
void set_max_height(double h)
Definition: PackingRowInfo.h:63
ogdf::energybased::fmmm::PackingRowInfo::max_height
double max_height
the maximum height of a rectangle placed in this row
Definition: PackingRowInfo.h:76
ogdf::energybased::fmmm::PackingRowInfo::set_row_index
void set_row_index(int i)
Definition: PackingRowInfo.h:67
ogdf::energybased::fmmm::PackingRowInfo::operator>>
friend std::istream & operator>>(std::istream &input, PackingRowInfo &A)
Inputstream for PackingRowInfo.
Definition: PackingRowInfo.h:50
ogdf::energybased::fmmm::PackingRowInfo::operator<<
friend std::ostream & operator<<(std::ostream &output, const PackingRowInfo &A)
Outputstream for PackingRowInfo.
Definition: PackingRowInfo.h:43
ogdf::energybased::fmmm::PackingRowInfo::row_index
int row_index
the index of the row (first row in packing has index 0)
Definition: PackingRowInfo.h:78
ogdf::energybased::fmmm::PackingRowInfo::PackingRowInfo
PackingRowInfo()
Definition: PackingRowInfo.h:56
ogdf::energybased::fmmm::PackingRowInfo::total_width
double total_width
the sum of the width of all rectsngles in this row
Definition: PackingRowInfo.h:77
basic.h
Basic declarations, included by all source files.
ogdf::energybased::fmmm::PackingRowInfo::set_total_width
void set_total_width(double w)
Definition: PackingRowInfo.h:65
ogdf::energybased::fmmm::PackingRowInfo::get_row_index
int get_row_index()
Definition: PackingRowInfo.h:73
ogdf::energybased::fmmm::PackingRowInfo::get_total_width
double get_total_width()
Definition: PackingRowInfo.h:71
ogdf::energybased::fmmm::PackingRowInfo::get_max_height
double get_max_height()
Definition: PackingRowInfo.h:69