#include "geoslib_old_f.h"#include "Basic/Utilities.hpp"#include "Db/Db.hpp"#include "Db/DbGrid.hpp"#include "Basic/String.hpp"#include "Basic/Memory.hpp"#include <string.h>Classes | |
| struct | SPIMG |
Functions | |
| static double | st_htop_evaluate () |
| static void | st_get_coordinates (const double *pt_out, int *ix, int *iy, SPIMG *image=SPIMG_OUT, bool flag_center=false) |
| static void | st_dump (bool flagMain, const String &title, double *pt_out, SPIMG *image) |
| static void | st_blank_center (SPIMG *image) |
| static void | st_copy_center (int mode, int iatt, SPIMG *image, double defval) |
| static void | st_extract_center (SPIMG *image, int iatt) |
| static void | st_change (double *pt_out, double value) |
| static void | st_convert (double hspill) |
| static SPIMG * | st_image_free (SPIMG *image) |
| static SPIMG * | st_image_alloc (double value) |
| static void | st_heap_add (double *p) |
| static double * | st_heap_del (void) |
| static int | st_traite (double *pt_out, double *pt_vois) |
| static void | st_print () |
| static void | st_final_stats (double hspill, int ix0, int iy0) |
| int | spill_point (DbGrid *dbgrid, int ind_depth, int ind_data, int option, bool flag_up, int verbose_step, double hmax, double *h, const double *th, int *ix0, int *iy0) |
Variables | |
| static int | SX |
| static int | SY |
| static int | TX |
| static int | TY |
| static int | TXY |
| static int | SXY |
| static int | STEP = 0 |
| static int | Hsize = 0 |
| static double ** | Heap |
| static double | HMAX |
| static double | HINIT |
| static double | HTOP |
| static double | BIGVAL |
| static int | Offset_mark_out |
| static int | Offset_out_in |
| static int | SIGNE |
| static int | OPTION |
| static int | VERBOSE_STEP |
| static DbGrid * | DB |
| static SPIMG * | SPIMG_OUT = nullptr |
| static SPIMG * | SPIMG_IN = nullptr |
| static SPIMG * | SPIMG_MARK = nullptr |
| static double * | PT_SPILL = nullptr |
| int spill_point | ( | DbGrid * | dbgrid, |
| int | ind_depth, | ||
| int | ind_data, | ||
| int | option, | ||
| bool | flag_up, | ||
| int | verbose_step, | ||
| double | hmax, | ||
| double * | h, | ||
| const double * | th, | ||
| int * | ix0, | ||
| int * | iy0 | ||
| ) |
Evaluates the spill point
| [in] | dbgrid | Grid Db structure |
| [in] | ind_depth | Rank of the variable containing the depth |
| [in] | ind_data | Rank of the variable containing the data |
| [in] | option | 0 for 4-connectivity; 1 for 8-connectivity |
| [in] | flag_up | TRUE when working in elevation; 0 in depth |
| [in] | verbose_step | Step for verbose flag |
| [in] | hmax | maximum reservoir thickness (FFFF not used) |
| [out] | h | elevation of the spill point |
| [out] | th | maximum reservoir thickness |
| [out] | ix0 | location of the spill point grid node along X |
| [out] | iy0 | location of the spill point grid node along Y |
|
static |
Blanks the center of the image
| [in,out] | image | SPIMG structure to be initialized |
|
static |
|
static |
Converts the final image into the following codes: SURFACE_INSIDE, SURFACE_OUTSIDE, SURFACE_BELOW or SURFACE_UNKNOWN
| [in] | hspill | spill elevation |
|
static |
Loads the center of the image from an input array
| [in] | mode | Type of information
|
| [in] | iatt | Rank of the attribute |
| [in] | defval | Default value |
| [in,out] | image | SPIMG structure to be initialized |
Prints the current output flag array
| [in] | flagMain | TRUE if it is called from a main level |
| [in] | title | Title for the dump (main level) |
| [in] | pt_out | Designation of the target node in 'out' (if provided) |
| [in] | image | Image containing the information to be displayed |
|
static |
Extracts an output array from the the center of the image
| [in] | image | SPIMG structure |
| [out] | iatt | Rank of the output attribute |
|
static |
|
static |
Returns the coordinates of a point, given its pointer in 'out'
| [in] | pt_out | Address in the image |
| [in] | image | IMAGE structure |
| [in] | flag_center | When TRUE, coordinates are epressed in central image |
| [out] | ix | Location of the spill point grid node along X |
| [out] | iy | Location of the spill point grid node along Y |
|
static |
Add an element to the Heap Sort Pile
| [in] | p | pointer to the element to be added |
|
static |
Return the first element of the Heap Sort Pile and delete it
|
static |
Evaluates the highest elevation within the reservoir
|
static |
Procedure to allocates a NEW image The bitmap of the new image is set to zero
| [in] | value | conventional value for initialization |
Procedure to free an already existig image
| [in] | image | pointer to the image to be freed |
|
static |
|
static |
Checks if a current element can be processed according to its neighborhood status
| [in] | pt_out | pointer to the current element |
| [in] | pt_vois | pointer to the neighboring element |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |