|
Plugins
|
#include <boxunions.h>
Classes | |
| class | t_box_union_item |
Public Member Functions | |
| void | append_point (number x, number y, int ident) |
| appends a point to an existing union, or creates a new union | |
| bool | get_id_by_pnt (number x, number y, int &ident) const |
| checks, in which union (x, y) is (if in any) | |
| 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 | |
| void | load_points_from (const char *file_name) |
| loads point and union descriptsions from a file | |
| void | set_grid_sizes (size_t dir, number dx, number dy) |
| sets the grid sizes and the agglomeration direction | |
| UnionsOfBoxes () | |
| class constructor | |
| ~UnionsOfBoxes () | |
| class destructor | |
Private Member Functions | |
| void | load_points_from (std::istream &input) |
| loads points and union descriptsions from a stream | |
| t_box_union_item * | union_by_id (int ident) const |
| gets a union by id | |
Private Attributes | |
| t_box_union_item * | m_box_unions |
| unions | |
| size_t | m_dir |
| direction of the agglomeration (0 = x, 1 = y, otherwise none) | |
| number | m_dx |
| x-size of the boxes | |
| number | m_dy |
| y-size of the boxes | |
This class provides a facility to inquire, in which of given union of boxes a given point lyes. The class keeps a list of the unions identified by integers.
|
inline |
class constructor
|
inline |
class destructor
References m_box_unions, s, and ug::d3f::UnionsOfBoxes::t_box_union_item::tl.
appends a point to an existing union, or creates a new union
References ug::d3f::UnionsOfBoxes::t_box_union_item::append(), m_box_unions, m_dir, m_dx, m_dy, and union_by_id().
Referenced by ug::d3f::Functionality::Common(), and load_points_from().
checks, in which union (x, y) is (if in any)
References m_box_unions, and ug::d3f::UnionsOfBoxes::t_box_union_item::tl.
Referenced by get_id_by_pnt_dv().
returns the union id, where (x, y) is, or a given default value
References get_id_by_pnt().
Referenced by ug::d3f::Functionality::Common().
| void ug::d3f::UnionsOfBoxes::load_points_from | ( | const char * | file_name | ) |
loads point and union descriptsions from a file
Loads polygon corners and id's from a given file.
References ug::FindFileInStandardPaths(), load_points_from(), and UG_COND_THROW.
Referenced by ug::d3f::Functionality::Common(), and load_points_from().
|
private |
loads points and union descriptsions from a stream
Loads polygon corners and id's from a given stream.
References append_point(), and UG_THROW.
sets the grid sizes and the agglomeration direction
| dir | direction of the agglomeration (0 = x, 1 = y, otherwise none) |
| dx | x-size of the boxes |
| dy | y-size of the boxes |
References m_dir, m_dx, and m_dy.
Referenced by ug::d3f::Functionality::Common().
|
inlineprivate |
gets a union by id
References ug::d3f::UnionsOfBoxes::t_box_union_item::ident, m_box_unions, and ug::d3f::UnionsOfBoxes::t_box_union_item::tl.
Referenced by append_point().
|
private |
unions
Referenced by append_point(), get_id_by_pnt(), union_by_id(), and ~UnionsOfBoxes().
|
private |
direction of the agglomeration (0 = x, 1 = y, otherwise none)
Referenced by append_point(), and set_grid_sizes().
|
private |
x-size of the boxes
Referenced by append_point(), and set_grid_sizes().
|
private |
y-size of the boxes
Referenced by append_point(), and set_grid_sizes().