/usr/include/geos/operation/overlay/MaximalEdgeRing.h is in libgeos-dev 3.2.2-3ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 | /**********************************************************************
* $Id: MaximalEdgeRing.h 2731 2009-11-19 21:06:16Z strk $
*
* GEOS - Geometry Engine Open Source
* http://geos.refractions.net
*
* Copyright (C) 2006 Refractions Research Inc.
*
* This is free software; you can redistribute and/or modify it under
* the terms of the GNU Lesser General Public Licence as published
* by the Free Software Foundation.
* See the COPYING file for more information.
*
**********************************************************************
*
* Last port: operation/overlay/MaximalEdgeRing.java rev. 1.15 (JTS-1.10)
*
**********************************************************************/
#ifndef GEOS_OP_OVERLAY_MAXIMALEDGERING_H
#define GEOS_OP_OVERLAY_MAXIMALEDGERING_H
#include <geos/export.h>
#include <vector>
#include <geos/geomgraph/EdgeRing.h> // for inheritance
// Forward declarations
namespace geos {
namespace geom {
class GeometryFactory;
}
namespace geomgraph {
class DirectedEdge;
//class EdgeRing;
}
namespace operation {
namespace overlay {
class MinimalEdgeRing;
}
}
}
namespace geos {
namespace operation { // geos::operation
namespace overlay { // geos::operation::overlay
/** \brief
* A ring of {@link edges} which may contain nodes of degree > 2.
*
* A MaximalEdgeRing may represent two different spatial entities:
*
* - a single polygon possibly containing inversions (if the ring is oriented CW)
* - a single hole possibly containing exversions (if the ring is oriented CCW)
*
* If the MaximalEdgeRing represents a polygon,
* the interior of the polygon is strongly connected.
*
* These are the form of rings used to define polygons under some spatial data models.
* However, under the OGC SFS model, {@link MinimalEdgeRings} are required.
* A MaximalEdgeRing can be converted to a list of MinimalEdgeRings using the
* {@link #buildMinimalRings() } method.
*
* @see com.vividsolutions.jts.operation.overlay.MinimalEdgeRing
*/
class GEOS_DLL MaximalEdgeRing: public geomgraph::EdgeRing {
public:
MaximalEdgeRing(geomgraph::DirectedEdge *start,
const geom::GeometryFactory *geometryFactory);
// throw(const TopologyException &)
virtual ~MaximalEdgeRing();
geomgraph::DirectedEdge* getNext(geomgraph::DirectedEdge *de);
void setEdgeRing(geomgraph::DirectedEdge* de, geomgraph::EdgeRing* er);
/// \brief
/// This function returns a newly allocated vector of
/// pointers to newly allocated MinimalEdgeRing objects.
///
/// @deprecated pass the vector yourself instead
///
std::vector<MinimalEdgeRing*>* buildMinimalRings();
/// \brief
/// This function pushes pointers to newly allocated MinimalEdgeRing
/// objects to the provided vector.
///
void buildMinimalRings(std::vector<MinimalEdgeRing*>& minEdgeRings);
void buildMinimalRings(std::vector<EdgeRing*>& minEdgeRings);
/// \brief
/// For all nodes in this EdgeRing,
/// link the DirectedEdges at the node to form minimalEdgeRings
///
void linkDirectedEdgesForMinimalEdgeRings();
};
} // namespace geos::operation::overlay
} // namespace geos::operation
} // namespace geos
#endif // ndef GEOS_OP_OVERLAY_MAXIMALEDGERING_H
/**********************************************************************
* $Log$
* Revision 1.2 2006/03/27 16:02:34 strk
* Added INL file for MinimalEdgeRing, added many debugging blocks,
* fixed memory leak in ConnectedInteriorTester (bug #59)
*
* Revision 1.1 2006/03/17 13:24:59 strk
* opOverlay.h header splitted. Reduced header inclusions in operation/overlay implementation files. ElevationMatrixFilter code moved from own file to ElevationMatrix.cpp (ideally a class-private).
*
**********************************************************************/
|