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: sglOrderedGroup.hpp 00021 * Created: 14 November 2001 00022 * Summary: Group that enforces a strict rendering order. 00023 *****************************************************************************/ 00024 00025 #ifndef __SGL_ORDERED_GROUP_HPP 00026 #define __SGL_ORDERED_GROUP_HPP 00027 00028 #include <sgl.h> 00029 #include <sglGroup.hpp> 00030 00031 //---------------------------------------------------------------------------- 00032 00043 class SGL_DLL_API sglOrderedGroup : public sglGroup 00044 { 00045 public: 00048 sglOrderedGroup(); 00050 virtual ~sglOrderedGroup(); 00051 00052 // See sglNode::clone() for details. 00053 virtual sglNode *clone(unsigned int mode) const; 00054 00055 // See sglObject::printInfo() for details. 00056 virtual void printInfo(ostream &ostrm, const char *indent_string) const; 00057 00058 protected: 00059 // See sglNode::cull(f) for details 00060 virtual void cull(sglCull<float> &trav_state, 00061 unsigned int cull_flags) const; 00062 00063 // See sglNode::cull(d) for details 00064 virtual void cull(sglCull<double> &trav_state, 00065 unsigned int cull_flags) const; 00066 00067 void copyTo(sglOrderedGroup *dst, unsigned int mode) const; 00068 00069 private: // not implemented 00070 sglOrderedGroup(const sglOrderedGroup &); 00071 sglOrderedGroup &operator=(const sglOrderedGroup &); 00072 }; 00073 00074 #endif