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

sglLODState.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: sglLODState.hpp
00021  *  Created: 7 April 1999
00022  *  Summary: Used to modify the transition behaviour of groups of sglLOD nodes
00023  *****************************************************************************/
00024 
00025 #ifndef __SGL_LOD_STATE_HPP
00026 #define __SGL_LOD_STATE_HPP
00027 
00028 #include <sgl.h>
00029 #include <sglObject.hpp>
00030 
00031 //----------------------------------------------------------------------------
00032 
00058 class SGL_DLL_API sglLODState : public sglObject
00059 {
00060 public:
00064    sglLODState();
00065 
00067    virtual ~sglLODState();
00068 
00072    void setRangeScale(float val) { m_range_scale = val; }
00073 
00077    float getRangeScale() const { return m_range_scale; }
00078 
00082    void setRangeOffset(float val) { m_range_offset = val; }
00083 
00087    float getRangeOffset() const { return m_range_offset; }
00088 
00089    // See sglObject::printInfo() for details.
00090    virtual void printInfo(ostream &ostrm, const char *indent_string) const;
00091 
00092 private: // not implemented
00093    sglLODState(const sglLODState &);
00094    sglLODState &operator=(const sglLODState &);
00095 
00096 protected:
00097    float m_range_scale;
00098    float m_range_offset;
00099 };
00100 
00101 #endif

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