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

CCameraKeyPathPoint.h

Go to the documentation of this file.
00001 /*
00002  * CCameraKeyPathPoint.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 CCameraKeyPathPoint.h
00024 //  Purpose     : Provides a camerapathpoint
00025 
00026 #ifndef CCAMERAKEYPATHPOINT_H
00027 #define CCAMERAKEYPATHPOINT_H
00028 
00029 
00030 // Qt
00032 #include <qstring.h>
00033 
00034 // QGLViewer
00036 #include <CCamera.h>
00037 
00038 // Own
00040 #include "CCameraKeyPathAttributes.h"
00041 
00042 
00049 class CCameraKeyPathPoint
00050 {
00051  public:
00052   
00054   // CONSTRUCTORS //
00056 
00061   CCameraKeyPathPoint() :
00062     m_camera(CCamera()),
00063     m_attributes(CCameraKeyPathAttributes()),
00064     m_qName("new camera")
00065     {};
00066 
00068   CCameraKeyPathPoint(CCamera camera, CCameraKeyPathAttributes atts, QString qName )
00069     : m_camera(camera),
00070       m_attributes(atts),
00071       m_qName(qName)
00072     {};
00073 
00075   ~CCameraKeyPathPoint() {};
00076   
00078   // PUBLIC METHODS ///
00080 
00082   void setCamera(CCamera);
00083   
00085   void setAttributes(CCameraKeyPathAttributes);
00086 
00088   void setAttributes(int nFrames, float rfTension, float rfCon, float rfBias);
00089   
00091   void setName(QString);
00092 
00096   CCamera* changeCamera()
00097     {
00098       return &m_camera;
00099     }
00100 
00102   CCamera getCamera() const 
00103     {
00104       return m_camera;
00105     };
00106 
00108   CCameraKeyPathAttributes getAttributes() const
00109     {
00110       return m_attributes;
00111     };
00112 
00114   QString getName() const
00115     {
00116       return m_qName;
00117     };
00118 
00119 protected:
00120 
00122   // PROTECTED MEMBERS //
00124 
00126   CCamera m_camera;    
00127 
00129   CCameraKeyPathAttributes m_attributes;  
00130 
00132   QString m_qName;   
00133 };
00134 
00135 #endif // CCAMERAKEYPATHPOINT_H

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