Public Member Functions | Protected Member Functions | Protected Attributes

BendPoints2Coords Class Reference

List of all members.

Public Member Functions

 BendPoints2Coords (const TypeSet< Coord > &, const int *ids=0)
 BendPoints2Coords (std::istream &)
 'table' file
const TypeSet< Coord > & getCoords () const
const TypeSet< int > & getIDs () const
Coord coordAt (float) const
void readFrom (std::istream &)

Protected Member Functions

void init (const TypeSet< Coord > &, const int *)
void getIndexes (float, Interval< int > &) const

Protected Attributes

TypeSet< int > nrs_
TypeSet< Coordcoords_

Detailed Description

Inter/Extra-polate bendpoints to get the coordinates.

Input is a set of coordinates and optionally ID numbers (if you don't pass IDs they will be generated 0, 1, ....). Then you can give an ID (usually in between the bend point IDs) and get the interpolated coordinate.

The bend points will be sorted on ID.


Constructor & Destructor Documentation

BendPoints2Coords::BendPoints2Coords ( const TypeSet< Coord > &  ,
const int *  ids = 0 
)
BendPoints2Coords::BendPoints2Coords ( std::istream &   ) 

'table' file


Member Function Documentation

Coord BendPoints2Coords::coordAt ( float   )  const
const TypeSet<Coord>& BendPoints2Coords::getCoords (  )  const [inline]
const TypeSet<int>& BendPoints2Coords::getIDs (  )  const [inline]
void BendPoints2Coords::getIndexes ( float  ,
Interval< int > &   
) const [protected]
void BendPoints2Coords::init ( const TypeSet< Coord > &  ,
const int *   
) [protected]
void BendPoints2Coords::readFrom ( std::istream &   ) 

Member Data Documentation

TypeSet<int> BendPoints2Coords::nrs_ [protected]