#include <stdio.h>
#include "lsm.h"
#include "./../pihmLIBS/shapefil.h"
Include dependency graph for catPoly.cpp:
Go to the source code of this file.
Classes | |
struct | structure |
Defines | |
#define | dist(x1, x2) fabs(x1-x2) |
#define | direction(l1, l2) (fabs(atan(fabs((l1.y2 - l1.y1)/(l1.x2 - l1.x1))) - atan(fabs(( l2.y2 - l2.y1)/(l2.x2 - l2.x1))))<0.001)?0:1; |
Typedefs | |
typedef structure | LINE |
Functions | |
int | catchmentPoly (char *catFile, char *nodeFile, char *shpFile, char *dbfFile) |
void | sortLine (LINE *lines, int) |
#define direction | ( | l1, | |||
l2 | ) | (fabs(atan(fabs((l1.y2 - l1.y1)/(l1.x2 - l1.x1))) - atan(fabs(( l2.y2 - l2.y1)/(l2.x2 - l2.x1))))<0.001)?0:1; |
#define dist | ( | x1, | |||
x2 | ) | fabs(x1-x2) |
Definition at line 5 of file catPoly.cpp.
Definition at line 15 of file catPoly.cpp.
int catchmentPoly | ( | char * | catFile, | |
char * | nodeFile, | |||
char * | shpFile, | |||
char * | dbfFile | |||
) |
Definition at line 22 of file catPoly.cpp.
References bndbox, structure::cl, csize, dbf, DBFAddField(), DBFClose(), DBFCreate(), DBFWriteIntegerAttribute(), direction, dist, dx, dy, elev, filetype, FTInteger, gridread(), mval, nx, ny, obj, ptx, pty, ptz, recordNum, RPFLTDTYPE, shp, SHPClose(), SHPCreate(), SHPCreateSimpleObject(), SHPT_ARC, SHPT_POLYGON, SHPWriteObject(), sortLine(), structure::x1, structure::x2, structure::y1, and structure::y2.
Referenced by CatchmentPolygonDlg::run().
Here is the call graph for this function:
void sortLine | ( | LINE * | lines, | |
int | ||||
) |
Definition at line 257 of file catPoly.cpp.
References structure::cl, structure::x1, structure::x2, structure::y1, and structure::y2.
Referenced by catchmentPoly().