arbeit
Main Page | Namespace List | Class Hierarchy | Alphabetical List | Compound List | File List | Namespace Members | Compound Members | File Members

scaleTexGen2D.h

Go to the documentation of this file.
00001 //////////////////////////////////////////////////////////////////////
00002 // 6/27/02      Aaron Lefohn    Scientific Computing and Imaging Institute
00003 // School of Computing          University of Utah
00004 //
00005 //  This library is free software; you can redistribute it and/or
00006 //  modify it under the terms of the GNU Lesser General Public
00007 //  License as published by the Free Software Foundation; either
00008 //  version 2.1 of the License, or (at your option) any later version.
00009 //
00010 //  This library is distributed in the hope that it will be useful,
00011 //  but WITHOUT ANY WARRANTY; without even the implied warranty of
00012 //  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00013 //  Lesser General Public License for more details.
00014 //
00015 //  You should have received a copy of the GNU Lesser General Public
00016 //  License along with this library; if not, write to the Free Software
00017 //  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00018 
00019 #ifndef SCALETEXGEN2D_H
00020 #define SCALETEXGEN2D_H
00021 
00022 #include "texCoordGen.h"
00023 #include <arrayGutz.h>
00024 
00025 namespace glift {
00026 
00027 /////////////////////////////////////////////////////////////////////////
00028 ///
00029 /// ScaleTexGen2D: Generate the 2D texture coordinates by dividing each 
00030 ///                               vertex position by the dimension coordinate
00031 /// 
00032 //////////////////////////////////////////////////////////////////////
00033 
00034 class _export_ ScaleTexGen2D : public TexCoordGen
00035 {
00036 public:
00037    virtual gutz::arrayo2f operator()( const gutz::arrayw2f& verts, const gutz::vec3f& dimen );
00038 
00039 private:
00040    virtual gutz::arrayo2f operator()() {return gutz::arrayo2f();} /// Disallow calling of default function.
00041 };
00042 
00043 } /// End of namespace glift
00044 
00045 #endif

Send questions, comments, and bug reports to:
jmk