|
Jpp
|
Module geometry. More...
#include <JModuleGeometry.hh>
Public Types | |
| typedef unsigned int | JUINT32_t |
Public Member Functions | |
| JModuleGeometry () | |
| Default constructor. More... | |
| JModuleGeometry (const JDAQUTCExtended &utc, const JModuleIdentifier &id, const JPosition3D &pos, const JEulerAngle3D &angle) | |
| Constructor. More... | |
| JUINT32_t | getUTCseconds () const |
| Get time. More... | |
| JUINT32_t | getUTC16nanosecondcycles () const |
| Get time. More... | |
| double | getTimeNanoSecond () const |
| Get time (limited to 16 ns cycles). More... | |
| void | setTimeNanoSecond (const double utc_ns) |
| Set time. More... | |
| ClassDef (JDAQUTCExtended, 1) | |
| int | getID () const |
| Get identifier. More... | |
| void | setID (const int id) |
| Set identifier. More... | |
| bool | less (const JObjectID &object) const |
| Less than method. More... | |
| bool | less (const int id) const |
| Less than method. More... | |
| bool | more (const int id) const |
| More than method. 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... | |
| 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... | |
| 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 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 & | cross (const JVector3D &first, const JVector3D &second) |
| Get cross product. More... | |
| const JEulerAngle3D & | getEulerAngle () const |
| Get Euler angle. More... | |
| void | setEulerAngle (const JEulerAngle3D &angle) |
| Set Euler angle. More... | |
| JEulerAngle3D & | negate () |
| Negate angle. More... | |
| JEulerAngle3D & | add (const JEulerAngle3D &angle) |
| Add angle. More... | |
| JEulerAngle3D & | sub (const JEulerAngle3D &angle) |
| Subtract angle. More... | |
| JEulerAngle3D & | mul (const double factor) |
| Scale angle. More... | |
| JEulerAngle3D & | mul (const JSecond_t &object) |
| Multiply with object. More... | |
| JEulerAngle3D & | div (const double factor) |
| Scale angle. More... | |
| double | getAlpha () const |
| Get alpha angle. More... | |
| double | getBeta () const |
| Get beta angle. More... | |
| double | getGamma () const |
| Get gamma angle. More... | |
Static Public Member Functions | |
| static JDAQUTCExtended | min () |
| Get minimum possible value. More... | |
| static JDAQUTCExtended | max () |
| Get maximum possible value. More... | |
| static JUINT32_t | getMask () |
| Get mask for seconds data. More... | |
| static double | getTick () |
| Get number of nano-seconds per tick. More... | |
Protected Attributes | |
| JUINT32_t | UTC_seconds |
| JUINT32_t | UTC_16nanosecondcycles |
| int | __id |
| double | __x |
| double | __y |
| double | __z |
| double | __alpha |
| double | __beta |
| double | __gamma |
Friends | |
| std::istream & | operator>> (std::istream &in, JModuleGeometry &geometry) |
| Read module geometry from input. More... | |
| std::ostream & | operator<< (std::ostream &out, const JModuleGeometry &geometry) |
| Write module geometry to output. More... | |
| JReader & | operator>> (JReader &in, JModuleGeometry &geometry) |
| Read module geometry from input. More... | |
| JWriter & | operator<< (JWriter &out, const JModuleGeometry &geometry) |
| Write module geometry to output. More... | |
Module geometry.
Definition at line 30 of file JModuleGeometry.hh.
|
inherited |
Definition at line 26 of file JDAQUTCExtended.hh.
|
inline |
Default constructor.
Definition at line 40 of file JModuleGeometry.hh.
|
inline |
Constructor.
| utc | UTC |
| id | module identifier |
| pos | module position |
| angle | module orientation |
Definition at line 56 of file JModuleGeometry.hh.
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
Get time (limited to 16 ns cycles).
Definition at line 100 of file JDAQUTCExtended.hh.
|
inlineinherited |
|
inlinestaticinherited |
Get minimum possible value.
Definition at line 123 of file JDAQUTCExtended.hh.
|
inlinestaticinherited |
Get maximum possible value.
Definition at line 134 of file JDAQUTCExtended.hh.
|
inlinestaticinherited |
|
inlinestaticinherited |
Get number of nano-seconds per tick.
Definition at line 157 of file JDAQUTCExtended.hh.
|
inherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
Less than method.
| object | object identifier |
Definition at line 78 of file JObjectID.hh.
|
inlineinherited |
Less than method.
| id | identifier |
Definition at line 90 of file JObjectID.hh.
|
inlineinherited |
More than method.
| id | identifier |
Definition at line 102 of file JObjectID.hh.
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
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 |
|
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 |
|
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 |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
Get dot product.
| vector | vector |
Definition at line 281 of file JVector3D.hh.
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
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 |
|
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.
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
Scale angle.
| factor | multiplication factor |
Definition at line 163 of file JEulerAngle3D.hh.
|
inlineinherited |
Multiply with object.
| object | object |
Definition at line 273 of file JMath.hh.
|
inlineinherited |
Scale angle.
| factor | division factor |
Definition at line 179 of file JEulerAngle3D.hh.
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
friend |
Read module geometry from input.
| in | input stream |
| geometry | module geometry |
Definition at line 74 of file JModuleGeometry.hh.
|
friend |
Write module geometry to output.
| out | output stream |
| geometry | module geometry |
Definition at line 92 of file JModuleGeometry.hh.
|
friend |
Read module geometry from input.
| in | reader |
| geometry | module geometry |
Definition at line 113 of file JModuleGeometry.hh.
|
friend |
Write module geometry to output.
| out | writer |
| geometry | module geometry |
Definition at line 131 of file JModuleGeometry.hh.
|
protectedinherited |
Definition at line 205 of file JDAQUTCExtended.hh.
|
protectedinherited |
Definition at line 206 of file JDAQUTCExtended.hh.
|
protectedinherited |
Definition at line 160 of file JObjectID.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.
|
protectedinherited |
Definition at line 287 of file JEulerAngle3D.hh.
|
protectedinherited |
Definition at line 288 of file JEulerAngle3D.hh.
|
protectedinherited |
Definition at line 289 of file JEulerAngle3D.hh.
1.8.16