CMS 3D CMS Logo

Classes | Namespaces | Functions
DDSolid.h File Reference
#include <cstddef>
#include <iosfwd>
#include <memory>
#include <vector>
#include "DetectorDescription/Core/interface/DDTranslation.h"
#include "DetectorDescription/Core/interface/DDBase.h"
#include "DetectorDescription/Core/interface/DDName.h"
#include "DetectorDescription/Core/interface/DDSolidShapes.h"
#include "DetectorDescription/Core/interface/DDTransform.h"

Go to the source code of this file.

Classes

class  DDBooleanSolid
 
class  DDBox
 Interface to a Box. More...
 
class  DDCons
 
class  DDCutTubs
 
class  DDEllipsoid
 
class  DDEllipticalTube
 
class  DDExtrudedPolygon
 
class  DDIntersection
 
class  DDMultiUnion
 
class  DDMultiUnionSolid
 
class  DDOrb
 
class  DDParallelepiped
 
class  DDPolycone
 
class  DDPolyhedra
 
class  DDPolySolid
 Abstract class for DDPolycone and DDPolyhedra. Basically a common member function. More...
 
class  DDPseudoTrap
 
class  DDShapelessSolid
 This is simply a handle on the solid. More...
 
class  DDSolid
 A DDSolid represents the shape of a part. More...
 
struct  DDSolidFactory
 
class  DDSphere
 
class  DDSubtraction
 
class  DDTorus
 
class  DDTrap
 Interface to a Trapezoid. More...
 
class  DDTruncTubs
 A truncated tube section. More...
 
class  DDTubs
 
class  DDUnion
 

Namespaces

 DDI
 

Functions

std::ostream & operator<< (std::ostream &, const DDSolid &)
 

Function Documentation

◆ operator<<()

std::ostream& operator<< ( std::ostream &  ,
const DDSolid  
)

Definition at line 33 of file DDSolid.cc.

33  {
34  DDBase<DDName, DDI::Solid*>::def_type defined(solid.isDefined());
35  if (defined.first) {
36  os << *(defined.first) << " ";
37  if (defined.second) {
38  os << " " << DDSolidShapesName::name(solid.shape()) << ": ";
39  solid.rep().stream(os);
40  } else {
41  os << "* solid not defined * ";
42  }
43  } else {
44  os << "* solid not declared * ";
45  }
46  return os;
47 }

References DDBase< N, C >::isDefined(), DDSolidShapesName::name(), DDBase< N, C >::rep(), and DDSolid::shape().

DDBase::def_type
std::pair< const N *, bool > def_type
Definition: DDBase.h:51
DDSolidShapesName::name
static const char *const name(DDSolidShape s)
Definition: DDSolidShapes.h:32