CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
DDCompactViewImpl.h
Go to the documentation of this file.
1 #ifndef DDCompactViewImpl_h
2 #define DDCompactViewImpl_h
3 
4 // IMPORTANT: DO NOT USE THIS: It is here temporarily only to obey the rule that
5 // any .h that includes a .h even if it is not meant to be a public interface must
6 // remain in the interface directory. If you fix/move/change this please delete
7 // this comment! -- Michael Case 2007-04-05
8 
12 
13 class DDPartSelector;
14 
16 {
17 public:
18 
19  typedef ::graph<DDLogicalPart, DDPosData* > GraphNav;
20  explicit DDCompactViewImpl();
21  DDCompactViewImpl(const DDLogicalPart & rootnodedata);
23 
24  //reassigns root with no check!!!
25  void setRoot(const DDLogicalPart & root) { root_=root; }
26 
27  const DDLogicalPart & root() const { return root_; }
28 
29  DDLogicalPart & current() const;
30 
31  // std::pair<bool,DDPhysicalPart> goTo(const DDPartSelector &) const;
32 
33  //expnode_t * expand(const DDPartSelector & path) const;
34 
35  const GraphNav & graph() const { return graph_; }
42 
43  //double weight(DDLogicalPart &);
44  double weight(const DDLogicalPart &) const;
45 
46  void position (const DDLogicalPart & self,
47  const DDLogicalPart & parent,
48  int copyno,
49  const DDTranslation & trans,
50  const DDRotation & rot,
51  const DDDivision * div);
52 
53  void swap( DDCompactViewImpl& );
60 protected:
61  // internal use ! (see comments in DDCompactView(bool)!)
64 };
65 #endif
void position(const DDLogicalPart &self, const DDLogicalPart &parent, int copyno, const DDTranslation &trans, const DDRotation &rot, const DDDivision *div)
DDLogicalPart & current() const
graphwalker< DDLogicalPart, DDPosData * > walker() const
list parent
Definition: dbtoconf.py:74
void setRoot(const DDLogicalPart &root)
DDLogicalPart root_
::graph< DDLogicalPart, DDPosData * > GraphNav
ROOT::Math::DisplacementVector3D< ROOT::Math::Cartesian3D< double > > DDTranslation
Definition: DDTranslation.h:7
Represents a uniquely identifyable rotation matrix.
Definition: DDTransform.h:66
A DDLogicalPart aggregates information concerning material, solid and sensitveness ...
Definition: DDLogicalPart.h:88
void swap(DDCompactViewImpl &)
const DDLogicalPart & root() const
double weight(const DDLogicalPart &) const
const GraphNav & graph() const