#include <iostream>#include <fstream>#include <iomanip>#include <math.h>#include "shapefil.h"Include dependency graph for extractRiver4mTIN.cpp:

Go to the source code of this file.
Classes | |
| struct | Point |
Defines | |
| #define | PI 3.14 |
| #define | distPt(p1, p2) fabs(p1.x-p2.x)+fabs(p1.y-p2.y) |
| #define | distXY(x1, y1, x2, y2) fabs(x1-x2)+fabs(y1-y2) |
| #define | distPtXY(p, x, y) fabs(p.x-x)+fabs(p.y-y) |
Functions | |
| double | SLOPE (Point p1, Point p2) |
| void | extractRiver4mTIN (const char *shpFileName, const char *dbfFileName, const char *eleFileName, const char *nodeFileName, const char *neighFileName, const char *newshpFileName, const char *newdbfFileName) |
| #define distPt | ( | p1, | |||
| p2 | ) | fabs(p1.x-p2.x)+fabs(p1.y-p2.y) |
| #define distPtXY | ( | p, | |||
| x, | |||||
| y | ) | fabs(p.x-x)+fabs(p.y-y) |
Definition at line 9 of file extractRiver4mTIN.cpp.
| #define distXY | ( | x1, | |||
| y1, | |||||
| x2, | |||||
| y2 | ) | fabs(x1-x2)+fabs(y1-y2) |
Definition at line 8 of file extractRiver4mTIN.cpp.
| #define PI 3.14 |
Definition at line 6 of file extractRiver4mTIN.cpp.
| void extractRiver4mTIN | ( | const char * | shpFileName, | |
| const char * | dbfFileName, | |||
| const char * | eleFileName, | |||
| const char * | nodeFileName, | |||
| const char * | neighFileName, | |||
| const char * | newshpFileName, | |||
| const char * | newdbfFileName | |||
| ) |
Definition at line 36 of file extractRiver4mTIN.cpp.
References dbf, DBFAddField(), DBFClose(), DBFCreate(), DBFGetRecordCount(), DBFOpen(), DBFWriteIntegerAttribute(), distPt, FTInteger, shp, SHPClose(), SHPCreate(), SHPCreateSimpleObject(), SHPOpen(), SHPReadObject(), SHPT_ARC, SHPWriteObject(), slope, SLOPE(), Point::x, and Point::y.
Referenced by rivFileDlg::run().
Here is the call graph for this function:

Definition at line 23 of file extractRiver4mTIN.cpp.
References PI, Point::x, and Point::y.
Referenced by extractRiver4mTIN().
1.5.2