CMS 3D CMS Logo

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

#include <Solid.h>

Inheritance diagram for DDI::Solid:
DDI::Assembly DDI::BooleanSolid DDI::Box DDI::Cons DDI::CutTubs DDI::EllipticalTube DDI::ExtrudedPolygon DDI::Polycone DDI::Polyhedra DDI::PseudoTrap 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 12 of file Solid.h.

References dd_not_init.

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

Definition at line 14 of file Solid.h.

14 : shape_(shape) {}
DDSolidShape shape_
Definition: Solid.h:29
DDSolidShape shape() const
Definition: Solid.h:22
virtual DDI::Solid::~Solid ( )
inlinevirtual

Definition at line 16 of file Solid.h.

16 {}

Member Function Documentation

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

Definition at line 18 of file Solid.h.

References p_.

18 { return p_; }
std::vector< double > p_
Definition: Solid.h:30
void DDI::Solid::setParameters ( std::vector< double > const &  p)
inline

Definition at line 26 of file Solid.h.

References AlCaHLTBitMon_ParallelJobs::p, and p_.

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

Definition at line 22 of file Solid.h.

References shape_.

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

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

Reimplemented in DDI::PseudoTrap, DDI::CutTubs, DDI::Trap, DDI::EllipticalTube, DDI::ExtrudedPolygon, DDI::Polyhedra, DDI::Box, DDI::Polycone, DDI::TruncTubs, DDI::Cons, DDI::Assembly, DDI::Torus, DDI::Tubs, DDI::Sphere, and DDI::Shapeless.

Definition at line 5 of file Solid.cc.

References mps_fire::i, and p_.

5  {
6  for (const auto& i : p_)
7  os << i << ' ';
8 }
std::vector< double > p_
Definition: Solid.h:30
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 29 of file Solid.h.

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