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