Main Page   Class Hierarchy   Compound List   File List   Compound Members   File Members  

Shape.cxx

Go to the documentation of this file.
00001 // $Id: Shape.cxx,v 1.2 2001/10/06 03:37:06 burnett Exp $
00002 //
00003 
00004 #include "geometry/Shape.h"
00005 #include <iostream>
00006 
00007 // implementations of Shape member functions
00008 
00009 Shape::Shape()
00010 :GeomObject(){}
00011 
00012 
00013 Shape& Shape::copy()const
00014 {
00015 
00016     std::cerr << "The Shape subclass " << nameOf()
00017         << " did not implement a copy() method\0";
00018 
00019     return *(Shape*)this; //(just to make compiler happy)
00020 
00021 }
00022 
00023 
00024 void
00025 Shape::printOn(std::ostream& os)const
00026 {
00027   os << "Shape is a " << nameOf()
00028           <<  " centered at: " << center() <<std::endl;
00029 }
00030 
00031 GeomObject&
00032 Shape::transform(const CoordTransform& T)
00033 {
00034   _center.transform(T);
00035   return *this;
00036 }
00037 

Generated at Wed Nov 21 12:20:12 2001 by doxygen1.2.3 written by Dimitri van Heesch, © 1997-2000