5 #include "GeoModelKernel/GeoTube.h" 6 #include "GeoModelKernel/GeoPolyhedrizeAction.h" 7 #include "GeoModelKernel/GeoShapeAction.h" 10 const std::string GeoTube::s_classType =
"Tube";
11 const ShapeType GeoTube::s_classTypeID = 0x17;
13 GeoTube::GeoTube (
double RMin,
double RMax,
double ZHalfLength)
16 , m_zHalfLength (ZHalfLength)
24 double GeoTube::volume ()
const 27 double M_PI = acos (-1.0);
29 return 2 * M_PI * (m_rMax * m_rMax - m_rMin * m_rMin) * m_zHalfLength;
32 const std::string & GeoTube::type ()
const 37 ShapeType GeoTube::typeID ()
const 44 action->handleTube(
this);
This class is a visitor for shapes. It allows a navigation of the boolean expression tree for shapes...