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

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 * 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 CCameraKeyPathPoint.h 00031 // Purpose : Provides a camerapathpoint 00032 00033 #ifndef CCAMERAKEYPATHPOINT_H 00034 #define CCAMERAKEYPATHPOINT_H 00035 00036 00037 // Qt 00039 #include <qstring.h> 00040 00041 // QGLViewer 00043 #include <CCamera.h> 00044 00045 // Own 00047 #include "CCameraKeyPathAttributes.h" 00048 00049 00056 class CCameraKeyPathPoint 00057 { 00058 public: 00059 00061 // CONSTRUCTORS // 00063 00068 CCameraKeyPathPoint() : 00069 m_camera(CCamera()), 00070 m_attributes(CCameraKeyPathAttributes()), 00071 m_qName("new camera") 00072 {}; 00073 00075 CCameraKeyPathPoint(CCamera camera, CCameraKeyPathAttributes atts, QString qName ) 00076 : m_camera(camera), 00077 m_attributes(atts), 00078 m_qName(qName) 00079 {}; 00080 00082 ~CCameraKeyPathPoint() {}; 00083 00085 // PUBLIC METHODS /// 00087 00089 void setCamera(CCamera); 00090 00092 void setAttributes(CCameraKeyPathAttributes); 00093 00095 void setAttributes(int nFrames, float rfTension, float rfCon, float rfBias); 00096 00098 void setName(QString); 00099 00103 CCamera* changeCamera() 00104 { 00105 return &m_camera; 00106 } 00107 00109 CCamera getCamera() const 00110 { 00111 return m_camera; 00112 }; 00113 00115 CCameraKeyPathAttributes getAttributes() const 00116 { 00117 return m_attributes; 00118 }; 00119 00121 QString getName() const 00122 { 00123 return m_qName; 00124 }; 00125 00126 protected: 00127 00129 // PROTECTED MEMBERS // 00131 00133 CCamera m_camera; 00134 00136 CCameraKeyPathAttributes m_attributes; 00137 00139 QString m_qName; 00140 }; 00141 00142 #endif // CCAMERAKEYPATHPOINT_H

Generated on Sun May 16 12:02:02 2004 for QGLViewer by doxygen 1.3.7