#include <DDCompactViewImpl.h>
Public Types | |
typedef ::graph< DDLogicalPart, DDPosData * > | GraphNav |
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 &) |
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.
typedef ::graph<DDLogicalPart, DDPosData* > DDCompactViewImpl::GraphNav |
Definition at line 19 of file DDCompactViewImpl.h.
|
explicit |
Definition at line 112 of file DDCompactViewImpl.cc.
DDCompactViewImpl::DDCompactViewImpl | ( | const DDLogicalPart & | rootnodedata | ) |
DDCompactViewImpl::~DDCompactViewImpl | ( | ) |
Definition at line 15 of file DDCompactViewImpl.cc.
References graph< N, E >::edgeData(), graph< N, E >::edges(), graph_, LogDebug, root_, and graph< N, E >::size().
DDLogicalPart& DDCompactViewImpl::current | ( | ) | const |
|
inline |
Definition at line 35 of file DDCompactViewImpl.h.
References graph_.
Referenced by cuy.FindIssue::__init__().
void DDCompactViewImpl::position | ( | const DDLogicalPart & | self, |
const DDLogicalPart & | parent, | ||
int | copyno, | ||
const DDTranslation & | trans, | ||
const DDRotation & | rot, | ||
const DDDivision * | div | ||
) |
Definition at line 96 of file DDCompactViewImpl.cc.
References graph< N, E >::addEdge(), and graph_.
|
inline |
|
inline |
Definition at line 25 of file DDCompactViewImpl.h.
void DDCompactViewImpl::swap | ( | DDCompactViewImpl & | implToSwap | ) |
graphwalker< DDLogicalPart, DDPosData * > DDCompactViewImpl::walker | ( | ) | const |
returns a walker beginning at the root of the expanded-view FIXME: CompactView::walker: it is assumed, that the root of walker is FIXME: world volume (just 1 copy, unrotated, unpositioned)
Definition at line 34 of file DDCompactViewImpl.cc.
Referenced by weight().
double DDCompactViewImpl::weight | ( | const DDLogicalPart & | aPart | ) | const |
Definition at line 43 of file DDCompactViewImpl.cc.
References graphwalker< N, E >::current(), DCOUT_V, DDBase< N, C >::ddname(), DDMaterial::density(), graphwalker< N, E >::firstChild(), g, graph_, DDLogicalPart::material(), graphwalker< N, E >::nextSibling(), DDLogicalPart::solid(), DDSolid::volume(), w, walker(), and DDLogicalPart::weight().
Referenced by cuy.ValElement::__init__(), cuy.additionElement::__init__(), cuy.superimposeElement::__init__(), and cuy.graphElement::__init__().
|
protected |
Definition at line 63 of file DDCompactViewImpl.h.
Referenced by graph(), position(), swap(), walker(), weight(), and ~DDCompactViewImpl().
|
protected |
will return a walker beginning at the node specified by the PartSelector
walker_t walker(const DDPartSelector&) const;
Definition at line 62 of file DDCompactViewImpl.h.
Referenced by root(), setRoot(), walker(), and ~DDCompactViewImpl().