00001 #ifndef __CONE_H 00002 #define __CONE_H 00003 00004 #include "Quadric.h" 00005 00006 class Cone : public Quadric 00007 { 00008 public: 00009 Cone() : Quadric(1.0, 1.0, -1.0, 0.0) { } // apex at origin 00010 Cone(double r) : Quadric(1.0, 1.0, -r*r, 0.0) { } // radius one from apex 00011 Cone(gmVector3 d, double r); // direction of cone axis 00012 Cone(gmVector3 x, gmVector3 d, double r); // position of apex 00013 00014 MAKE_NAME(); 00015 00016 virtual const char ** getPixmapXPM(const int& size) const; 00017 }; 00018 00019 #endif 00020
1.3.4