00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029 #ifndef GEOS_SIMPLIFY_TAGGEDLINESEGMENT_H
00030 #define GEOS_SIMPLIFY_TAGGEDLINESEGMENT_H
00031
00032 #include <geos/export.h>
00033 #include <geos/geom/LineSegment.h>
00034
00035
00036
00037 namespace geos {
00038 namespace geom {
00039 class Coordinate;
00040 class Geometry;
00041 }
00042 }
00043
00044 namespace geos {
00045 namespace simplify {
00046
00047
00054 class GEOS_DLL TaggedLineSegment: public geom::LineSegment
00055 {
00056
00057 public:
00058
00059 TaggedLineSegment(const geom::Coordinate& p0,
00060 const geom::Coordinate& p1,
00061 const geom::Geometry* parent,
00062 unsigned int index);
00063
00064 TaggedLineSegment(const geom::Coordinate& p0,
00065 const geom::Coordinate& p1);
00066
00067 TaggedLineSegment(const TaggedLineSegment& ls);
00068
00069 const geom::Geometry* getParent() const;
00070
00071 unsigned int getIndex() const;
00072
00073 private:
00074
00075 const geom::Geometry* parent;
00076
00077 unsigned int index;
00078
00079 };
00080
00081
00082
00083 }
00084 }
00085
00086 #endif // GEOS_SIMPLIFY_TAGGEDLINESEGMENT_H