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

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

Definition at line 36 of file DDSolid.cc.

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

37 {
38  DDBase<DDName,DDI::Solid*>::def_type defined(solid.isDefined());
39  if (defined.first) {
40  os << *(defined.first) << " ";
41  if (defined.second) {
42  os << " " << DDSolidShapesName::name(solid.shape()) << ": ";
43  solid.rep().stream(os);
44  }
45  else {
46  os << "* solid not defined * ";
47  }
48  }
49  else {
50  os << "* solid not declared * ";
51  }
52  return os;
53 }
static const char *const name(DDSolidShape s)
Definition: DDSolidShapes.h:17
std::pair< const N *, bool > def_type
Definition: DDBase.h:66