CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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  DDAssembly
 Interface to an Assembly. More...
 
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 34 of file DDSolid.cc.

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

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