#include <DDCompactViewImpl.h>
Public Types | |
using | GraphNav = math::Graph< DDLogicalPart, DDPosData * > |
using | WalkerType = math::GraphWalker< DDLogicalPart, DDPosData * > |
Public Member Functions | |
DDLogicalPart & | current () const |
DDCompactViewImpl () | |
DDCompactViewImpl (const DDLogicalPart &rootnodedata) | |
const GraphNav & | graph () const |
void | position (const DDLogicalPart &self, const DDLogicalPart &parent, int copyno, const DDTranslation &trans, const DDRotation &rot, const DDDivision *div) |
const DDLogicalPart & | root () const |
void | setRoot (const DDLogicalPart &root) |
void | swap (DDCompactViewImpl &) |
math::GraphWalker< DDLogicalPart, DDPosData * > | walker () const |
double | weight (const DDLogicalPart &) const |
~DDCompactViewImpl () | |
Protected Attributes | |
GraphNav | graph_ |
DDLogicalPart | root_ |
Definition at line 15 of file DDCompactViewImpl.h.
using DDCompactViewImpl::GraphNav = math::Graph<DDLogicalPart, DDPosData* > |
Definition at line 19 of file DDCompactViewImpl.h.
Definition at line 20 of file DDCompactViewImpl.h.
|
explicit |
Definition at line 119 of file DDCompactViewImpl.cc.
DDCompactViewImpl::DDCompactViewImpl | ( | const DDLogicalPart & | rootnodedata | ) |
DDCompactViewImpl::~DDCompactViewImpl | ( | ) |
Definition at line 21 of file DDCompactViewImpl.cc.
References math::Graph< N, E >::edgeData(), math::Graph< N, E >::edges(), graph_, LogDebug, root_, and math::Graph< N, E >::size().
DDLogicalPart& DDCompactViewImpl::current | ( | ) | const |
Referenced by root().
|
inline |
Definition at line 33 of file DDCompactViewImpl.h.
References graph_, class-composition::parent, position(), makeMuonMisalignmentScenario::rot, swap(), walker(), and weight().
void DDCompactViewImpl::position | ( | const DDLogicalPart & | self, |
const DDLogicalPart & | parent, | ||
int | copyno, | ||
const DDTranslation & | trans, | ||
const DDRotation & | rot, | ||
const DDDivision * | div | ||
) |
Definition at line 103 of file DDCompactViewImpl.cc.
References math::Graph< N, E >::addEdge(), and graph_.
Referenced by graph().
|
inline |
Definition at line 29 of file DDCompactViewImpl.h.
References current(), and root_.
Referenced by setRoot().
|
inline |
Definition at line 27 of file DDCompactViewImpl.h.
void DDCompactViewImpl::swap | ( | DDCompactViewImpl & | implToSwap | ) |
Definition at line 115 of file DDCompactViewImpl.cc.
References graph_, and math::Graph< N, E >::swap().
Referenced by graph().
math::GraphWalker< DDLogicalPart, DDPosData * > DDCompactViewImpl::walker | ( | ) | const |
double DDCompactViewImpl::weight | ( | const DDLogicalPart & | aPart | ) | const |
Definition at line 52 of file DDCompactViewImpl.cc.
References class-composition::child, math::GraphWalker< N, E >::current(), DDBase< N, C >::ddname(), DDMaterial::density(), math::GraphWalker< N, E >::firstChild(), g, graph_, DDLogicalPart::material(), math::GraphWalker< N, E >::nextSibling(), DDLogicalPart::solid(), DDSolid::volume(), w, walker(), and DDLogicalPart::weight().
Referenced by graph().
|
protected |
Definition at line 51 of file DDCompactViewImpl.h.
Referenced by graph(), position(), swap(), walker(), weight(), and ~DDCompactViewImpl().
|
protected |
Definition at line 50 of file DDCompactViewImpl.h.
Referenced by root(), setRoot(), walker(), and ~DDCompactViewImpl().