![]() |
UNIVERS
15.3
UNIVERS base processing software API
|
#include <u3d_abstract_prgrid2d.hpp>
Classes | |
| struct | Area3d |
| struct | GridCell |
Public Types | |
| typedef std::vector< GridCell > | GridLine |
| typedef std::vector< GridLine > | GridMatrix |
Public Member Functions | |
| U3dAbstractPRGrid2d () | |
| U3dAbstractPRGrid2d (const U3dPointsAr &points, double g_step, U3dBox *area=NULL) | |
| U3dAbstractPRGrid2d (const U3dPoints &points, double g_step, U3dBox *area=NULL) | |
| U3dAbstractPRGrid2d (const U3dPoints &points, double g_step_x, double g_step_y, U3dBox *area=NULL) | |
| U3dAbstractPRGrid2d (const U3dPointsAr &points, double g_step_x, double g_step_y, U3dBox *area=NULL) | |
| U3dAbstractPRGrid2d (const U3dAbstractPRGrid2d &obj) | |
| virtual | ~U3dAbstractPRGrid2d () |
| virtual U3dAbstractPRGrid2d * | clone () |
| virtual void | construct (const U3dPointsAr &points, double g_step, U3dBox *area=NULL) |
| virtual void | construct (const U3dPoints &points, double g_step, U3dBox *area=NULL) |
| void | setMinGridStepX (double eps) |
| void | setMinGridStepY (double eps) |
| double | getMinGridStepX () |
| double | getMinGridStepY () |
| void | getGridArea (U3dPoint &min, U3dPoint &max) |
| int | getGridXSize () const |
| int | getGridYSize () const |
| int | getGridPoint (int i, int j, U3dPoint &p) const |
| int | setGridPointZ (int i, int j, double z) |
| U3dPointsAr & | getInitialPoints () |
| virtual void | addPoint (U3dPoint *) |
| virtual bool | removePoint (int) |
Static Protected Member Functions | |
| static void | correct_id (int &id, int size) |
Protected Attributes | |
| U3dPointsAr | m_ips |
| double | minGridEpsX |
| double | minGridEpsY |
| std::vector< double > | m_grd_x |
| std::vector< double > | m_grd_y |
| GridMatrix | m_grid |
| Area3d | m_area3d |
Pseudoregular 2D grid interface
| typedef std::vector<GridCell> U3dAbstractPRGrid2d::GridLine |
Grid cell line
| typedef std::vector<GridLine> U3dAbstractPRGrid2d::GridMatrix |
Grid cell matrix
| U3dAbstractPRGrid2d::U3dAbstractPRGrid2d | ( | ) |
Default constructor, object is empty
| U3dAbstractPRGrid2d::U3dAbstractPRGrid2d | ( | const U3dPointsAr & | points, |
| double | g_step, | ||
| U3dBox * | area = NULL |
||
| ) |
Default constructor with points and minimal grid step value provided. Area is provided for grid applicable domain definition, if not defined => domain calculates from initial points.
| U3dAbstractPRGrid2d::U3dAbstractPRGrid2d | ( | const U3dAbstractPRGrid2d & | obj | ) |
Copy constructor
|
virtual |
Destruct object
|
inlinevirtual |
Add one initial point. JUST DO IT !!!
|
virtual |
Return new initialized own pointer
|
virtual |
Construct grid for provided initial points and minimal grid step value provided. Area is provided for grid applicable domain definition, if not defined => domain calculates from initial points
|
inlinestaticprotected |
Correct index value in case of its array size
Get current grid area sizes
| int U3dAbstractPRGrid2d::getGridPoint | ( | int | i, |
| int | j, | ||
| U3dPoint & | p | ||
| ) | const |
Return point associated with grid. This function returns type of point: initial is 1, otherwise 0. If indexies are out of range this will return boundary values. Nothing for point if object is empty (return -1)
|
inline |
Return number of x-coordinate grid elements
|
inline |
Return number of y-coordinate grid elements
|
inline |
Get array of initial points
|
inline |
Return minimal distance between points lines when they will be in different grid rows or colse
|
inlinevirtual |
Remove initial points with index ind. If no such point return false, otherwise return true. JUST DO IT !!!
|
inline |
Set minimal distance between points lines when they will be in different grid rows or colse
|
protected |
Current xyz area
|
protected |
Grid x and y coordinates vectors
|
protected |
Pseudoregular grid matrix
|
protected |
Array of initial points
|
protected |
Minimal distance between points lines when they will be in different grid rows or cols
1.8.5