CMS 3D CMS Logo

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

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 10 of file Solid.h.


Constructor & Destructor Documentation

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

Definition at line 14 of file Solid.h.

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

Definition at line 16 of file Solid.h.

: shape_(shape) { }
virtual DDI::Solid::~Solid ( ) [inline, virtual]

Definition at line 18 of file Solid.h.

{ }

Member Function Documentation

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

Definition at line 20 of file Solid.h.

References p_.

{ return p_; }
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().

{ p_ = p;}
DDSolidShape DDI::Solid::shape ( void  ) const [inline]

Definition at line 24 of file Solid.h.

References shape_.

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

{ return shape_; }
void DDI::Solid::stream ( std::ostream &  os) const [virtual]

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

Definition at line 4 of file Solid.cc.

References i, and p_.

{
  std::vector<double>::const_iterator i = p_.begin();
  std::vector<double>::const_iterator e = p_.end();
  for (; i != e ; ++i) 
    os << *i << ' ';
}
virtual double DDI::Solid::volume ( void  ) const [inline, virtual]

Member Data Documentation

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

Definition at line 31 of file Solid.h.

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