test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Protected Attributes
DDI::Solid Class Reference

#include <Solid.h>

Inheritance diagram for DDI::Solid:
DDI::BooleanSolid DDI::Box DDI::Cons DDI::Ellipsoid DDI::EllipticalTube DDI::Orb DDI::Parallelepiped DDI::Polycone DDI::Polyhedra DDI::PseudoTrap DDI::Reflection DDI::Shapeless DDI::Sphere DDI::Torus DDI::Trap DDI::TruncTubs DDI::Tubs

Public Member Functions

const std::vector< double > & parameters () const
 
void setParameters (std::vector< double > const &p)
 
DDSolidShape shape () const
 
 Solid ()
 
 Solid (DDSolidShape shape)
 
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 10 of file Solid.h.

Constructor & Destructor Documentation

DDI::Solid::Solid ( )
inline

Definition at line 14 of file Solid.h.

14 : shape_(dd_not_init) { }
DDSolidShape shape_
Definition: Solid.h:31
DDI::Solid::Solid ( DDSolidShape  shape)
inline

Definition at line 16 of file Solid.h.

16 : shape_(shape) { }
DDSolidShape shape_
Definition: Solid.h:31
DDSolidShape shape() const
Definition: Solid.h:24
virtual DDI::Solid::~Solid ( )
inlinevirtual

Definition at line 18 of file Solid.h.

18 { }

Member Function Documentation

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

Definition at line 28 of file Solid.h.

References AlCaHLTBitMon_ParallelJobs::p, and p_.

Referenced by DDSolid::DDSolid().

28 { p_ = p;}
std::vector< double > p_
Definition: Solid.h:32
DDSolidShape DDI::Solid::shape ( void  ) const
inline

Definition at line 24 of file Solid.h.

References shape_.

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

24 { return shape_; }
DDSolidShape shape_
Definition: Solid.h:31
void DDI::Solid::stream ( std::ostream &  os) const
virtual

Reimplemented in DDI::Ellipsoid, DDI::Parallelepiped, DDI::PseudoTrap, DDI::EllipticalTube, DDI::Box, DDI::Trap, DDI::TruncTubs, DDI::Cons, DDI::Orb, DDI::Torus, DDI::Sphere, DDI::Tubs, DDI::Reflection, and DDI::Shapeless.

Definition at line 4 of file Solid.cc.

References alignCSCRings::e, i, and p_.

5 {
6  std::vector<double>::const_iterator i = p_.begin();
7  std::vector<double>::const_iterator e = p_.end();
8  for (; i != e ; ++i)
9  os << *i << ' ';
10 }
int i
Definition: DBlmapReader.cc:9
std::vector< double > p_
Definition: Solid.h:32
virtual double DDI::Solid::volume ( void  ) const
inlinevirtual

Member Data Documentation

std::vector<double> DDI::Solid::p_
protected
DDSolidShape DDI::Solid::shape_
protected

Definition at line 31 of file Solid.h.

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