CMS 3D CMS Logo

DDI::Solid Class Reference

#include <DetectorDescription/Core/src/Solid.h>

Inheritance diagram for DDI::Solid:

DDI::BooleanSolid DDI::Box DDI::Cons DDI::Polycone DDI::Polyhedra DDI::PseudoTrap DDI::Reflection DDI::Shapeless DDI::Torus DDI::Trap DDI::TruncTubs DDI::Tubs

List of all members.

Public Member Functions

const std::vector< double > & parameters () const
void setParameters (std::vector< double > const &p)
DDSolidShape shape () const
 Solid (DDSolidShape shape)
 Solid ()
virtual void stream (std::ostream &) const
virtual double volume () const
virtual ~Solid ()

Protected Attributes

std::vector< double > p_
DDSolidShape shape_


Detailed Description

Definition at line 14 of file Solid.h.


Constructor & Destructor Documentation

DDI::Solid::Solid (  )  [inline]

Definition at line 20 of file Solid.h.

00020 : shape_(dd_not_init) { }

DDI::Solid::Solid ( DDSolidShape  shape  )  [inline]

Definition at line 22 of file Solid.h.

00022 : shape_(shape) { }

virtual DDI::Solid::~Solid (  )  [inline, virtual]

Definition at line 24 of file Solid.h.

00024 { }


Member Function Documentation

const std::vector<double>& DDI::Solid::parameters ( void   )  const [inline]

Definition at line 26 of file Solid.h.

References p_.

00026 { return p_; }

void DDI::Solid::setParameters ( std::vector< double > const &  p  )  [inline]

Definition at line 37 of file Solid.h.

References p_.

Referenced by DDSolid::DDSolid().

00037 { p_ = p;}

DDSolidShape DDI::Solid::shape (  )  const [inline]

Definition at line 30 of file Solid.h.

References shape_.

Referenced by DDI::Polyhedra::volume().

00030 { return shape_; }

void DDI::Solid::stream ( std::ostream &  os  )  const [virtual]

Reimplemented in DDI::Box, DDI::Cons, DDI::PseudoTrap, DDI::Reflection, DDI::Shapeless, DDI::Torus, DDI::Trap, DDI::TruncTubs, and DDI::Tubs.

Definition at line 4 of file Solid.cc.

References e, i, and p_.

00005 {
00006   std::vector<double>::const_iterator i = p_.begin();
00007   std::vector<double>::const_iterator e = p_.end();
00008   for (; i != e ; ++i) 
00009     os << *i << ' ';
00010 }

virtual double DDI::Solid::volume (  )  const [inline, virtual]

Reimplemented in DDI::Box, DDI::Cons, DDI::Polycone, DDI::Polyhedra, DDI::Reflection, DDI::Shapeless, DDI::Torus, DDI::Trap, and DDI::Tubs.

Definition at line 28 of file Solid.h.

00028 { return 0; }


Member Data Documentation

std::vector<double> DDI::Solid::p_ [protected]

Definition at line 41 of file Solid.h.

Referenced by DDI::Box::Box(), DDI::Cons::Cons(), parameters(), DDI::Polycone::Polycone(), DDI::Polyhedra::Polyhedra(), DDI::PseudoTrap::PseudoTrap(), setParameters(), DDI::PseudoTrap::stream(), DDI::Tubs::stream(), stream(), DDI::TruncTubs::stream(), DDI::Box::stream(), DDI::Trap::stream(), DDI::Torus::stream(), DDI::Cons::stream(), DDI::Torus::Torus(), DDI::Trap::Trap(), DDI::TruncTubs::TruncTubs(), DDI::Tubs::Tubs(), DDI::Cons::volume(), DDI::Trap::volume(), DDI::Tubs::volume(), DDI::Torus::volume(), DDI::Box::volume(), DDI::Polycone::volume(), and DDI::Polyhedra::volume().

DDSolidShape DDI::Solid::shape_ [protected]

Definition at line 40 of file Solid.h.

Referenced by shape(), and DDI::Polycone::volume().


The documentation for this class was generated from the following files:
Generated on Tue Jun 9 18:37:10 2009 for CMSSW by  doxygen 1.5.4