11 #include <top/dbobjects/TOPGeoPrismEnclosure.h>
12 #include <framework/gearbox/Unit.h>
23 bool TOPGeoPrismEnclosure::isConsistent()
const
25 if (m_length <= 0)
return false;
26 if (m_height <= 0)
return false;
27 if (m_bottomThickness <= 0)
return false;
28 if (m_sideThickness <= 0)
return false;
29 if (m_backThickness <= 0)
return false;
30 if (m_frontThickness <= 0)
return false;
31 if (m_extensionThickness <= 0)
return false;
32 if (m_material.empty())
return false;
37 void TOPGeoPrismEnclosure::print(
const std::string& title)
const
39 TOPGeoBase::print(title);
41 cout <<
" length = " << getLength() <<
" " << s_unitName;
42 cout <<
", height = " << getHeight() <<
" " << s_unitName;
43 cout <<
", angle = " << getAngle() / Unit::deg <<
" deg";
44 cout <<
", material = " << getMaterial() << endl;
46 cout <<
" thicknesses: bottom = " << getBottomThickness() <<
" " << s_unitName;
47 cout <<
", side = " << getSideThickness() <<
" " << s_unitName;
48 cout <<
", back = " << getBackThickness() <<
" " << s_unitName;
49 cout <<
", front = " << getFrontThickness() <<
" " << s_unitName;
50 cout <<
", extension plate = " << getExtensionThickness() <<
" " << s_unitName << endl;