Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   Related Pages  

sglTriangleFanSet.hpp

00001 /*****************************************************************************
00002  * SGL: A Scene Graph Library
00003  *
00004  * Copyright (C) 1997-2001  Scott McMillan   All Rights Reserved.
00005  *
00006  * This library is free software; you can redistribute it and/or
00007  * modify it under the terms of the GNU Library General Public
00008  * License as published by the Free Software Foundation; either
00009  * version 2 of the License, or (at your option) any later version.
00010  *
00011  * This library is distributed in the hope that it will be useful,
00012  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00013  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00014  * Library General Public License for more details.
00015  *
00016  * You should have received a copy of the GNU Library General Public
00017  * License along with this library; if not, write to the Free
00018  * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
00019  *****************************************************************************
00020  *     File: sglTriangleFanSet.hpp
00021  *  Created: 12 August 1997
00022  *  Summary: Approximates a pfGeoSet which contains geometry data for one or
00023  *         : more triangle fan sets, and pointers to the graphics state
00024  *         : associated with it (sglGeoState). 
00025  *****************************************************************************/
00026 
00027 #ifndef __SGL_TRIANGLE_FAN_SET_HPP
00028 #define __SGL_TRIANGLE_FAN_SET_HPP
00029 
00030 #include <sgl.h>
00031 #include <sglGeoStripSet.hpp>
00032 
00033 //============================================================================
00034 
00040 class SGL_DLL_API sglTriangleFanSet : public sglGeoStripSet
00041 {
00042 public:
00044    sglTriangleFanSet();
00046    virtual ~sglTriangleFanSet();
00047 
00049    sglStats::PrimEnum getPrimType() const {return sglStats::eTRIFANS;}
00051    GLenum getGLPrimType() const {return GL_TRIANGLE_FAN;}
00053    AAEnum getAAType() const {return ePOLYGON_AA;}
00054 
00056    virtual sglBound::IntersectResultEnum intersectPrim(sglIntersectf &segset);
00058    virtual sglBound::IntersectResultEnum intersectPrim(sglIntersectd &segset);
00059 
00060 private:
00061    sglTriangleFanSet(const sglTriangleFanSet &);
00062    sglTriangleFanSet& operator=(const sglTriangleFanSet &);
00063 };
00064 
00065 #endif

Generated at Mon Jul 1 18:00:06 2002 for SGL by doxygen1.2.6 written by Dimitri van Heesch, © 1997-2001