Jpp
|
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) | |
Constructor. More... | |
JPosition3D | getPosition (const JModel::JString ¶meters, const double height) const |
Get position at given height according to actual string parameters. More... | |
JPosition3D | getPosition (const JModel::JString ¶meters, const int floor) const |
Get position of given floor according to actual string parameters. More... | |
JPosition3D | getPosition (const double height) const |
Get position at given height according to default string parameters. More... | |
JPosition3D | getPosition (const int floor) const |
Get position of given floor according to default string parameters. More... | |
double | getDistance (const JModel::JString ¶meters, const JVector3D &position, const int floor) const |
Get distance between given position and floor according to actual string 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 actual string 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... | |
JVector3D & | mul (const JNullType &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 & | cross (const JVector3D &first, const JVector3D &second) |
Get cross product. More... | |
virtual void | clear () |
Clear. More... | |
virtual mapped_type & | get (typename JClass< key_type >::argument_type key) |
Get mapped value. More... | |
virtual const mapped_type & | get (typename JClass< key_type >::argument_type key) const |
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... | |
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 | 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... | |
JHashMapEvaluator< JEvaluator_t > | getValue |
Function object for evaluation of element. More... | |
Protected Attributes | |
double | __x |
double | __y |
double | __z |
JRouter< int > | router |
Friends | |
std::ostream & | operator<< (std::ostream &out, const JString &string) |
Write string parameters to output stream. More... | |
String geometry.
A piezo sensor is mounted in each optical module.
The position of the piezo is determined from the actual string parameters and the floor number of the optical module.
A hydrophone is mounted on the anchor which corresponds to floor zero.
It has a fixed position which is relative to the reference position of the string.
Definition at line 102 of file JGeometry.hh.
|
inherited |
Definition at line 77 of file JHashMap.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 82 of file JHashMap.hh.
|
inherited |
Definition at line 83 of file JHashMap.hh.
|
inherited |
Definition at line 85 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.
|
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 124 of file JGeometry.hh.
|
inline |
Constructor.
The template parameter should correspond to a data type which implements the following policy methods.
int getFloor(); JPosition3D getPosition();
The given position corresponds to the reference point of the string from which the positions of the piezo sensors and hydrophone are calculated.
Note that the position of the piezo is offset by JACOUSTICS::getPiezoPosition and that the position of the hydrophone should manually be set.
position | position |
__begin | begin of optical modules |
__end | end of optical modules |
Definition at line 149 of file JGeometry.hh.
|
inline |
Get position at given height according to actual string parameters.
parameters | parameters |
height | height |
Definition at line 167 of file JGeometry.hh.
|
inline |
Get position of given floor according to actual string parameters.
parameters | parameters |
floor | floor |
Definition at line 187 of file JGeometry.hh.
|
inline |
Get position at given height according to default string parameters.
height | height |
Definition at line 205 of file JGeometry.hh.
|
inline |
Get position of given floor according to default string parameters.
floor | floor |
Definition at line 217 of file JGeometry.hh.
|
inline |
Get distance between given position and floor according to actual string parameters.
parameters | parameters |
position | position |
floor | floor |
Definition at line 231 of file JGeometry.hh.
|
inline |
Get model gradient of distance between given position and floor according to actual string parameters.
parameters | parameters |
position | position |
floor | floor |
Definition at line 247 of file JGeometry.hh.
|
inlineinherited |
Get position.
Definition at line 129 of file JPosition3D.hh.
|
inlineinherited |
Get position.
Definition at line 140 of file JPosition3D.hh.
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
Type conversion operator.
Definition at line 173 of file JPosition3D.hh.
|
inlineinherited |
Rotate.
R | rotation matrix |
Definition at line 185 of file JPosition3D.hh.
|
inlineinherited |
Rotate around X-axis.
R | rotation matrix |
Definition at line 213 of file JPosition3D.hh.
|
inlineinherited |
Rotate around Y-axis.
R | rotation matrix |
Definition at line 241 of file JPosition3D.hh.
|
inlineinherited |
Rotate around Z-axis.
R | rotation matrix |
Definition at line 269 of file JPosition3D.hh.
|
inlineinherited |
Rotate.
Q | quaternion |
Definition at line 297 of file JPosition3D.hh.
|
inlineinherited |
Rotate back.
R | rotation matrix |
Definition at line 199 of file JPosition3D.hh.
|
inlineinherited |
Rotate back around X-axis.
R | rotation matrix |
Definition at line 227 of file JPosition3D.hh.
|
inlineinherited |
Rotate back around Y-axis.
R | rotation matrix |
Definition at line 255 of file JPosition3D.hh.
|
inlineinherited |
Rotate back around Z-axis.
R | rotation matrix |
Definition at line 283 of file JPosition3D.hh.
|
inlineinherited |
Rotate back.
Q | quaternion |
Definition at line 311 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 330 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 358 of file JPosition3D.hh.
|
inlineinherited |
Get dot product.
angle | angle |
Definition at line 377 of file JPosition3D.hh.
|
inlineinherited |
Get dot product.
dir | direction |
Definition at line 392 of file JPosition3D.hh.
|
inlineinherited |
Get dot product.
dir | direction |
Definition at line 407 of file JPosition3D.hh.
|
inlineinherited |
Get dot product.
vector | vector |
Definition at line 281 of file JVector3D.hh.
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
Subtract vector.
vector | vector |
Definition at line 157 of file JVector3D.hh.
|
inlineinherited |
Scale vector.
factor | multiplication factor |
Definition at line 173 of file JVector3D.hh.
|
inlineinherited |
Multiply with object.
object | object |
Definition at line 273 of file JMath.hh.
|
inlineinherited |
Scale vector.
factor | division factor |
Definition at line 189 of file JVector3D.hh.
|
inlineinherited |
Check equality.
vector | vector |
precision | precision |
Definition at line 220 of file JVector3D.hh.
|
inlineinherited |
|
inlineinherited |
Get length.
Definition at line 245 of file JVector3D.hh.
|
inlineinherited |
Get squared of distance to point.
pos | position |
Definition at line 257 of file JVector3D.hh.
|
inlineinherited |
Get distance to point.
pos | position |
Definition at line 269 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 298 of file JVector3D.hh.
|
inlinevirtualinherited |
Clear.
Implements JTOOLS::JMappableCollection< JKey_t, JValue_t >.
Definition at line 106 of file JHashMap.hh.
|
inlinevirtualinherited |
Get mapped value.
key | key |
Implements JTOOLS::JMappableCollection< JKey_t, JValue_t >.
Definition at line 118 of file JHashMap.hh.
|
inlinevirtualinherited |
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 138 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 140 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 161 of file JHashCollection.hh.
|
inlineinherited |
Find element with given value.
value | value |
Definition at line 102 of file JHashCollection.hh.
|
inlineinherited |
Find element with given value.
value | value |
Definition at line 120 of file JHashCollection.hh.
|
inlinevirtualinherited |
Insert element.
element | element |
Definition at line 179 of file JHashCollection.hh.
|
inlineinherited |
Erase element at given position.
pos | valid position |
Definition at line 201 of file JHashCollection.hh.
|
inlineinherited |
Erase elements in given range.
__begin | begin position (included) |
__end | end position (excluded) |
Definition at line 217 of file JHashCollection.hh.
|
inlineinherited |
Erase element with given value.
value | value |
Definition at line 236 of file JHashCollection.hh.
|
inlineinherited |
Test whether given value is present.
value | value |
Definition at line 258 of file JHashCollection.hh.
|
inlineinherited |
Get index of given value.
value | value |
Definition at line 271 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 287 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 304 of file JGeometry.hh.
|
protectedinherited |
Definition at line 309 of file JVector3D.hh.
|
protectedinherited |
Definition at line 310 of file JVector3D.hh.
|
protectedinherited |
Definition at line 311 of file JVector3D.hh.
|
inherited |
Function object for evaluation of element.
Definition at line 280 of file JHashCollection.hh.
|
protectedinherited |
Definition at line 284 of file JHashCollection.hh.