#include <LinearLocation.h>
Public Member Functions | |
LinearLocation (unsigned int segmentIndex=0, double segmentFraction=0.0) | |
LinearLocation (unsigned int componentIndex, unsigned int segmentIndex, double segmentFraction) | |
void | clamp (const geom::Geometry *linear) |
void | snapToVertex (const geom::Geometry *linearGeom, double minDistance) |
double | getSegmentLength (const geom::Geometry *linearGeom) const |
void | setToEnd (const geom::Geometry *linear) |
unsigned int | getComponentIndex () const |
unsigned int | getSegmentIndex () const |
double | getSegmentFraction () const |
bool | isVertex () const |
geom::Coordinate | getCoordinate (const geom::Geometry *linearGeom) const |
std::auto_ptr< geom::LineSegment > | getSegment (const geom::Geometry *linearGeom) const |
bool | isValid (const geom::Geometry *linearGeom) const |
int | compareTo (const LinearLocation &other) const |
int | compareLocationValues (unsigned int componentIndex1, unsigned int segmentIndex1, double segmentFraction1) const |
bool | isOnSameSegment (const LinearLocation &loc) const |
Static Public Member Functions | |
LinearLocation | getEndLocation (const geom::Geometry *linear) |
geom::Coordinate | pointAlongSegmentByFraction (const geom::Coordinate &p0, const geom::Coordinate &p1, double frac) |
int | compareLocationValues (unsigned int componentIndex0, unsigned int segmentIndex0, double segmentFraction0, unsigned int componentIndex1, unsigned int segmentIndex1, double segmentFraction1) |
Friends | |
std::ostream & | operator<< (std::ostream &out, const LinearLocation &obj) |
The referenced geometry is not maintained within this location, but must be provided for operations which require it. Various methods are provided to manipulate the location value and query the geometry it references.
|
Creates a location referring to the start of a linear geometry |
|
Ensures the indexes are valid for a given linear Geometry.
|
|
Compares two sets of location values for order.
|
|
Compares this object with the specified index values for order.
|
|
Compares this object with the specified object for order.
|
|
Gets the component index for this location.
|
|
Gets the Coordinate along the given linear Geometry which is referenced by this location.
|
|
Gets a location which refers to the end of a linear Geometry.
|
|
Gets a LineSegment representing the segment of the given linear Geometry which contains this location.
|
|
Gets the segment fraction for this location
|
|
Gets the segment index for this location
|
|
Gets the length of the segment in the given Geometry containing this location.
|
|
Tests whether two locations are on the same segment in the parent Geometry.
|
|
Tests whether this location refers to a valid location on the given linear Geometry.
|
|
Tests whether this location refers to a vertex
|
|
Computes the Coordinate of a point a given fraction along the line segment
|
|
Sets the value of this location to refer the end of a linear geometry
|
|
Snaps the value of this location to the nearest vertex on the given linear Geometry, if the vertex is closer than
|