#include <DetectorDescription/Core/interface/DDPosData.h>
Public Member Functions | |
DDPosData (const DDTranslation &t, const DDRotation &r, int c, const DDDivision *d=NULL) | |
Creates a new relative position. | |
const DDDivision & | div () const |
const DDDivision & | division () const |
const DDRotationMatrix & | rot () const |
const DDRotationMatrix & | rotation () const |
const DDTranslation & | trans () const |
const DDTranslation & | translation () const |
Public Attributes | |
int | copyno_ |
copy number | |
const DDDivision * | div_ |
provides original division that created this pos | |
void * | replication_ |
currently not used! | |
DDRotation | rot_ |
relative rotation matrix | |
DDTranslation | trans_ |
relative translation std::vector | |
Private Member Functions | |
DDPosData () | |
DDPosData & | operator= (const DDPosData &) |
simple struct to collect information concerning the relative position of a child inside its parent.
replication is currently unused!
Definition at line 16 of file DDPosData.h.
DDPosData::DDPosData | ( | const DDTranslation & | t, | |
const DDRotation & | r, | |||
int | c, | |||
const DDDivision * | d = NULL | |||
) | [inline] |
Creates a new relative position.
t
relative translation std::vector r
relative rotation matrix c
copy numberDefinition at line 26 of file DDPosData.h.
00026 :2007-06-07) tried = 0 when i did the delete in destructor... no help/difference. 00027 : trans_(t), rot_(r), replication_(0), copyno_(c), div_(d) 00028 { 00029 //if (!rot_.rotation()) throw DDException("rotation not defined: [" + rot_.ns() + ":" + rot_.name() +"]" ); 00030 }
DDPosData::DDPosData | ( | ) | [private] |
const DDDivision& DDPosData::div | ( | ) | const [inline] |
const DDDivision& DDPosData::division | ( | ) | const [inline] |
const DDRotationMatrix& DDPosData::rot | ( | ) | const [inline] |
Definition at line 41 of file DDPosData.h.
References rot_, and DDRotation::rotation().
Referenced by DDExpandedView::firstChild(), and DDExpandedView::nextSibling().
const DDRotationMatrix& DDPosData::rotation | ( | void | ) | const [inline] |
const DDTranslation& DDPosData::trans | ( | ) | const [inline] |
const DDTranslation& DDPosData::translation | ( | void | ) | const [inline] |
Definition at line 37 of file DDPosData.h.
References trans_.
Referenced by DDDToPersFactory::position().
00037 { return trans_; }
copy number
Definition at line 52 of file DDPosData.h.
Referenced by DDExpandedNode::copyno(), DDExpandedNode::operator==(), and DDDToPersFactory::position().
const DDDivision* DDPosData::div_ |
provides original division that created this pos
Definition at line 53 of file DDPosData.h.
Referenced by div(), and division().
relative rotation matrix
Definition at line 49 of file DDPosData.h.
Referenced by DDDToPersFactory::position(), rot(), and rotation().
relative translation std::vector
Definition at line 47 of file DDPosData.h.
Referenced by DDExpandedView::firstChild(), trans(), and translation().