Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

CCameraKeyPathAttributes.h

Go to the documentation of this file.
00001 /*
00002  * CCameraKeyPathAttributes.h
00003  * $Id: 
00004  *
00005  * Copyright (C) 2001 Alexander Buck
00006  *
00007  * This program is free software; you can redistribute it and/or modify
00008  * it under the terms of the GNU General Public License as published by
00009  * the Free Software Foundation; either version 2 of the License, or
00010  * (at your option) any later version.
00011  *
00012  * This program is distributed in the hope that it will be useful,
00013  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00014  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00015  * GNU General Public License for more details.
00016  *
00017  * You should have received a copy of the GNU General Public License
00018  * along with this program; if not, write to the Free Software
00019  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00020  *
00021  * As a special exception to the GPL, the QGLViewer authors (Markus
00022  * Janich, Michael Meissner, Richard Guenther, Alexander Buck and Thomas
00023  * Woerner) give permission to link this program with Qt (non-)commercial
00024  * edition, and distribute the resulting executable, without including
00025  * the source code for the Qt (non-)commercial edition in the source
00026  * distribution.
00027  *
00028  */
00029 
00030 //  Description : Class CCameraKeyPathAttributes
00031 //  Purpose     : Save attributes for a CameraKeyPath
00032 
00033 #ifndef CCAMERAKEYPATHATTRIBUTES_H
00034 #define CCAMERAKEYPATHATTRIBUTES_H
00035 
00041 class CCameraKeyPathAttributes
00042 {
00043  public:
00044 
00046   // CONSTRUCTORS //
00048 
00050   CCameraKeyPathAttributes(int frames = 10,float tension = 0.0,float con = 0.0,float bias = 0.0);
00051 
00053   ~CCameraKeyPathAttributes();
00054 
00056   // MEMBER FUNCTIONS //
00058 
00060   int getFrames() const
00061     {
00062       return m_nFrames;
00063     };
00064 
00066   float getTension() const 
00067     {
00068       return m_rfTension;
00069     };
00070 
00072   float getContinuity() const
00073     {
00074       return m_rfContinuity;
00075     };
00076 
00078   float getBias() const 
00079     {
00080       return m_rfBias;
00081     };
00082 
00084   void setAttributes(int nFrames,float rfTension, float rfContinuity, float rfBias);
00085 
00087   void setFrames(int);
00088 
00090   void setTension(float);
00091 
00093   void setContinuity(float);
00094 
00096   void setBias(float);
00097 
00098  protected:
00100   // PROTECTED MEMBERS //
00102 
00104   int m_nFrames;         
00105 
00107   float m_rfTension;      
00108 
00110   float m_rfContinuity;   
00111 
00113   float m_rfBias;         
00114 };
00115 
00116 #endif // CCAMERAKEYPATHATTRIBUTES_H

Generated on Wed Sep 14 04:50:33 2005 for QGLViewer by  doxygen 1.4.4