#include <Geometry/GeometryHelper.hpp>
#include "geoslib_f.h"
#include "geoslib_old_f.h"
#include "geoslib_f_private.h"
#include "LithoRule/Rule.hpp"
#include "Basic/Law.hpp"
#include "Basic/AException.hpp"
#include "Basic/Utilities.hpp"
#include "Basic/File.hpp"
#include "Basic/String.hpp"
#include "Basic/OptDbg.hpp"
#include "Basic/PolyLine2D.hpp"
#include "Space/ASpaceObject.hpp"
#include "Space/ASpace.hpp"
#include "Space/SpaceSN.hpp"
#include <string.h>
#include <complex>
#include <cmath>
#include <regex>
Classes | |
struct | Keypair |
struct | Projec_Environ |
struct | Dim_Loop |
Functions | |
void | projec_toggle (int mode) |
void | projec_query (int *actif) |
void | projec_print (void) |
void | set_keypair (const char *keyword, int origin, int nrow, int ncol, const double *values) |
void | app_keypair (const char *keyword, int origin, int nrow, int ncol, double *values) |
void | set_keypair_int (const char *keyword, int origin, int nrow, int ncol, int *values) |
void | app_keypair_int (const char *keyword, int origin, int nrow, int ncol, int *values) |
void | del_keypair (const char *keyword, int flag_exact) |
double | get_keypone (const char *keyword, double valdef) |
int | get_keypair (const char *keyword, int *nrow, int *ncol, double **values) |
int | get_keypair_int (const char *keyword, int *nrow, int *ncol, int **values) |
void | print_keypair (int flag_short) |
int | solve_P2 (double a, double b, double c, double *x) |
int | solve_P3 (double a, double b, double c, double d, double *x) |
double | ut_distance (int ndim, const double *tab1, const double *tab2) |
void | ut_distance_allocated (int ndim, double **tab1, double **tab2) |
VectorDouble | util_set_array_double (int ntab, const double *rtab) |
VectorInt | util_set_array_integer (int ntab, const int *itab) |
VectorString | util_set_array_char (int ntab, char **names) |
void | set_last_message (int mode, const char *string) |
void | print_last_message (void) |
int * | ut_split_into_two (int ncolor, int flag_half, int verbose, int *nposs) |
char * | convert (const std::string &s) |
std::vector< char * > | util_vs_to_vs (VectorString vs) |
void app_keypair | ( | const char * | keyword, |
int | origin, | ||
int | nrow, | ||
int | ncol, | ||
double * | values | ||
) |
Deposit a keypair (double values) - Append to existing array
[in] | keyword | Keyword |
[in] | origin | 1 from C; 2 from R |
[in] | nrow | Number of rows |
[in] | ncol | Number of columns |
[in] | values | Array of values (Dimension: nrow * ncol) |
void app_keypair_int | ( | const char * | keyword, |
int | origin, | ||
int | nrow, | ||
int | ncol, | ||
int * | values | ||
) |
Deposit a keypair (doubleinteger values) - Append to existing array
[in] | keyword | Keyword |
[in] | origin | 1 from C; 2 from R |
[in] | nrow | Number of rows |
[in] | ncol | Number of columns |
[in] | values | Array of values (Dimension: nrow * ncol) |
char* convert | ( | const std::string & | s | ) |
Convert std::string into a char *
[in] | s | Input VectorString |
void del_keypair | ( | const char * | keyword, |
int | flag_exact | ||
) |
Delete a keypair
[in] | keyword | Keyword to be deleted |
[in] | flag_exact | 1 if Exact keyword matching is required |
int get_keypair | ( | const char * | keyword, |
int * | nrow, | ||
int * | ncol, | ||
double ** | values | ||
) |
Inquiry the keypair
[in] | keyword | Keyword |
[out] | nrow | Number of rows |
[out] | ncol | Number of columns |
[out] | values | Array of values attached to the keyword |
int get_keypair_int | ( | const char * | keyword, |
int * | nrow, | ||
int * | ncol, | ||
int ** | values | ||
) |
Inquiry the keypair (integer values)
[in] | keyword | Keyword |
[out] | nrow | Number of rows |
[out] | ncol | Number of columns |
[out] | values | Array of values attached to the keyword |
double get_keypone | ( | const char * | keyword, |
double | valdef | ||
) |
Inquiry the keypair (for a single value)
[in] | keyword | Keyword |
[in] | valdef | Factory setting value |
void print_keypair | ( | int | flag_short | ) |
Print the list of keypairs
[in] | flag_short | 1 for a short output |
void print_last_message | ( | void | ) |
Print the array of last messages
void projec_print | ( | void | ) |
Print the characteristics of the projection
void projec_query | ( | int * | actif | ) |
Returns the projection characteristics
[out] | actif | activity flag |
void projec_toggle | ( | int | mode | ) |
Toggle the status of the Projection flag
[in] | mode | Toggle of the projection flag
|
void set_keypair | ( | const char * | keyword, |
int | origin, | ||
int | nrow, | ||
int | ncol, | ||
const double * | values | ||
) |
Deposit a keypair (double values)
[in] | keyword | Keyword |
[in] | origin | 1 from C; 2 from R |
[in] | nrow | Number of rows |
[in] | ncol | Number of columns |
[in] | values | Array of values (Dimension: nrow * ncol) |
void set_keypair_int | ( | const char * | keyword, |
int | origin, | ||
int | nrow, | ||
int | ncol, | ||
int * | values | ||
) |
Deposit a keypair (integer values)
[in] | keyword | Keyword |
[in] | origin | 1 from C; 2 from R |
[in] | nrow | Number of rows |
[in] | ncol | Number of columns |
[in] | values | Array of values (Dimension: nrow * ncol) |
void set_last_message | ( | int | mode, |
const char * | string | ||
) |
Deposit a last message
[in] | mode | Type of operation 0 to empty the array of messages 1 to add the string to the array of messages -1 to concatenate the string to the last message |
[in] | string | Current string |
int solve_P2 | ( | double | a, |
double | b, | ||
double | c, | ||
double * | x | ||
) |
Find the roots of a polynomial of order 2: ax^2 + bx + c = 0
[in] | a,b,c | Coefficients of the polynomial |
[out] | x | Array of real solutions (Dimension: 2) |
int solve_P3 | ( | double | a, |
double | b, | ||
double | c, | ||
double | d, | ||
double * | x | ||
) |
Find the roots of a polynomial of order 3: a*x^3 + b*x^2 + c*x + d = 0
[in] | a,b,c,d | Coefficients of the polynomial |
[out] | x | Array of real solutions (Dimension: 3) |
double ut_distance | ( | int | ndim, |
const double * | tab1, | ||
const double * | tab2 | ||
) |
void ut_distance_allocated | ( | int | ndim, |
double ** | tab1, | ||
double ** | tab2 | ||
) |
Allocate the necessary arrays for calculating distances using already allocated arrays
[in] | ndim | Space dimension |
[out] | tab1 | Array for coordinates of first sample |
[out] | tab2 | Array for coordinates of second sample |
int* ut_split_into_two | ( | int | ncolor, |
int | flag_half, | ||
int | verbose, | ||
int * | nposs | ||
) |
Return all the ways to split ncolor into two non-empty subsets
[in] | ncolor | Number of colors |
[in] | flag_half | 1 if only half of possibilities must be envisaged |
[in] | verbose | 1 for a verbose option |
[out] | nposs | Number of possibilities |
VectorString util_set_array_char | ( | int | ntab, |
char ** | names | ||
) |
Create a VectorString for storing an array of chars
[in] | ntab | Number of samples |
[in] | names | Array of character values to be loaded |
VectorDouble util_set_array_double | ( | int | ntab, |
const double * | rtab | ||
) |
Create a VectorDouble for storing an array of double
[in] | ntab | Number of samples |
[in] | rtab | Array of double values to be loaded |
VectorInt util_set_array_integer | ( | int | ntab, |
const int * | itab | ||
) |
Create a VectorInt for storing an array of integer
[in] | ntab | Number of samples |
[in] | itab | Array of integer values to be loaded |
std::vector<char*> util_vs_to_vs | ( | VectorString | vs | ) |
Convert VectorString into a std::vector<char *> structure
[in] | vs | Input VectorString |