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) {}
DDSolidShape shape_
Definition: Solid.h:29
DDSolidShape shape() const
Definition: Solid.h:22

◆ ~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.

References p_.

18 { return p_; }
std::vector< double > p_
Definition: Solid.h:30

◆ setParameters()

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

◆ shape()

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

◆ stream()

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

◆ 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().