Jpp
18.0.0-rc.4
the software that should make you happy
|
Data structure for detector header. More...
#include <JDetectorHeader.hh>
Classes | |
class | JDetectorHeaderHelper |
Auxiliary class for I/O of detector header. More... | |
Public Types | |
typedef std::pair< T, T > | pair_type |
typedef JRange< T, JComparator_t > | range_type |
typedef JLANG::JClass< T > ::argument_type | argument_type |
typedef T | key_type |
typedef T | mapped_type |
Public Member Functions | |
JDetectorHeader () | |
Default constructor. More... | |
JDetectorHeader (const JUTCTimeRange &range, const JUTMGrid &grid, const JUTMPosition &pos) | |
Constructor. More... | |
const JDetectorHeader & | getDetectorHeader () const |
Get detector header. More... | |
bool | equals (const JDetectorHeader &header, const double precision=std::numeric_limits< double >::min()) const |
Check equality. More... | |
JProperties | getProperties (const JEquationParameters &equation=JDetectorHeader::getEquationParameters()) |
Get properties of this class. More... | |
JProperties | getProperties (const JEquationParameters &equation=JDetectorHeader::getEquationParameters()) const |
Get properties of this class. More... | |
const JUTCTimeRange & | getUTCTimeRange () const |
Get UTC time range. More... | |
JUTCTimeRange & | getUTCTimeRange () |
Get UTC time range. More... | |
void | setUTCTimeRange (const JRange< double > &timerange) |
Set UTC time range. More... | |
operator pair_type () const | |
Type conversion operator. More... | |
const range_type & | getRange () const |
Get range. More... | |
void | setRange (const range_type &range) |
Set range. More... | |
void | setRange (argument_type x, argument_type y) |
Set lower and upper limit. More... | |
template<class R > | |
void | setRange (R first, R second) |
Set range. More... | |
template<class JElement_t , class JAllocator_t > | |
void | setRange (const array_type< JElement_t, JAllocator_t > &buffer) |
Set lower and upper limit according to input data. More... | |
T | getLowerLimit () const |
Get lower limit. More... | |
T | getUpperLimit () const |
Get upper limit. More... | |
void | setLowerLimit (argument_type x) |
Set lower limit. More... | |
void | setUpperLimit (argument_type y) |
Set upper limit. More... | |
void | fixLowerLimit (argument_type x) |
Fix lower limit. More... | |
void | fixUpperLimit (argument_type y) |
Fix upper limit. More... | |
bool | equals (const range_type &range) const |
Equal method. More... | |
T | getLength () const |
Get length (difference between upper and lower limit). More... | |
void | setLength (argument_type length) |
Set length (difference between upper and lower limit). More... | |
bool | is_valid () const |
Check validity of range. More... | |
bool | in_range (argument_type x) const |
Test whether value is inside range. More... | |
bool | operator() (argument_type x) const |
Test whether value is inside range. More... | |
T | constrain (argument_type x) const |
Constrain value to range. More... | |
T | mod (argument_type x) const |
Modulo value with respect to range. More... | |
bool | overlap (const range_type &range) const |
Test overlap with given range. More... | |
range_type & | include (argument_type x) |
Include given value to range. More... | |
range_type & | join (const range_type &range) |
Join ranges. More... | |
range_type & | combine (const range_type &range) |
Combine ranges. More... | |
range_type & | add (argument_type x) |
Add offset. More... | |
range_type & | add (const range_type &range) |
Add offsets. More... | |
range_type & | sub (argument_type x) |
Subtract offset. More... | |
range_type & | sub (const range_type &range) |
Subtract offsets. More... | |
range_type & | mul (const double factor) |
Multiply range. More... | |
JFirst_t & | mul (const JSecond_t &object) |
Multiply with object. More... | |
range_type & | div (const double factor) |
Divide range. More... | |
const key_type & | getKey () const |
const mapped_type & | getValue () const |
mapped_type & | getValue () |
const JUTMGrid & | getUTMGrid () const |
Get UTM grid. More... | |
void | setUTMGrid (const JUTMGrid &grid) |
Set UTM grid. More... | |
const std::string & | getKey () const |
Get key. More... | |
const std::string & | getWGS () const |
Get WGS. More... | |
const std::string & | getUTMZone () const |
Get UTM zone. More... | |
int | getUTMValue () const |
Get UTM zone by numerical value. More... | |
bool | equals (const JUTMGrid &grid) const |
Check equality. More... | |
std::string | toString () const |
Convert UTM grid. More... | |
const JUTMPosition & | getUTMPosition () const |
Get UTM position. More... | |
void | setUTMPosition (const JUTMPosition &position) |
Set UTM position. More... | |
JPosition3D | getPosition () const |
Get position. More... | |
operator JPosition3D () const | |
Type conversion operator. More... | |
double | getUTMEast () const |
Get UTM east. More... | |
double | getUTMNorth () const |
Get UTM north. More... | |
double | getUTMZ () const |
Get UTM Z. More... | |
double | getX () const |
Get x. More... | |
double | getY () const |
Get y. More... | |
double | getZ () const |
Get z. More... | |
JUTMPosition & | negate () |
Negate UTM position. More... | |
JUTMPosition & | add (const JUTMPosition &pos) |
Add UTM position. More... | |
JUTMPosition & | sub (const JUTMPosition &pos) |
Subtract UTM position. More... | |
JUTMPosition & | mul (const double factor) |
Scale UTM position. More... | |
JFirst_t & | mul (const JSecond_t &object) |
Multiply with object. More... | |
JUTMPosition & | div (const double factor) |
Scale UTM position. More... | |
double | getDisplacement (const JUTMPosition &position) const |
Get displacement to position. More... | |
Static Public Member Functions | |
static JEquationParameters & | getEquationParameters () |
Get equation parameters. More... | |
static void | setEquationParameters (const JEquationParameters &equation) |
Set equation parameters. More... | |
static T | getMinimum () |
Get minimum possible value. More... | |
static T | getMaximum () |
Get maximum possible value. More... | |
static JRange< T, JComparator_t > | DEFAULT_RANGE () |
Default range. More... | |
static JUTMGrid | valueOf (const std::string &buffer) |
Extract UTM grid. More... | |
Public Attributes | |
JComparator_t | compare |
Function object for comparisons. More... | |
T | first |
T | second |
Protected Member Functions | |
template<class R > | |
void | setRange (R first, R second, const JLANG::JBool< false > &option) |
Set range. More... | |
template<class R > | |
void | setRange (R first, R second, const JLANG::JBool< true > &option) |
Set range. More... | |
Protected Attributes | |
std::string | key |
std::string | wgs |
std::string | zone |
double | east |
double | north |
double | z |
Friends | |
std::istream & | operator>> (std::istream &in, JDetectorHeader &header) |
Read detector header from input. More... | |
std::ostream & | operator<< (std::ostream &out, const JDetectorHeader &header) |
Write detector header to output. More... | |
JReader & | operator>> (JReader &in, JDetectorHeader &header) |
Read detector header from input. More... | |
JWriter & | operator<< (JWriter &out, const JDetectorHeader &header) |
Write detector header to output. More... | |
Data structure for detector header.
Definition at line 38 of file JDetectorHeader.hh.
|
inherited |
|
inherited |
|
inherited |
|
inline |
Default constructor.
Definition at line 48 of file JDetectorHeader.hh.
|
inline |
Constructor.
range | UTC time range |
grid | UTM grid |
pos | UTM position |
Definition at line 62 of file JDetectorHeader.hh.
|
inline |
|
inline |
Check equality.
header | header |
precision | precision |
Definition at line 89 of file JDetectorHeader.hh.
|
inlinestatic |
Get equation parameters.
Definition at line 173 of file JDetectorHeader.hh.
|
inlinestatic |
Set equation parameters.
equation | equation parameters |
Definition at line 187 of file JDetectorHeader.hh.
|
inline |
Get properties of this class.
equation | equation parameters |
Definition at line 198 of file JDetectorHeader.hh.
|
inline |
Get properties of this class.
equation | equation parameters |
Definition at line 209 of file JDetectorHeader.hh.
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
Set UTC time range.
timerange | UTC time range |
Definition at line 85 of file JUTCTimeRange.hh.
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
Set range.
range | range |
Definition at line 146 of file JRange.hh.
|
inlineinherited |
|
inlineinherited |
Set range.
The arguments could be values or iterators.
first | first |
second | second |
Definition at line 173 of file JRange.hh.
|
inlineinherited |
Set lower and upper limit according to input data.
buffer | input data |
Definition at line 187 of file JRange.hh.
|
inlineprotectedinherited |
Set range.
first | first |
second | second |
option | false |
Definition at line 576 of file JRange.hh.
|
inlineprotectedinherited |
Set range.
first | first |
second | second |
option | true |
Definition at line 590 of file JRange.hh.
|
inlineinherited |
Get lower limit.
|
inlineinherited |
Get upper limit.
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
Equal method.
range | range |
Definition at line 275 of file JRange.hh.
|
inlineinherited |
|
inlineinherited |
Set length (difference between upper and lower limit).
length | length |
Definition at line 300 of file JRange.hh.
|
inlineinherited |
Check validity of range.
Definition at line 311 of file JRange.hh.
|
inlineinherited |
Test whether value is inside range.
x | value |
Definition at line 323 of file JRange.hh.
|
inlineinherited |
Test whether value is inside range.
x | value |
Definition at line 336 of file JRange.hh.
|
inlineinherited |
Constrain value to range.
This method returns the original value if it is in this range, else lower limit if value < lower limit or upper limit if value > upper limit.
x | value |
Definition at line 350 of file JRange.hh.
|
inlineinherited |
Modulo value with respect to range.
x | value |
Definition at line 365 of file JRange.hh.
|
inlineinherited |
Test overlap with given range.
range | range |
Definition at line 382 of file JRange.hh.
|
inlineinherited |
Include given value to range.
The new lower limit is the minimim of the original lower limit and given value and
the new upper limit is the maximum of the original upper limit and given value;
x | value |
Definition at line 397 of file JRange.hh.
|
inlineinherited |
Join ranges.
The new lower limit is the maximim of the two lower limits and
the new upper limit is the minimum of the two upper limits.
This operation results in an equal or smaller range and may result in an unphysical range (i.e. lower limit > upper limit).
range | range |
Definition at line 415 of file JRange.hh.
|
inlineinherited |
Combine ranges.
The new lower limit is the minimim of the two lower limits and
the new upper limit is the maximum of the two upper limits.
This operation results in an equal or larger range.
range | range |
Definition at line 432 of file JRange.hh.
|
inlineinherited |
|
inlineinherited |
Add offsets.
The new lower limit is the sum of the two lower limits and
the new upper limit is the sum of the two upper limits.
range | offset |
Definition at line 476 of file JRange.hh.
|
inlineinherited |
|
inlineinherited |
Subtract offsets.
The new lower limit is the difference of the two lower limits and
the new upper limit is the difference of the two upper limits.
range | offset |
Definition at line 492 of file JRange.hh.
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlinestaticinherited |
|
inlinestaticinherited |
|
inlinestaticinherited |
Default range.
This range corresponds to an unphysical range.
Definition at line 555 of file JRange.hh.
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
Check equality.
grid | UTM grid |
Definition at line 151 of file JUTMGrid.hh.
|
inlineinherited |
|
inlinestaticinherited |
Extract UTM grid.
buffer | WGS and UTM zone |
Definition at line 176 of file JUTMGrid.hh.
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
Type conversion operator.
Definition at line 117 of file JUTMPosition.hh.
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
Add UTM position.
pos | UTM position |
Definition at line 210 of file JUTMPosition.hh.
|
inlineinherited |
Subtract UTM position.
pos | UTM position |
Definition at line 226 of file JUTMPosition.hh.
|
inlineinherited |
Scale UTM position.
factor | multiplication factor |
Definition at line 242 of file JUTMPosition.hh.
|
inlineinherited |
|
inlineinherited |
Scale UTM position.
factor | division factor |
Definition at line 258 of file JUTMPosition.hh.
|
inlineinherited |
Get displacement to position.
The displacement corresponds to the 2D distance in the (East,North) plane.
position | position |
Definition at line 276 of file JUTMPosition.hh.
|
friend |
Read detector header from input.
in | input stream |
header | header |
Definition at line 103 of file JDetectorHeader.hh.
|
friend |
Write detector header to output.
out | output stream |
header | header |
Definition at line 120 of file JDetectorHeader.hh.
|
friend |
Read detector header from input.
in | input stream |
header | header |
Definition at line 141 of file JDetectorHeader.hh.
|
friend |
Write detector header to output.
out | output stream |
header | header |
Definition at line 158 of file JDetectorHeader.hh.
|
inherited |
|
protectedinherited |
Definition at line 246 of file JUTMGrid.hh.
|
protectedinherited |
Definition at line 247 of file JUTMGrid.hh.
|
protectedinherited |
Definition at line 248 of file JUTMGrid.hh.
|
protectedinherited |
Definition at line 344 of file JUTMPosition.hh.
|
protectedinherited |
Definition at line 345 of file JUTMPosition.hh.
|
protectedinherited |
Definition at line 346 of file JUTMPosition.hh.