CMS 3D CMS Logo

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::CutTubs 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_, and stream().

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::Orb, DDI::Polycone, DDI::Polyhedra, DDI::Trap, DDI::TruncTubs, DDI::Cons, DDI::CutTubs, DDI::Torus, DDI::Sphere, DDI::Tubs, DDI::Reflection, and DDI::Shapeless.

Definition at line 4 of file Solid.cc.

References i, and p_.

Referenced by shape().

5 {
6  for( const auto& i : p_ )
7  os << i << ' ';
8 }
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().