/usr/include/geos/operation/polygonize/PolygonizeDirectedEdge.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 120 121 122 123 124 125 126 127 128 129 130 131 | /**********************************************************************
* $Id: PolygonizeDirectedEdge.h 2567 2009-06-08 16:58:42Z strk $
*
* GEOS - Geometry Engine Open Source
* http://geos.refractions.net
*
* Copyright (C) 2006 Refractions Research Inc.
* Copyright (C) 2001-2002 Vivid Solutions 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/polygonize/PolygonizeDirectedEdge.java rev. 1.4 (JTS-1.10)
*
**********************************************************************/
#ifndef GEOS_OP_POLYGONIZE_POLYGONIZEDIRECTEDEDGE_H
#define GEOS_OP_POLYGONIZE_POLYGONIZEDIRECTEDEDGE_H
#include <geos/export.h>
#include <geos/planargraph/DirectedEdge.h> // for inheritance
// Forward declarations
namespace geos {
namespace geom {
//class LineString;
}
namespace planargraph {
class Node;
}
namespace operation {
namespace polygonize {
class EdgeRing;
}
}
}
namespace geos {
namespace operation { // geos::operation
namespace polygonize { // geos::operation::polygonize
/** \brief
* A DirectedEdge of a PolygonizeGraph, which represents
* an edge of a polygon formed by the graph.
*
* May be logically deleted from the graph by setting the
* <code>marked</code> flag.
*/
class GEOS_DLL PolygonizeDirectedEdge: public planargraph::DirectedEdge {
private:
EdgeRing *edgeRing;
PolygonizeDirectedEdge *next;
long label;
public:
/*
* \brief
* Constructs a directed edge connecting the <code>from</code> node
* to the <code>to</code> node.
*
* @param directionPt
* specifies this DirectedEdge's direction (given by an imaginary
* line from the <code>from</code> node to <code>directionPt</code>)
*
* @param edgeDirection
* whether this DirectedEdge's direction is the same as or
* opposite to that of the parent Edge (if any)
*/
PolygonizeDirectedEdge(planargraph::Node *newFrom,
planargraph::Node *newTo,
const geom::Coordinate& newDirectionPt,
bool nEdgeDirection);
/*
* Returns the identifier attached to this directed edge.
*/
long getLabel() const;
/*
* Attaches an identifier to this directed edge.
*/
void setLabel(long newLabel);
/*
* Returns the next directed edge in the EdgeRing that this
* directed edge is a member of.
*/
PolygonizeDirectedEdge* getNext() const;
/*
* Sets the next directed edge in the EdgeRing that this
* directed edge is a member of.
*/
void setNext(PolygonizeDirectedEdge *newNext);
/*
* Returns the ring of directed edges that this directed edge is
* a member of, or null if the ring has not been set.
* @see #setRing(EdgeRing)
*/
bool isInRing() const;
/*
* Sets the ring of directed edges that this directed edge is
* a member of.
*/
void setRing(EdgeRing *newEdgeRing);
};
} // namespace geos::operation::polygonize
} // namespace geos::operation
} // namespace geos
#endif // GEOS_OP_POLYGONIZE_POLYGONIZEDIRECTEDEDGE_H
/**********************************************************************
* $Log$
* Revision 1.1 2006/03/22 11:19:06 strk
* opPolygonize.h headers split.
*
**********************************************************************/
|