Pick location in space.
More...
List of all members.
Public Member Functions |
| | Location (double x=0, double y=0, double z=0) |
| | Location (const Coord &c, float f=0) |
| | Location (const Coord3 &c) |
| | Location (const Coord3 &c, const Coord3 &d) |
| | Location (const Coord3 &c, const Sphere &d) |
| | Location (const Location &pl) |
| | ~Location () |
| bool | operator== (const Location &pl) const |
| bool | operator!= (const Location &pl) const |
| void | operator= (const Location &) |
| bool | fromString (const char *, bool doxy=true, bool checkdir=true) |
| void | toString (BufferString &, bool forexport=false) const |
| void | setText (const char *key, const char *txt) |
| void | unSetText (const char *key) |
| bool | getText (const char *key, BufferString &) const |
| bool | hasDir () const |
Public Attributes |
| Coord3 | pos |
| Sphere | dir |
| BufferString * | text |
| | Optional text at location.
|
Detailed Description
Pick location in space.
Constructor & Destructor Documentation
| Pick::Location::Location |
( |
double |
x = 0, |
|
|
double |
y = 0, |
|
|
double |
z = 0 | |
|
) |
| | [inline] |
| Pick::Location::Location |
( |
const Coord & |
c, |
|
|
float |
f = 0 | |
|
) |
| | [inline] |
| Pick::Location::Location |
( |
const Coord3 & |
c |
) |
[inline] |
| Pick::Location::Location |
( |
const Coord3 & |
c, |
|
|
const Coord3 & |
d | |
|
) |
| | [inline] |
| Pick::Location::Location |
( |
const Coord3 & |
c, |
|
|
const Sphere & |
d | |
|
) |
| | [inline] |
| Pick::Location::Location |
( |
const Location & |
pl |
) |
[inline] |
| Pick::Location::~Location |
( |
|
) |
|
Member Function Documentation
| bool Pick::Location::fromString |
( |
const char * |
, |
|
|
bool |
doxy = true, |
|
|
bool |
checkdir = true | |
|
) |
| | |
If checkdir is true, a more rigourous test is done on dir.
| bool Pick::Location::getText |
( |
const char * |
key, |
|
|
BufferString & |
| |
|
) |
| | const |
| bool Pick::Location::hasDir |
( |
|
) |
const [inline] |
| bool Pick::Location::operator!= |
( |
const Location & |
pl |
) |
const [inline] |
| void Pick::Location::operator= |
( |
const Location & |
|
) |
|
| bool Pick::Location::operator== |
( |
const Location & |
pl |
) |
const [inline] |
| void Pick::Location::setText |
( |
const char * |
key, |
|
|
const char * |
txt | |
|
) |
| | |
| void Pick::Location::toString |
( |
BufferString & |
, |
|
|
bool |
forexport = false | |
|
) |
| | const |
| void Pick::Location::unSetText |
( |
const char * |
key |
) |
|
Member Data Documentation
Optional direction at location. phi is defined as the direction's counter-clockwise angle from the x-axis in the x-y plane. theta is defined as the directions angle from the upward pointing z axis (i.e. opposite to survey-z-axis).
- Note:
- theta and the radius are defined after thes SI().zFactor is applied to the z-coordinate.
Optional text at location.