17#ifndef __H__UG__PLUGINS__D3F__BOXUNIONS__
18#define __H__UG__PLUGINS__D3F__BOXUNIONS__
115 if (t->pnt_inside (x, y))
140 if (t->
ident == ident)
parameterString s
Definition Biogas.lua:2
Definition boxunions.h:38
number dy_half
y-size of the boxes / 2
Definition boxunions.h:44
void append(number x, number y)
appends a point at the end of the list
Definition boxunions.cpp:26
std::vector< MathVector< 2 > > end_corner
right corners of the boxes
Definition boxunions.h:46
int ident
identifier of the union
Definition boxunions.h:41
size_t dir
direction (0 = x, 1 = y, otherwise none)
Definition boxunions.h:42
t_box_union_item(int the_id, size_t the_dir, number the_dx, number the_dy, number x, number y, t_box_union_item *the_tl=NULL)
constructor: we need at least one point
Definition boxunions.h:50
bool pnt_inside(number x, number y) const
checks whether a point is in the union
Definition boxunions.cpp:49
number dx_half
x-size of the boxes / 2
Definition boxunions.h:43
std::vector< MathVector< 2 > > beg_corner
left corners of the boxes
Definition boxunions.h:45
t_box_union_item * tl
next union
Definition boxunions.h:40
Definition boxunions.h:35
number m_dy
y-size of the boxes
Definition boxunions.h:151
t_box_union_item * union_by_id(int ident) const
gets a union by id
Definition boxunions.h:136
void set_grid_sizes(size_t dir, number dx, number dy)
sets the grid sizes and the agglomeration direction
Definition boxunions.h:91
bool get_id_by_pnt(number x, number y, int &ident) const
checks, in which union (x, y) is (if in any)
Definition boxunions.h:112
void load_points_from(const char *file_name)
loads point and union descriptsions from a file
Definition boxunions.cpp:98
size_t m_dir
direction of the agglomeration (0 = x, 1 = y, otherwise none)
Definition boxunions.h:149
number m_dx
x-size of the boxes
Definition boxunions.h:150
UnionsOfBoxes()
class constructor
Definition boxunions.h:73
~UnionsOfBoxes()
class destructor
Definition boxunions.h:78
void append_point(number x, number y, int ident)
appends a point to an existing union, or creates a new union
Definition boxunions.h:102
t_box_union_item * m_box_unions
unions
Definition boxunions.h:152
int get_id_by_pnt_dv(number x, number y, int dv) const
returns the union id, where (x, y) is, or a given default value
Definition boxunions.h:124