Jpp
15.0.1
the software that should make you happy
|
String geometry. More...
#include <JGeometry.hh>
Public Types | |
typedef JKey_t | key_type |
typedef JValue_t | mapped_type |
typedef std::pair< JKey_t, JValue_t > | value_type |
typedef JHashMapEvaluator < JEvaluator_t > | evaluator_type |
typedef JHashCollection < value_type, evaluator_type > | collection_type |
typedef collection_type::container_type | container_type |
typedef container_type::const_iterator | const_iterator |
typedef container_type::const_reverse_iterator | const_reverse_iterator |
typedef container_type::iterator | iterator |
typedef container_type::reverse_iterator | reverse_iterator |
Public Member Functions | |
JString () | |
Default constructor. More... | |
JString (const JVector3D &position) | |
Constructor. More... | |
template<class T > | |
JString (const JVector3D &position, T __begin, T __end, const JMechanics &mechanics) | |
Constructor. More... | |
bool | hasFloor (int floor) const |
Check if this string has given floor. More... | |
double | getHeight (const int floor) const |
Get height of given floor. More... | |
JPosition3D | getPosition (const JMODEL::JString ¶meters, const double height) const |
Get position at given height according to given string model parameters. More... | |
JPosition3D | getPosition (const JMODEL::JString ¶meters, const int floor) const |
Get position of given floor according to given string model parameters. More... | |
JPosition3D | getPosition (const double height) const |
Get position at given height according to default string model parameters. More... | |
JPosition3D | getPosition (const int floor) const |
Get position of given floor according to default string model parameters. More... | |
double | getDistance (const JMODEL::JString ¶meters, const JVector3D &position, const int floor) const |
Get distance between given position and floor according to given string model parameters. More... | |
JMODEL::JString | getGradient (const JMODEL::JString ¶meters, const JVector3D &position, const int floor) const |
Get model gradient of distance between given position and floor according to given string model parameters. More... | |
const JPosition3D & | getPosition () const |
Get position. More... | |
JPosition3D & | getPosition () |
Get position. More... | |
void | setPosition (const JVector3D &pos) |
Set position. More... | |
operator JAngle3D () const | |
Type conversion operator. More... | |
operator JVersor3D () const | |
Type conversion operator. More... | |
JPosition3D & | rotate (const JRotation3D &R) |
Rotate. More... | |
JPosition3D & | rotate (const JRotation3X &R) |
Rotate around X-axis. More... | |
JPosition3D & | rotate (const JRotation3Y &R) |
Rotate around Y-axis. More... | |
JPosition3D & | rotate (const JRotation3Z &R) |
Rotate around Z-axis. More... | |
JPosition3D & | rotate (const JQuaternion3D &Q) |
Rotate. More... | |
JPosition3D & | rotate_back (const JRotation3D &R) |
Rotate back. More... | |
JPosition3D & | rotate_back (const JRotation3X &R) |
Rotate back around X-axis. More... | |
JPosition3D & | rotate_back (const JRotation3Y &R) |
Rotate back around Y-axis. More... | |
JPosition3D & | rotate_back (const JRotation3Z &R) |
Rotate back around Z-axis. More... | |
JPosition3D & | rotate_back (const JQuaternion3D &Q) |
Rotate back. More... | |
void | transform (const JRotation3D &R, const JVector3D &pos) |
Transform position. More... | |
JVector3D & | transform (const JMatrix3D &T) |
Transform. More... | |
void | transform_back (const JRotation3D &R, const JVector3D &pos) |
Transform back position. More... | |
double | getDot (const JAngle3D &angle) const |
Get dot product. More... | |
double | getDot (const JVersor3D &dir) const |
Get dot product. More... | |
double | getDot (const JVersor3Z &dir) const |
Get dot product. More... | |
double | getDot (const JVector3D &vector) const |
Get dot product. More... | |
operator JVector2D () const | |
Type conversion operator. More... | |
double | getX () const |
Get x position. More... | |
double | getY () const |
Get y position. More... | |
double | getZ () const |
Get z position. More... | |
JVector3D & | negate () |
Negate vector. More... | |
JVector3D & | add (const JVector3D &vector) |
Add vector. More... | |
JVector3D & | sub (const JVector3D &vector) |
Subtract vector. More... | |
JVector3D & | mul (const double factor) |
Scale vector. More... | |
JFirst_t & | mul (const JSecond_t &object) |
Multiply with object. More... | |
JVector3D & | div (const double factor) |
Scale vector. More... | |
bool | equals (const JVector3D &vector, const double precision=std::numeric_limits< double >::min()) const |
Check equality. More... | |
double | getLengthSquared () const |
Get length squared. More... | |
double | getLength () const |
Get length. More... | |
double | getDistanceSquared (const JVector3D &pos) const |
Get squared of distance to point. More... | |
double | getDistance (const JVector3D &pos) const |
Get distance to point. More... | |
JVector3D & | getCross (const JVector3D &first, const JVector3D &second) |
Get cross product. More... | |
virtual void | clear () override |
Clear. More... | |
virtual mapped_type & | get (typename JClass< key_type >::argument_type key) override |
Get mapped value. More... | |
virtual const mapped_type & | get (typename JClass< key_type >::argument_type key) const override |
Get mapped value. More... | |
value_type & | get (const T &value) |
Get element with given value. More... | |
const value_type & | get (const T &value) const |
Get element with given value. More... | |
void | swap (JHashCollection &collection) |
Swap hash collection. More... | |
const_iterator | find (const T &value) const |
Find element with given value. More... | |
iterator | find (const T &value) |
Find element with given value. More... | |
virtual bool | insert (const value_type &element) |
Insert element. More... | |
void | insert (T __begin, T __end) |
Insert values. More... | |
void | erase (iterator pos) |
Erase element at given position. More... | |
void | erase (iterator __begin, iterator __end) |
Erase elements in given range. More... | |
bool | erase (const T &value) |
Erase element with given value. More... | |
bool | has (const T &value) const |
Test whether given value is present. More... | |
int | getIndex (const T &value) const |
Get index of given value. More... | |
const mapped_type & | operator[] (typename JClass< key_type >::argument_type key) const |
Get mapped value. More... | |
mapped_type & | operator[] (typename JClass< key_type >::argument_type key) |
Get mapped value. More... | |
void | put (typename JClass< key_type >::argument_type key, typename JClass< mapped_type >::argument_type value) |
Put pair-wise element (key,value) into collection. More... | |
Public Attributes | |
JPosition3D | hydrophone |
Hydrophone. More... | |
bool | has_hydrophone |
JMechanics | mechanics |
Mechanical data. More... | |
JHashMapEvaluator< JEvaluator_t > | getValue |
Function object for evaluation of element. More... | |
Protected Attributes | |
double | __x |
double | __y |
double | __z |
JTOOLS::JHashCollection::router_type | router |
Friends | |
std::ostream & | operator<< (std::ostream &out, const JString &string) |
Write string parameters to output stream. More... | |
String geometry.
This data structure provides for the implementation of the dynamical geometry of a detector string.
In this, the position of floor > 0 corresponds to the piezo sensor which is mounted in the optical module and the position of floor = 0 to the hydrophone which is optionally mounted on the anchor.
The reference position of a string corresponds to the top of the so-called T-bar located on the anchor.
The position of a piezo sensor depends on the tilt of the string and the mechanical model.
The position of the hydrophone is fixed. Its value is relative to the reference position of the string.
Definition at line 121 of file JGeometry.hh.
|
inherited |
Definition at line 78 of file JHashMap.hh.
|
inherited |
Definition at line 79 of file JHashMap.hh.
|
inherited |
Definition at line 80 of file JHashMap.hh.
|
inherited |
Definition at line 81 of file JHashMap.hh.
|
inherited |
Definition at line 83 of file JHashMap.hh.
|
inherited |
Definition at line 84 of file JHashMap.hh.
|
inherited |
Definition at line 86 of file JHashMap.hh.
|
inherited |
Definition at line 87 of file JHashMap.hh.
|
inherited |
Definition at line 88 of file JHashMap.hh.
|
inherited |
Definition at line 89 of file JHashMap.hh.
|
inline |
|
inline |
Constructor.
The given position corresponds to the reference point of the string from which the positions of the piezo sensors and hydrophone are calculated.
position | position |
Definition at line 145 of file JGeometry.hh.
|
inline |
Constructor.
The given position corresponds to the reference position of the string from which the positions of the piezo sensors and hydrophone are calculated.
The template parameter should correspond to a data type which implements the following policy methods.
int getFloor(); JGEOMETRY3d::JPosition3D getPosition();
In this, the position should correspond to the center of the optical module.
Note that the position of the piezo is offset by JDETECTOR::getPiezoPosition with respect to the center of the optical module.
The position of the hydrophone should separately be set.
position | position |
__begin | begin of optical modules |
__end | end of optical modules |
mechanics | mechanical model parameters |
Definition at line 173 of file JGeometry.hh.
|
inline |
Check if this string has given floor.
floor | floor |
Definition at line 193 of file JGeometry.hh.
|
inline |
Get height of given floor.
floor | floor |
Definition at line 208 of file JGeometry.hh.
|
inline |
Get position at given height according to given string model parameters.
parameters | parameters |
height | height |
Definition at line 232 of file JGeometry.hh.
|
inline |
Get position of given floor according to given string model parameters.
parameters | parameters |
floor | floor |
Definition at line 253 of file JGeometry.hh.
|
inline |
Get position at given height according to default string model parameters.
height | height |
Definition at line 277 of file JGeometry.hh.
|
inline |
Get position of given floor according to default string model parameters.
floor | floor |
Definition at line 289 of file JGeometry.hh.
|
inline |
Get distance between given position and floor according to given string model parameters.
parameters | parameters |
position | position |
floor | floor |
Definition at line 303 of file JGeometry.hh.
|
inline |
Get model gradient of distance between given position and floor according to given string model parameters.
parameters | parameters |
position | position |
floor | floor |
Definition at line 319 of file JGeometry.hh.
|
inlineinherited |
Get position.
Definition at line 130 of file JPosition3D.hh.
|
inlineinherited |
Get position.
Definition at line 141 of file JPosition3D.hh.
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
Type conversion operator.
Definition at line 174 of file JPosition3D.hh.
|
inlineinherited |
Rotate.
R | rotation matrix |
Definition at line 186 of file JPosition3D.hh.
|
inlineinherited |
Rotate around X-axis.
R | rotation matrix |
Definition at line 214 of file JPosition3D.hh.
|
inlineinherited |
Rotate around Y-axis.
R | rotation matrix |
Definition at line 242 of file JPosition3D.hh.
|
inlineinherited |
Rotate around Z-axis.
R | rotation matrix |
Definition at line 270 of file JPosition3D.hh.
|
inlineinherited |
Rotate.
Q | quaternion |
Definition at line 298 of file JPosition3D.hh.
|
inlineinherited |
Rotate back.
R | rotation matrix |
Definition at line 200 of file JPosition3D.hh.
|
inlineinherited |
Rotate back around X-axis.
R | rotation matrix |
Definition at line 228 of file JPosition3D.hh.
|
inlineinherited |
Rotate back around Y-axis.
R | rotation matrix |
Definition at line 256 of file JPosition3D.hh.
|
inlineinherited |
Rotate back around Z-axis.
R | rotation matrix |
Definition at line 284 of file JPosition3D.hh.
|
inlineinherited |
Rotate back.
Q | quaternion |
Definition at line 312 of file JPosition3D.hh.
|
inlineinherited |
Transform position.
The final position is obtained as follows:
R | rotation matrix |
pos | position of origin (after rotation) |
Definition at line 331 of file JPosition3D.hh.
|
inlineinherited |
Transform back position.
The final position is obtained as follows:
R | rotation matrix |
pos | position of origin (before rotation) |
Definition at line 359 of file JPosition3D.hh.
|
inlineinherited |
Get dot product.
angle | angle |
Definition at line 378 of file JPosition3D.hh.
|
inlineinherited |
Get dot product.
dir | direction |
Definition at line 393 of file JPosition3D.hh.
|
inlineinherited |
Get dot product.
dir | direction |
Definition at line 408 of file JPosition3D.hh.
|
inlineinherited |
Get dot product.
vector | vector |
Definition at line 282 of file JVector3D.hh.
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
Subtract vector.
vector | vector |
Definition at line 158 of file JVector3D.hh.
|
inlineinherited |
Scale vector.
factor | multiplication factor |
Definition at line 174 of file JVector3D.hh.
|
inlineinherited |
Multiply with object.
object | object |
Definition at line 357 of file JMath.hh.
|
inlineinherited |
Scale vector.
factor | division factor |
Definition at line 190 of file JVector3D.hh.
|
inlineinherited |
Check equality.
vector | vector |
precision | precision |
Definition at line 221 of file JVector3D.hh.
|
inlineinherited |
|
inlineinherited |
Get length.
Definition at line 246 of file JVector3D.hh.
|
inlineinherited |
Get squared of distance to point.
pos | position |
Definition at line 258 of file JVector3D.hh.
|
inlineinherited |
Get distance to point.
pos | position |
Definition at line 270 of file JVector3D.hh.
|
inlineinherited |
Get cross product.
Note that this vector should not overlap with the first or second vector,
first | first vector |
second | second vector |
Definition at line 299 of file JVector3D.hh.
|
inlineoverridevirtualinherited |
Clear.
Implements JTOOLS::JMappableCollection< JKey_t, JValue_t >.
Definition at line 107 of file JHashMap.hh.
|
inlineoverridevirtualinherited |
Get mapped value.
key | key |
Implements JTOOLS::JMappableCollection< JKey_t, JValue_t >.
Definition at line 119 of file JHashMap.hh.
|
inlineoverridevirtualinherited |
Get mapped value.
This method will throw an exception if given key is not present following the prerequisite of constness.
key | key |
Implements JTOOLS::JMappableCollection< JKey_t, JValue_t >.
Definition at line 139 of file JHashMap.hh.
|
inlineinherited |
Get element with given value.
This method will throw an exception if given value is not present following the prerequisite of constness.
value | value |
Definition at line 176 of file JHashCollection.hh.
|
inlineinherited |
Get element with given value.
This method will throw an exception if given value is not present following the prerequisite of constness.
value | value |
Definition at line 197 of file JHashCollection.hh.
|
inlineinherited |
Swap hash collection.
collection | hash collection |
Definition at line 123 of file JHashCollection.hh.
|
inlineinherited |
Find element with given value.
value | value |
Definition at line 138 of file JHashCollection.hh.
|
inlineinherited |
Find element with given value.
value | value |
Definition at line 156 of file JHashCollection.hh.
|
inlinevirtualinherited |
Insert element.
element | element |
Definition at line 215 of file JHashCollection.hh.
|
inlineinherited |
Insert values.
__begin | begin of values |
__end | end of values |
Definition at line 239 of file JHashCollection.hh.
|
inlineinherited |
Erase element at given position.
pos | valid position |
Definition at line 252 of file JHashCollection.hh.
|
inlineinherited |
Erase elements in given range.
__begin | begin position (included) |
__end | end position (excluded) |
Definition at line 268 of file JHashCollection.hh.
|
inlineinherited |
Erase element with given value.
value | value |
Definition at line 287 of file JHashCollection.hh.
|
inlineinherited |
Test whether given value is present.
value | value |
Definition at line 309 of file JHashCollection.hh.
|
inlineinherited |
Get index of given value.
value | value |
Definition at line 322 of file JHashCollection.hh.
|
inlineinherited |
Get mapped value.
key | key |
Definition at line 73 of file JMappableCollection.hh.
|
inlineinherited |
Get mapped value.
key | key |
Definition at line 85 of file JMappableCollection.hh.
|
inlineinherited |
Put pair-wise element (key,value) into collection.
key | key |
value | value |
Definition at line 97 of file JMappableCollection.hh.
|
friend |
Write string parameters to output stream.
out | output stream |
string | string |
Definition at line 360 of file JGeometry.hh.
JPosition3D JACOUSTICS::JGEOMETRY::JString::hydrophone |
Hydrophone.
The position of the hydrophone is relative to the reference position of the string.
Definition at line 380 of file JGeometry.hh.
bool JACOUSTICS::JGEOMETRY::JString::has_hydrophone |
Definition at line 381 of file JGeometry.hh.
JMechanics JACOUSTICS::JGEOMETRY::JString::mechanics |
Mechanical data.
Definition at line 386 of file JGeometry.hh.
|
protectedinherited |
Definition at line 310 of file JVector3D.hh.
|
protectedinherited |
Definition at line 311 of file JVector3D.hh.
|
protectedinherited |
Definition at line 312 of file JVector3D.hh.
|
inherited |
Function object for evaluation of element.
Definition at line 331 of file JHashCollection.hh.
|
protectedinherited |