5 #ifndef GEOMODELKERNEL_GEOTRD_H 6 #define GEOMODELKERNEL_GEOTRD_H 8 #include "GeoModelKernel/GeoShape.h" 13 GeoTrd (
double XHalfLength1,
double XHalfLength2,
double YHalfLength1,
double YHalfLength2,
double ZHalfLength);
16 virtual double volume ()
const;
19 virtual const std::string & type ()
const;
22 virtual ShapeType typeID ()
const;
28 static const std::string& getClassType ();
31 static ShapeType getClassTypeID ();
34 const double& getXHalfLength1 ()
const;
37 const double& getXHalfLength2 ()
const;
40 const double& getYHalfLength1 ()
const;
43 const double& getYHalfLength2 ()
const;
46 const double& getZHalfLength ()
const;
55 static const std::string s_classType;
56 static const ShapeType s_classTypeID;
58 double m_xHalfLength1;
59 double m_xHalfLength2;
60 double m_yHalfLength1;
61 double m_yHalfLength2;
66 inline const std::string& GeoTrd::getClassType ()
71 inline ShapeType GeoTrd::getClassTypeID ()
76 inline const double& GeoTrd::getXHalfLength1 ()
const 78 return m_xHalfLength1;
81 inline const double& GeoTrd::getXHalfLength2 ()
const 83 return m_xHalfLength2;
86 inline const double& GeoTrd::getYHalfLength1 ()
const 88 return m_yHalfLength1;
91 inline const double& GeoTrd::getYHalfLength2 ()
const 93 return m_yHalfLength2;
96 inline const double& GeoTrd::getZHalfLength ()
const
This class is a visitor for shapes. It allows a navigation of the boolean expression tree for shapes...
This class describes a Shape. Shapes will be able to do the following things: