/usr/include/geos/triangulate/quadedge/LastFoundQuadEdgeLocator.h is in libgeos++-dev 3.6.2-1build2.
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 | /**********************************************************************
*
* GEOS - Geometry Engine Open Source
* http://geos.osgeo.org
*
* Copyright (C) 2012 Excensus LLC.
*
* This is free software; you can redistribute and/or modify it under
* the terms of the GNU Lesser General Licence as published
* by the Free Software Foundation.
* See the COPYING file for more information.
*
**********************************************************************
*
* Last port: triangulate/quadedge/LastFoundQuadEdgeLocator.java r524
*
**********************************************************************/
#ifndef GEOS_TRIANGULATE_QUADEDGE_LASTFOUNDQUADEDGELOCATOR_H
#define GEOS_TRIANGULATE_QUADEDGE_LASTFOUNDQUADEDGELOCATOR_H
#include <geos/triangulate/quadedge/QuadEdge.h>
#include <geos/triangulate/quadedge/QuadEdgeLocator.h>
namespace geos {
namespace triangulate { //geos.triangulate
namespace quadedge { //geos.triangulate.quadedge
//fwd declarations
class QuadEdgeSubdivision;
/**
* Locates {@link QuadEdge}s in a {@link QuadEdgeSubdivision},
* optimizing the search by starting in the
* locality of the last edge found.
*
* @author JTS: Martin Davis
* @author Benjamin Campbell
*/
class LastFoundQuadEdgeLocator : public QuadEdgeLocator {
private:
QuadEdgeSubdivision* subdiv;
QuadEdge* lastEdge;
public:
LastFoundQuadEdgeLocator(QuadEdgeSubdivision *subdiv);
private:
virtual void init();
virtual QuadEdge* findEdge();
public:
/**
* Locates an edge e, such that either v is on e, or e is an edge of a triangle containing v.
* The search starts from the last located edge amd proceeds on the general direction of v.
* @return The caller _does not_ take ownership of the returned object.
*/
virtual QuadEdge* locate(const Vertex &v);
};
} //namespace geos.triangulate.quadedge
} //namespace geos.triangulate
} //namespace goes
#endif // GEOS_TRIANGULATE_QUADEDGE_LASTFOUNDQUADEDGELOCATOR_H
|