00001 #include "StiCylindricalShape.h"
00002 ostream& operator<<(ostream& os, const StiShape& m)
00003 {
00004 os << "Name:"<< m.getName()
00005 << " ShapeCode:"<< m.getShapeCode()
00006 << " HalfDepth:"<< m.getHalfDepth()
00007 << " HalfWidth:"<< m.getHalfWidth();
00008 if (m.getShapeCode() == kCylindrical) {
00009 StiCylindricalShape *cyl = (StiCylindricalShape *) &m;
00010 os << " OuterRadius:"<< cyl->getOuterRadius()
00011 << " OpeningAngle:"<< cyl->getOpeningAngle();
00012 }
00013 os << " Thickness:"<< m.getThickness()
00014 << " EdgeWidth:"<< m.getEdgeWidth();
00015 return os;
00016 }