#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 113 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__(), DDCompactView::graph(), and DDCompactView::writeableGraph().
void DDCompactViewImpl::position | ( | const DDLogicalPart & | self, |
const DDLogicalPart & | parent, | ||
int | copyno, | ||
const DDTranslation & | trans, | ||
const DDRotation & | rot, | ||
const DDDivision * | div | ||
) |
Definition at line 97 of file DDCompactViewImpl.cc.
References graph< N, E >::addEdge(), and graph_.
Referenced by DDCompactView::position().
|
inline |
Definition at line 27 of file DDCompactViewImpl.h.
References root_.
Referenced by DDCompactView::root(), and setRoot().
|
inline |
void DDCompactViewImpl::swap | ( | DDCompactViewImpl & | implToSwap | ) |
Definition at line 109 of file DDCompactViewImpl.cc.
References graph_, and graph< N, E >::swap().
Referenced by DDCompactView::swap().
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.
References DCOUT, graph_, and root_.
Referenced by DDCompactView::walker(), and weight().
double DDCompactViewImpl::weight | ( | const DDLogicalPart & | aPart | ) | const |
Definition at line 44 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__(), cuy.graphElement::__init__(), and DDCompactView::weight().
|
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().