CMS 3D CMS Logo

Classes | Namespaces | Functions
DDSolid.h File Reference
#include <stddef.h>
#include <iosfwd>
#include <vector>
#include "DetectorDescription/Base/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  DDIntersection
 
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  DDReflectionSolid
 
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 37 of file DDSolid.cc.

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

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