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

sglUnProject.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: sglUnProject.hpp
00021  *   Author: Tom Stimson
00022  *  Created: 1 October 2000
00023  *  Summary: Translates & rotates to the near clip plane.
00024  *****************************************************************************/
00025 
00026 #ifndef __SGL_UNPROJECT_HPP
00027 #define __SGL_UNPROJECT_HPP
00028 
00029 #include <sgl.h>
00030 #include <sglGroup.hpp>
00031 
00075 class SGL_DLL_API sglUnProject : public sglGroup
00076 {
00077 public:
00082    sglUnProject(bool fixedPixelScale = false);
00083 
00085    virtual ~sglUnProject();
00086 
00090    void setFixedPixelScale(bool on) { m_pixel_scale = on; }
00091 
00095    bool getFixedPixelScale() const { return m_pixel_scale; }
00096 
00097    // See sglNode::intersect(f) for details.
00098    virtual sglBound::IntersectResultEnum intersect(
00099       sglIntersectf &isector) const;
00100 
00101    // See sglNode::intersect(d) for details.
00102    virtual sglBound::IntersectResultEnum intersect(
00103       sglIntersectd &isector) const;
00104 
00105    // See sglNode::pick(f) for details.
00106    virtual void pick(sglPickf &pick_state, unsigned int cull_flags) const;
00107 
00108    // See sglNode::pick(d) for details.
00109    virtual void pick(sglPickd &pick_state, unsigned int cull_flags) const;
00110 
00111    // See sglNode::clone() for details.
00112    virtual sglNode *clone(unsigned int mode) const;
00113 
00114    // See sglObject::printInfo() for details.
00115    virtual void printInfo(ostream &ostrm, const char *indent_string) const;
00116 
00117 protected:
00118    // See sglNode::cull(f) for details
00119    virtual void cull(sglCull<float> &trav_state,
00120                      unsigned int cull_flags) const;
00121 
00122    // See sglNode::cull(d) for details
00123    virtual void cull(sglCull<double> &trav_state,
00124                      unsigned int cull_flags) const;
00125 
00126    void copyTo(sglUnProject *dst, unsigned int mode) const;
00127 
00128 private:   // not implemented
00129    sglUnProject(const sglUnProject &);
00130    sglUnProject &operator=(const sglUnProject &);
00131 
00132 private:
00133    bool m_pixel_scale;
00134 };
00135 
00136 #endif

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