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

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  */
00022 
00023 //  Description : Class CCameraKeyPathAttributes
00024 //  Purpose     : Save attributes for a CameraKeyPath
00025 
00026 #ifndef CCAMERAKEYPATHATTRIBUTES_H
00027 #define CCAMERAKEYPATHATTRIBUTES_H
00028 
00034 class CCameraKeyPathAttributes
00035 {
00036  public:
00037 
00039   // CONSTRUCTORS //
00041 
00043   CCameraKeyPathAttributes(int frames = 10,float tension = 0.0,float con = 0.0,float bias = 0.0);
00044 
00046   ~CCameraKeyPathAttributes();
00047 
00049   // MEMBER FUNCTIONS //
00051 
00053   int getFrames() const
00054     {
00055       return m_nFrames;
00056     };
00057 
00059   float getTension() const 
00060     {
00061       return m_rfTension;
00062     };
00063 
00065   float getContinuity() const
00066     {
00067       return m_rfContinuity;
00068     };
00069 
00071   float getBias() const 
00072     {
00073       return m_rfBias;
00074     };
00075 
00077   void setAttributes(int nFrames,float rfTension, float rfContinuity, float rfBias);
00078 
00080   void setFrames(int);
00081 
00083   void setTension(float);
00084 
00086   void setContinuity(float);
00087 
00089   void setBias(float);
00090 
00091  protected:
00093   // PROTECTED MEMBERS //
00095 
00097   int m_nFrames;         
00098 
00100   float m_rfTension;      
00101 
00103   float m_rfContinuity;   
00104 
00106   float m_rfBias;         
00107 };
00108 
00109 #endif // CCAMERAKEYPATHATTRIBUTES_H

Generated at Thu Oct 4 17:17:24 2001 for QGLViewer by doxygen1.2.10 written by Dimitri van Heesch, © 1997-2001