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: sglMonoIndexedPolygonSet.hpp 00021 * Created: 28 August 1999 00022 * Summary: A sglMonoIndexedSet of polygons. 00023 *****************************************************************************/ 00024 00025 #ifndef __SGL_MONO_INDEXED_POLYGON_SET_HPP 00026 #define __SGL_MONO_INDEXED_POLYGON_SET_HPP 00027 00028 #include <sgl.h> 00029 #include <sglMonoIndexedGeoStripSet.hpp> 00030 00031 //============================================================================ 00032 00036 class SGL_DLL_API sglMonoIndexedPolygonSet : public sglMonoIndexedGeoStripSet 00037 { 00038 public: 00040 sglMonoIndexedPolygonSet(); 00042 virtual ~sglMonoIndexedPolygonSet(); 00043 00045 sglStats::PrimEnum getPrimType() const {return sglStats::eMONO_INDEXED_POLYS;} 00047 GLenum getGLPrimType() const {return GL_POLYGON;} 00049 AAEnum getAAType() const {return ePOLYGON_AA;} 00050 00052 virtual sglBound::IntersectResultEnum intersectPrim(sglIntersectf &segset); 00054 virtual sglBound::IntersectResultEnum intersectPrim(sglIntersectd &segset); 00055 00056 private: // not implemented 00057 sglMonoIndexedPolygonSet(const sglMonoIndexedPolygonSet &); 00058 sglMonoIndexedPolygonSet &operator=(const sglMonoIndexedPolygonSet &); 00059 }; 00060 00061 #endif