5 #include "GeoModelKernel/GeoBox.h" 6 #include "GeoModelKernel/GeoShapeAction.h" 8 const std::string GeoBox::s_classType =
"Box";
9 const ShapeType GeoBox::s_classTypeID = 0x10;
11 GeoBox::GeoBox (
double XHalfLength,
double YHalfLength,
double ZHalfLength)
12 : m_xHalfLength (XHalfLength)
13 , m_yHalfLength (YHalfLength)
14 , m_zHalfLength (ZHalfLength)
22 double GeoBox::volume ()
const 24 return 8.0 * m_xHalfLength * m_yHalfLength * m_zHalfLength;
27 const std::string & GeoBox::type ()
const 32 ShapeType GeoBox::typeID ()
const 39 action->handleBox(
this);
This class is a visitor for shapes. It allows a navigation of the boolean expression tree for shapes...