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

gltransform.h

00001 /***************************************************************************
00002                           gltransform.h  -  description
00003                              -------------------
00004     begin                : Mon Oct 13 2003
00005     copyright            : (C) 2003 by Jacques Gasselin de Richebourg
00006     email                : jacquesgasselin@hotmail.com
00007  ***************************************************************************/
00008 
00009 /***************************************************************************
00010  *                                                                         *
00011  *   This program is free software; you can redistribute it and/or modify  *
00012  *   it under the terms of the GNU Lesser General Public License as published by  *
00013  *   the Free Software Foundation; either version 2 of the License, or     *
00014  *   (at your option) any later version.                                   *
00015  *                                                                         *
00016  ***************************************************************************/
00017 
00018 #ifndef GLTRANSFORM_H
00019 #define GLTRANSFORM_H
00020 
00021 
00022 #include "glscene.h"
00023 #include "glvector.h"
00028 namespace GLScene
00029 {
00030 
00031 class GLTranslation: public GLTransform, public GLFieldHolder
00032 {
00033 public:
00034    static std::string transName;
00035 
00036    GLTranslation();
00037    GLTranslation( GLVector);
00038    GLTranslation( GLfloat, GLfloat, GLfloat);
00039     ~GLTranslation();
00040 
00041    SML_TAG(translate);
00042 
00043    GLField< GLVector > trans;
00044 
00045    virtual FieldBasePtr getFieldByIndex( short index );
00046 
00047    virtual void render();
00048 };
00049 
00050 class GLScaling: public GLTransform, public GLFieldHolder
00051 {
00052 public:
00053    static std::string scaleName;
00054    
00055     GLScaling();
00056    GLScaling( GLVector);
00057    GLScaling( GLfloat, GLfloat, GLfloat);
00058     ~GLScaling();
00059 
00060    SML_TAG(scale);
00061 
00062    GLField< GLVector > scale;
00063 
00064    virtual FieldBasePtr getFieldByIndex( short index );
00065 
00066    virtual void render();
00067 };
00068 
00069 };
00070 #endif

Generated on Wed Feb 4 23:11:34 2004 by doxygen 1.3.3