38 VIZ_GEOREF_SPLINE_ZERO_POINTS,
39 VIZ_GEOREF_SPLINE_ONE_POINT,
40 VIZ_GEOREF_SPLINE_TWO_POINTS,
41 VIZ_GEOREF_SPLINE_ONE_DIMENSIONAL,
42 VIZ_GEOREF_SPLINE_FULL,
44 VIZ_GEOREF_SPLINE_POINT_WAS_ADDED,
45 VIZ_GEOREF_SPLINE_POINT_WAS_DELETED
50 #define VIZGEOREF_MAX_VARS 2
58 unused = index = NULL;
59 for(
int i = 0; i < nof_vars; i++ )
73 type = VIZ_GEOREF_SPLINE_ZERO_POINTS;
87 for(
int i = 0; i < _nof_vars; i++ )
98 void set_toler(
double tx,
double ty ){
103 void get_toler(
double& tx,
double& ty) {
108 vizGeorefInterType get_interpolation_type ( ){
112 void dump_data_points()
114 for (
int i = 0; i < _nof_points; i++ )
116 fprintf(stderr,
"X = %f Y = %f Vars = ", x[i], y[i]);
117 for (
int v = 0; v < _nof_vars; v++ )
118 fprintf(stderr,
"%f ", rhs[v][i+3]);
119 fprintf(stderr,
"\n");
125 type = VIZ_GEOREF_SPLINE_ZERO_POINTS;
140 int add_point(
const double Px,
const double Py,
const double *Pvars );
141 int delete_point(
const double Px,
const double Py );
142 int get_point(
const double Px,
const double Py,
double *Pvars );
143 bool get_xy(
int index,
double& x,
double& y);
144 bool change_point(
int index,
double x,
double y,
double* Pvars);
145 void reset(
void) { _nof_points = 0; }
149 double base_func(
const double x1,
const double y1,
150 const double x2,
const double y2 );
152 vizGeorefInterType type;
168 double *rhs[VIZGEOREF_MAX_VARS];
169 double *coef[VIZGEOREF_MAX_VARS];