CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes | Friends
DDExpandedNode Class Reference

represents one node in the DDExpandedView More...

#include <DDExpandedNode.h>

Public Member Functions

const DDRotationMatrixabsRotation () const
 absolute rotation of this node More...
 
const DDTranslationabsTranslation () const
 absolute translation of this node More...
 
int copyno () const
 copy number of this node More...
 
 DDExpandedNode (const DDLogicalPart &lp, const DDPosData *pd, const DDTranslation &t, const DDRotationMatrix &r, int siblingno)
 
const DDLogicalPartlogicalPart () const
 the LogicalPart describing this node More...
 
bool operator== (const DDExpandedNode &n) const
 
const DDPosDataposdata () const
 
int siblingno () const
 sibling number of this node More...
 
 ~DDExpandedNode ()
 

Private Attributes

DDLogicalPart logp_
 
const DDPosDataposd_
 
DDRotationMatrix rot_
 
int siblingno_
 
DDTranslation trans_
 

Friends

class DDExpandedView
 

Detailed Description

represents one node in the DDExpandedView

Definition at line 16 of file DDExpandedNode.h.

Constructor & Destructor Documentation

DDExpandedNode::DDExpandedNode ( const DDLogicalPart lp,
const DDPosData pd,
const DDTranslation t,
const DDRotationMatrix r,
int  siblingno 
)

Definition at line 10 of file DDExpandedNode.cc.

15  : logp_(lp), posd_(pd), trans_(t), rot_(r), siblingno_(siblingno)
16 { }
const DDPosData * posd_
DDRotationMatrix rot_
DDTranslation trans_
DDLogicalPart logp_
int siblingno() const
sibling number of this node
DDExpandedNode::~DDExpandedNode ( )

Definition at line 18 of file DDExpandedNode.cc.

19 { }

Member Function Documentation

const DDRotationMatrix& DDExpandedNode::absRotation ( ) const
inline

absolute rotation of this node

Definition at line 41 of file DDExpandedNode.h.

References copyno(), and rot_.

Referenced by CocoaAnalyzer::ReadXMLFile().

41 { return rot_; }
DDRotationMatrix rot_
const DDTranslation& DDExpandedNode::absTranslation ( ) const
inline

absolute translation of this node

Definition at line 37 of file DDExpandedNode.h.

References trans_.

Referenced by DDExpandedNodeLess::operator()(), and CocoaAnalyzer::ReadXMLFile().

37 { return trans_; }
DDTranslation trans_
int DDExpandedNode::copyno ( ) const

copy number of this node

Definition at line 26 of file DDExpandedNode.cc.

References DDPosData::copyno_, and posd_.

Referenced by absRotation(), and operator<<().

27 {
28  assert( posd_ );
29  return posd_->copyno_;
30 }
const DDPosData * posd_
int copyno_
Definition: DDPosData.h:38
const DDLogicalPart& DDExpandedNode::logicalPart ( ) const
inline

the LogicalPart describing this node

Definition at line 33 of file DDExpandedNode.h.

References logp_.

Referenced by DDExpandedNodeLess::operator()(), and operator<<().

33 { return logp_; }
DDLogicalPart logp_
bool DDExpandedNode::operator== ( const DDExpandedNode n) const

Definition at line 21 of file DDExpandedNode.cc.

References DDPosData::copyno_, logp_, and posd_.

21  {
22  return ( (logp_==n.logp_) &&
23  (posd_->copyno_ == n.posd_->copyno_) );
24 }
const DDPosData * posd_
int copyno_
Definition: DDPosData.h:38
DDLogicalPart logp_
const DDPosData* DDExpandedNode::posdata ( ) const
inline

Definition at line 50 of file DDExpandedNode.h.

References posd_.

50 { return posd_; }
const DDPosData * posd_
int DDExpandedNode::siblingno ( ) const
inline

sibling number of this node

Definition at line 47 of file DDExpandedNode.h.

References siblingno_.

Referenced by DDExpandedNodeLess::operator()().

47 { return siblingno_; }

Friends And Related Function Documentation

friend class DDExpandedView
friend

Definition at line 18 of file DDExpandedNode.h.

Member Data Documentation

DDLogicalPart DDExpandedNode::logp_
private

Definition at line 53 of file DDExpandedNode.h.

Referenced by logicalPart(), and operator==().

const DDPosData* DDExpandedNode::posd_
private

Definition at line 54 of file DDExpandedNode.h.

Referenced by copyno(), operator==(), and posdata().

DDRotationMatrix DDExpandedNode::rot_
private

Definition at line 56 of file DDExpandedNode.h.

Referenced by absRotation(), and DDExpandedView::nextSibling().

int DDExpandedNode::siblingno_
private

Definition at line 57 of file DDExpandedNode.h.

Referenced by siblingno().

DDTranslation DDExpandedNode::trans_
private

Definition at line 55 of file DDExpandedNode.h.

Referenced by absTranslation(), and DDExpandedView::nextSibling().