Position info for a 2D line.
More...
List of all members.
Public Member Functions |
| | Line2DData (const char *lnm=0) |
| const StepInterval< float > & | zRange () const |
| const BufferString & | lineName () const |
| void | setZRange (const StepInterval< float > &zrg) |
| void | setLineName (const BufferString &lnm) |
| const TypeSet< Line2DPos > & | positions () const |
| bool | isEmpty () const |
| void | add (const Line2DPos &) |
| void | remove (int trcnr) |
| void | setEmpty () |
| void | limitTo (Interval< int > trcrg) |
| int | indexOf (int trcnr) const |
| int | nearestIdx (const Coord &crd) const |
| int | nearestIdx (const Coord &, const Interval< int > &trcnrrg) const |
| bool | getPos (const Coord &crd, Line2DPos &l2p, double threshold_distance) const |
| bool | getPos (int trcnr, Line2DPos &) const |
| void | dump (std::ostream &, bool pretty=true) const |
| bool | read (std::istream &, bool asc) |
| bool | write (std::ostream &, bool asc, bool newlns=false) const |
| StepInterval< int > | trcNrRange () const |
| Coord | getNormal (int trcnr) const |
Protected Member Functions |
| int | gtIndex (int, bool &) const |
| int | gtIndex (const Coord &, double *sqdist=0) const |
Protected Attributes |
| StepInterval< float > | zrg_ |
| BufferString | lnm_ |
| TypeSet< Line2DPos > | posns_ |
Detailed Description
Position info for a 2D line.
Constructor & Destructor Documentation
| PosInfo::Line2DData::Line2DData |
( |
const char * |
lnm = 0 |
) |
|
Member Function Documentation
| void PosInfo::Line2DData::add |
( |
const Line2DPos & |
|
) |
|
| void PosInfo::Line2DData::dump |
( |
std::ostream & |
, |
|
|
bool |
pretty = true | |
|
) |
| | const |
| Coord PosInfo::Line2DData::getNormal |
( |
int |
trcnr |
) |
const |
| bool PosInfo::Line2DData::getPos |
( |
const Coord & |
crd, |
|
|
Line2DPos & |
l2p, |
|
|
double |
threshold_distance | |
|
) |
| | const |
| bool PosInfo::Line2DData::getPos |
( |
int |
trcnr, |
|
|
Line2DPos & |
| |
|
) |
| | const |
| int PosInfo::Line2DData::gtIndex |
( |
int |
, |
|
|
bool & |
| |
|
) |
| | const [protected] |
| int PosInfo::Line2DData::gtIndex |
( |
const Coord & |
, |
|
|
double * |
sqdist = 0 | |
|
) |
| | const [protected] |
| int PosInfo::Line2DData::indexOf |
( |
int |
trcnr |
) |
const |
| bool PosInfo::Line2DData::isEmpty |
( |
|
) |
const [inline] |
| void PosInfo::Line2DData::limitTo |
( |
Interval< int > |
trcrg |
) |
|
| const BufferString& PosInfo::Line2DData::lineName |
( |
|
) |
const [inline] |
| int PosInfo::Line2DData::nearestIdx |
( |
const Coord & |
, |
|
|
const Interval< int > & |
trcnrrg | |
|
) |
| | const |
| int PosInfo::Line2DData::nearestIdx |
( |
const Coord & |
crd |
) |
const [inline] |
| bool PosInfo::Line2DData::read |
( |
std::istream & |
, |
|
|
bool |
asc | |
|
) |
| | |
| void PosInfo::Line2DData::remove |
( |
int |
trcnr |
) |
|
| void PosInfo::Line2DData::setEmpty |
( |
|
) |
[inline] |
| void PosInfo::Line2DData::setLineName |
( |
const BufferString & |
lnm |
) |
[inline] |
| void PosInfo::Line2DData::setZRange |
( |
const StepInterval< float > & |
zrg |
) |
[inline] |
| bool PosInfo::Line2DData::write |
( |
std::ostream & |
, |
|
|
bool |
asc, |
|
|
bool |
newlns = false | |
|
) |
| | const |
| const StepInterval<float>& PosInfo::Line2DData::zRange |
( |
|
) |
const [inline] |
Member Data Documentation