TheBoussinesqModel
3.2.1
|
Go to the source code of this file.
Functions | |
LINE * | get_line (DOUBLEVECTOR *vertex_x_coord, DOUBLEVECTOR *vertex_y_coord, long line_index, char *number_strings, short print) |
LINEVECTOR * | get_linevector (DOUBLEVECTOR *vertex_x_coord, DOUBLEVECTOR *vertex_y_coord, STRINGBIN *line_strings, short print) |
POLYGON * | get_polygon (long index, double x, double y, double z, char *edge_index_string, LINEVECTOR *all_lines, short print) |
POLYGONVECTOR * | get_polygonvector (DOUBLEVECTOR *centroid_x_coord, DOUBLEVECTOR *centroid_y_coord, STRINGBIN *polygon_strings, LINEVECTOR *all_lines, short print) |
LINEVECTOR * | extract_linvector_from_linevector (LONGVECTOR *nlines, LINEVECTOR *lines) |
int | write_linevector (char *filename, LINEVECTOR *lines) |
int | fprint_linevector (char *filename, LINEVECTOR *lines) |
int | write_polygonvector (char *filename, POLYGONVECTOR *polygons) |
int | fprint_polygonvector (char *filename, POLYGONVECTOR *polygons) |
LINEVECTOR* extract_linvector_from_linevector | ( | LONGVECTOR * | nlines, |
LINEVECTOR * | lines | ||
) |
nlines | - (LONGVECTOR *) numbers of lines to be extracted |
lines | - (LINEVECTOR *) vector of all lines |
Definition at line 125 of file geometry_io.c.
References LINE::begin, LINEVECTOR::element, LINE::end, new_line_from_points(), new_linevector(), LONGVECTOR::nh, and LINEVECTOR::nl.
Referenced by get_polygon(), and new_pixel_from_raster().
int fprint_linevector | ( | char * | filename, |
LINEVECTOR * | lines | ||
) |
name | - (char *)name of file where to write the linevector properties |
linevector | - (LINEVECTOR *) the linevector to be printed |
Definition at line 341 of file geometry_io.c.
References LINE::begin, LINEVECTOR::element, LINE::end, LINE::index, LINE::length2d, LINEVECTOR::nl, POINT::x, and POINT::y.
int fprint_polygonvector | ( | char * | filename, |
POLYGONVECTOR * | polygons | ||
) |
name | - (char *)name of file where to write the linevector properties |
polygons | - (POLYGONVECTOR *) the polygonvector to be printed |
PRINT HEADER
end print header
Definition at line 392 of file geometry_io.c.
References POLYGON::area2D, POLYGON::centroid, POLYGON::edge_indices, POLYGONVECTOR::element, POLYGON::index, LONGVECTOR::nh, NL, POLYGONVECTOR::nl, LONGVECTOR::nl, NULL_VALUE, POINT::x, and POINT::y.
LINE* get_line | ( | DOUBLEVECTOR * | vertex_x_coord, |
DOUBLEVECTOR * | vertex_y_coord, | ||
long | line_index, | ||
char * | number_strings, | ||
short | |||
) |
vertex_x_coord | - (DOUBLEVECTOR *) vector of x coordinates |
vertex_y_coord | - (DOUBLEVECTOR *) vector of y coordinates |
line_index | - (long int) index of the line |
number_string | - (char *) string containing the number of two vertex points |
- (short) if activated it prints error or warning messages |
Definition at line 39 of file geometry_io.c.
References DELIMITERS, free_longvector(), free_point(), POINT::index, MAX_POINTS, new_line_from_points(), new_point(), LONGVECTOR::nh, DOUBLEVECTOR::nh, LONGVECTOR::nl, NO_ELEVATION, read_longarray_from_string(), POINT::x, and POINT::y.
Referenced by get_linevector().
LINEVECTOR* get_linevector | ( | DOUBLEVECTOR * | vertex_x_coord, |
DOUBLEVECTOR * | vertex_y_coord, | ||
STRINGBIN * | line_strings, | ||
short | |||
) |
vertex_x_coord | - (DOUBLEVECTOR *) vector of x coordinates |
vertex_y_coord | - (DOUBLEVECTOR *) vector of y coordinates |
line_strings | - (STRINGBIN *) string array containing line information |
- (short int) |
Definition at line 90 of file geometry_io.c.
References LINEVECTOR::element, get_line(), st::index, new_linevector(), LONGVECTOR::nh, and LINEVECTOR::nl.
POLYGON* get_polygon | ( | long | index, |
double | x, | ||
double | y, | ||
double | z, | ||
char * | edge_index_string, | ||
LINEVECTOR * | all_lines, | ||
short | |||
) |
index | - (long) index of the centroid and the polygons |
x | - (double) x of the centroid |
y | - (double) y of the centroid |
z | - (double) z of the centroid |
edge_line_index | - (char *) string containing the edge indices |
all_lines | - (LINEVECTOR *) vector of all lines |
- (short) |
Definition at line 153 of file geometry_io.c.
References DELIMITERS, extract_linvector_from_linevector(), free_linevector(), free_longvector(), free_point(), MAX_POINTS, new_point(), new_polygon_from_a_linevector(), and read_longarray_from_string().
Referenced by get_polygonvector().
POLYGONVECTOR* get_polygonvector | ( | DOUBLEVECTOR * | centroid_x_coord, |
DOUBLEVECTOR * | centroid_y_coord, | ||
STRINGBIN * | polygon_strings, | ||
LINEVECTOR * | all_lines, | ||
short | |||
) |
centroid_x_coord | - (DOUBLEVECTOR*) vector of centroid x coordinates |
centroid_y_coord | - (DOUBLEVECTOR*) vector of centroid y coordinates |
polygon_strings | - (STRINGBIN *) string containing polygon information |
lines | - (LINEVECTOR *) vector containing all the lines |
- (short) |
Definition at line 191 of file geometry_io.c.
References POLYGONVECTOR::element, get_polygon(), st::index, new_polygonvector(), LONGVECTOR::nh, DOUBLEVECTOR::nh, POLYGONVECTOR::nl, and NO_ELEVATION.
int write_linevector | ( | char * | filename, |
LINEVECTOR * | lines | ||
) |
name | - (char *)name of file where to write the linevector properties |
linevector | - (LINEVECTOR *) the linevector to be printed |
write a linevecto in a fluidturtle formalism.
Definition at line 219 of file geometry_io.c.
References LINE::begin, LINEVECTOR::element, LINE::end, LINE::index, LINE::length2d, LINEVECTOR::nh, LINEVECTOR::nl, NO_COLS_LINEVECTOR_DOUBLEMATRIX, POINT::x, and POINT::y.
Referenced by write_grid().
int write_polygonvector | ( | char * | filename, |
POLYGONVECTOR * | polygons | ||
) |
name | - (char *)name of file where to write the linevector properties |
polygons | - (POLYGONVECTOR *) the polygonvector to be printed |
This functions writes a polygonvector in an ascii files with fluidturle formalism
PRINT HEADER
end print header
Definition at line 271 of file geometry_io.c.
References POLYGON::area2D, POLYGON::centroid, POLYGON::edge_indices, POLYGONVECTOR::element, POLYGON::index, POLYGONVECTOR::nh, LONGVECTOR::nh, NL, POLYGONVECTOR::nl, LONGVECTOR::nl, NULL_VALUE, POINT::x, and POINT::y.
Referenced by write_grid().