![]() |
![]() |
#include <DetectorDescription/Core/src/Solid.h>
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_ |
Definition at line 14 of file Solid.h.
DDI::Solid::Solid | ( | ) | [inline] |
DDI::Solid::Solid | ( | DDSolidShape | shape | ) | [inline] |
const std::vector<double>& DDI::Solid::parameters | ( | void | ) | const [inline] |
void DDI::Solid::setParameters | ( | std::vector< double > const & | p | ) | [inline] |
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.
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.
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] |