Implicit.h

Go to the documentation of this file.
00001 /**<!-------------------------------------------------------------------->
00002    @class  Implicit
00003    @author Travis Fischer (fisch0920@gmail.com)
00004    @author Matthew Jacobs (jacobs.mh@gmail.com)
00005    @date   Fall 2008
00006    
00007    @brief
00008       Abstract representation of an implicit shape in 3-space.
00009    <!-------------------------------------------------------------------->**/
00010 
00011 #ifndef IMPLICIT_H_
00012 #define IMPLICIT_H_
00013 
00014 #include <shapes/Transformable.h>
00015 #include <GL/gl.h>
00016 #include <GL/glu.h>
00017 
00018 #define INTERSECT_TOLERANCE    (EPSILON)
00019 #define isValidT(t, min)       ((t) < (min) && (t) > INTERSECT_TOLERANCE)
00020 
00021 class Implicit : public Transformable {
00022    public:
00023       inline Implicit(Material *material = NULL) 
00024          : Transformable(material)
00025       { }
00026       
00027       virtual ~Implicit()
00028       { }
00029       
00030       /**
00031        * @brief
00032        *    Initializes this Implicit's object-space AABB
00033        * 
00034        * @note defaults to unit box from (-.5,-.5,-.5) to (.5,.5,.5)
00035        */
00036       virtual void init();
00037 };
00038 
00039 #endif // IMPLICIT_H_
00040 

Generated on 28 Feb 2009 for Milton by doxygen 1.5.6