00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022 #ifndef GEOS_GEOMGRAPH_DEPTH_H
00023 #define GEOS_GEOMGRAPH_DEPTH_H
00024
00025 #include <geos/export.h>
00026 #include <string>
00027
00028 #include <geos/inline.h>
00029
00030
00031 namespace geos {
00032 namespace geomgraph {
00033 class Label;
00034 }
00035 }
00036
00037 namespace geos {
00038 namespace geomgraph {
00039
00040 class GEOS_DLL Depth {
00041 public:
00042 static int depthAtLocation(int location);
00043 Depth();
00044 virtual ~Depth();
00045 int getDepth(int geomIndex,int posIndex) const;
00046 void setDepth(int geomIndex,int posIndex,int depthValue);
00047 int getLocation(int geomIndex,int posIndex) const;
00048 void add(int geomIndex,int posIndex,int location);
00049 bool isNull() const;
00050 bool isNull(int geomIndex) const;
00051 bool isNull(int geomIndex, int posIndex) const;
00052 int getDelta(int geomIndex) const;
00053 void normalize();
00054 void add(const Label& lbl);
00055 std::string toString() const;
00056 private:
00057 enum {
00058 NULL_VALUE=-1
00059 };
00060 int depth[2][3];
00061 };
00062
00063 }
00064 }
00065
00066
00067
00068
00069
00070 #endif // ifndef GEOS_GEOMGRAPH_DEPTH_H
00071
00072
00073
00074
00075
00076
00077
00078
00079
00080
00081