Open
Graph Drawing
Framework

 v. 2022.02 (Dogwood)
 

ogdf::energybased::fmmm::Rectangle Class Reference

Helping data structure for packing rectangles; The width, height and the position of the down left corner of the tight surroundig rectangle is represented for each connected component of the graph. More...

#include <ogdf/energybased/fmmm/maar_packing/Rectangle.h>

Public Member Functions

 Rectangle ()
 
int get_component_index () const
 
double get_height () const
 
DPoint get_new_dlc_position () const
 
DPoint get_old_dlc_position () const
 
double get_width () const
 
bool is_tipped_over () const
 
void set_component_index (int comp_index)
 
void set_height (double h)
 
void set_new_dlc_position (DPoint dlc_pos)
 
void set_old_dlc_position (DPoint dlc_pos)
 
void set_rectangle (double w, double h, double old_dlc_x_pos, double old_dlc_y_pos, int comp_index)
 
void set_width (double w)
 
void tipp_over ()
 

Private Attributes

int component_index
 the index of the related connected component More...
 
double height
 height of the surround. More...
 
DPoint new_down_left_corner_position
 new calculated down left corner of ... More...
 
DPoint old_down_left_corner_position
 down left corner of the tight surround. More...
 
bool tipped_over
 indicates if this rectangle has been tipped over in the packing step More...
 
double width
 width of the surround. More...
 

Friends

std::ostream & operator<< (std::ostream &output, const Rectangle &A)
 Outputstream for Rectangle. More...
 
std::istream & operator>> (std::istream &input, Rectangle &A)
 Inputstream for Rectangle. More...
 

Detailed Description

Helping data structure for packing rectangles; The width, height and the position of the down left corner of the tight surroundig rectangle is represented for each connected component of the graph.

Definition at line 44 of file Rectangle.h.

Constructor & Destructor Documentation

◆ Rectangle()

ogdf::energybased::fmmm::Rectangle::Rectangle ( )
inline

Definition at line 67 of file Rectangle.h.

Member Function Documentation

◆ get_component_index()

int ogdf::energybased::fmmm::Rectangle::get_component_index ( ) const
inline

Definition at line 101 of file Rectangle.h.

◆ get_height()

double ogdf::energybased::fmmm::Rectangle::get_height ( ) const
inline

Definition at line 100 of file Rectangle.h.

◆ get_new_dlc_position()

DPoint ogdf::energybased::fmmm::Rectangle::get_new_dlc_position ( ) const
inline

Definition at line 98 of file Rectangle.h.

◆ get_old_dlc_position()

DPoint ogdf::energybased::fmmm::Rectangle::get_old_dlc_position ( ) const
inline

Definition at line 97 of file Rectangle.h.

◆ get_width()

double ogdf::energybased::fmmm::Rectangle::get_width ( ) const
inline

Definition at line 99 of file Rectangle.h.

◆ is_tipped_over()

bool ogdf::energybased::fmmm::Rectangle::is_tipped_over ( ) const
inline

Definition at line 102 of file Rectangle.h.

◆ set_component_index()

void ogdf::energybased::fmmm::Rectangle::set_component_index ( int  comp_index)
inline

Definition at line 94 of file Rectangle.h.

◆ set_height()

void ogdf::energybased::fmmm::Rectangle::set_height ( double  h)
inline

Definition at line 93 of file Rectangle.h.

◆ set_new_dlc_position()

void ogdf::energybased::fmmm::Rectangle::set_new_dlc_position ( DPoint  dlc_pos)
inline

Definition at line 91 of file Rectangle.h.

◆ set_old_dlc_position()

void ogdf::energybased::fmmm::Rectangle::set_old_dlc_position ( DPoint  dlc_pos)
inline

Definition at line 90 of file Rectangle.h.

◆ set_rectangle()

void ogdf::energybased::fmmm::Rectangle::set_rectangle ( double  w,
double  h,
double  old_dlc_x_pos,
double  old_dlc_y_pos,
int  comp_index 
)
inline

Definition at line 79 of file Rectangle.h.

◆ set_width()

void ogdf::energybased::fmmm::Rectangle::set_width ( double  w)
inline

Definition at line 92 of file Rectangle.h.

◆ tipp_over()

void ogdf::energybased::fmmm::Rectangle::tipp_over ( )
inline

Definition at line 95 of file Rectangle.h.

Friends And Related Function Documentation

◆ operator<<

std::ostream& operator<< ( std::ostream &  output,
const Rectangle A 
)
friend

Outputstream for Rectangle.

Definition at line 47 of file Rectangle.h.

◆ operator>>

std::istream& operator>> ( std::istream &  input,
Rectangle A 
)
friend

Inputstream for Rectangle.

Definition at line 59 of file Rectangle.h.

Member Data Documentation

◆ component_index

int ogdf::energybased::fmmm::Rectangle::component_index
private

the index of the related connected component

Definition at line 109 of file Rectangle.h.

◆ height

double ogdf::energybased::fmmm::Rectangle::height
private

height of the surround.

rect.

Definition at line 108 of file Rectangle.h.

◆ new_down_left_corner_position

DPoint ogdf::energybased::fmmm::Rectangle::new_down_left_corner_position
private

new calculated down left corner of ...

Definition at line 106 of file Rectangle.h.

◆ old_down_left_corner_position

DPoint ogdf::energybased::fmmm::Rectangle::old_down_left_corner_position
private

down left corner of the tight surround.

rect.

Definition at line 105 of file Rectangle.h.

◆ tipped_over

bool ogdf::energybased::fmmm::Rectangle::tipped_over
private

indicates if this rectangle has been tipped over in the packing step

Definition at line 110 of file Rectangle.h.

◆ width

double ogdf::energybased::fmmm::Rectangle::width
private

width of the surround.

rect.

Definition at line 107 of file Rectangle.h.


The documentation for this class was generated from the following file: