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::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

◆ Solid() [1/2]

DDI::Solid::Solid ( )
inline

Definition at line 12 of file Solid.h.

References dd_not_init.

◆ Solid() [2/2]

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

Definition at line 14 of file Solid.h.

14 : shape_(shape) {}

◆ ~Solid()

virtual DDI::Solid::~Solid ( )
inlinevirtual

Definition at line 16 of file Solid.h.

16 {}

Member Function Documentation

◆ parameters()

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

Definition at line 18 of file Solid.h.

18 { return p_; }

References p_.

◆ setParameters()

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

Definition at line 26 of file Solid.h.

26 { p_ = p; }

References AlCaHLTBitMon_ParallelJobs::p, and p_.

◆ shape()

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

Definition at line 22 of file Solid.h.

22 { return shape_; }

References shape_.

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

◆ stream()

void DDI::Solid::stream ( std::ostream &  os) const
virtual

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

Definition at line 5 of file Solid.cc.

5  {
6  for (const auto& i : p_)
7  os << i << ' ';
8 }

References mps_fire::i, and p_.

◆ volume()

virtual double DDI::Solid::volume ( void  ) const
inlinevirtual

Member Data Documentation

◆ p_

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

◆ shape_

DDSolidShape DDI::Solid::shape_
protected

Definition at line 29 of file Solid.h.

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

mps_fire.i
i
Definition: mps_fire.py:428
AlCaHLTBitMon_ParallelJobs.p
def p
Definition: AlCaHLTBitMon_ParallelJobs.py:153
DDI::Solid::shape_
DDSolidShape shape_
Definition: Solid.h:29
DDSolidShape::dd_not_init
DDI::Solid::shape
DDSolidShape shape() const
Definition: Solid.h:22
DDI::Solid::p_
std::vector< double > p_
Definition: Solid.h:30