CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 14 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 5 of file DDExpandedNode.cc.

10  : logp_(lp), posd_(pd), trans_(t), rot_(r), siblingno_(siblingno)
11 { }
tuple t
Definition: tree.py:139
const DDPosData * posd_
DDRotationMatrix rot_
DDTranslation trans_
DDLogicalPart logp_
int siblingno() const
sibling number of this node
DDExpandedNode::~DDExpandedNode ( )

Definition at line 13 of file DDExpandedNode.cc.

14 { }

Member Function Documentation

const DDRotationMatrix& DDExpandedNode::absRotation ( ) const
inline

absolute rotation of this node

Definition at line 39 of file DDExpandedNode.h.

References rot_.

Referenced by CocoaAnalyzer::ReadXMLFile().

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

absolute translation of this node

Definition at line 35 of file DDExpandedNode.h.

References trans_.

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

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

copy number of this node

Definition at line 21 of file DDExpandedNode.cc.

References assert(), DDPosData::copyno_, and posd_.

Referenced by operator<<().

22 {
23  assert( posd_ );
24  return posd_->copyno_;
25 }
assert(m_qm.get())
const DDPosData * posd_
int copyno_
Definition: DDPosData.h:38
const DDLogicalPart& DDExpandedNode::logicalPart ( ) const
inline

the LogicalPart describing this node

Definition at line 31 of file DDExpandedNode.h.

References logp_.

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

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

Definition at line 16 of file DDExpandedNode.cc.

References DDPosData::copyno_, logp_, and posd_.

16  {
17  return ( (logp_==n.logp_) &&
18  (posd_->copyno_ == n.posd_->copyno_) );
19 }
const DDPosData * posd_
int copyno_
Definition: DDPosData.h:38
DDLogicalPart logp_
const DDPosData* DDExpandedNode::posdata ( ) const
inline

Definition at line 48 of file DDExpandedNode.h.

References posd_.

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

sibling number of this node

Definition at line 45 of file DDExpandedNode.h.

References siblingno_.

Referenced by DDExpandedNodeLess::operator()().

45 { return siblingno_; }

Friends And Related Function Documentation

friend class DDExpandedView
friend

Definition at line 16 of file DDExpandedNode.h.

Member Data Documentation

DDLogicalPart DDExpandedNode::logp_
private

Definition at line 51 of file DDExpandedNode.h.

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

const DDPosData* DDExpandedNode::posd_
private

Definition at line 52 of file DDExpandedNode.h.

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

DDRotationMatrix DDExpandedNode::rot_
private

Definition at line 54 of file DDExpandedNode.h.

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

int DDExpandedNode::siblingno_
private

Definition at line 55 of file DDExpandedNode.h.

Referenced by siblingno().

DDTranslation DDExpandedNode::trans_
private

Definition at line 53 of file DDExpandedNode.h.

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