Main Page | Class Hierarchy | Class List | Directories | File List | Class Members | File Members | Related Pages

OGRCurve Class Reference

#include <ogr_geometry.h>

Inheritance diagram for OGRCurve:

OGRGeometry OGRLineString OGRLinearRing List of all members.

Public Member Functions

virtual double get_Length () const =0
virtual void StartPoint (OGRPoint *) const =0
virtual void EndPoint (OGRPoint *) const =0
virtual int get_IsClosed () const
virtual void Value (double, OGRPoint *) const =0

Detailed Description

Abstract curve base class.


Member Function Documentation

void OGRCurve::EndPoint OGRPoint poPoint  )  const [pure virtual]
 

Return the curve end point.

This method relates to the SF COM ICurve::get_EndPoint() method.

Parameters:
poPoint the point to be assigned the end location.

Implemented in OGRLineString.

int OGRCurve::get_IsClosed  )  const [virtual]
 

Return TRUE if curve is closed.

Tests if a curve is closed. A curve is closed if its start point is equal to its end point.

This method relates to the SFCOM ICurve::get_IsClosed() method.

Returns:
TRUE if closed, else FALSE.

double OGRCurve::get_Length  )  const [pure virtual]
 

Returns the length of the curve.

This method relates to the SFCOM ICurve::get_Length() method.

Returns:
the length of the curve, zero if the curve hasn't been initialized.

Implemented in OGRLineString.

void OGRCurve::StartPoint OGRPoint poPoint  )  const [pure virtual]
 

Return the curve start point.

This method relates to the SF COM ICurve::get_StartPoint() method.

Parameters:
poPoint the point to be assigned the start location.

Implemented in OGRLineString.

void OGRCurve::Value double  dfDistance,
OGRPoint poPoint
const [pure virtual]
 

Fetch point at given distance along curve.

This method relates to the SF COM ICurve::get_Value() method.

Parameters:
dfDistance distance along the curve at which to sample position. This distance should be between zero and get_Length() for this curve.
poPoint the point to be assigned the curve position.

Implemented in OGRLineString.


The documentation for this class was generated from the following files:
Generated for GDAL by doxygen 1.4.4.