4 * ***** BEGIN GPL LICENSE BLOCK *****
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public License
8 * as published by the Free Software Foundation; either version 2
9 * of the License, or (at your option) any later version.
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software Foundation,
18 * Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
20 * The Original Code is Copyright (C) 2001-2002 by NaN Holding BV.
21 * All rights reserved.
23 * The Original Code is: all of this file.
25 * Contributor(s): none yet.
27 * ***** END GPL LICENSE BLOCK *****
29 #ifndef KX_CAMERAIPOSGCONTROLLER_H
30 #define KX_CAMERAIPOSGCONTROLLER_H
32 #include "SG_Controller.h"
33 #include "SG_Spatial.h"
35 #include "KX_IInterpolator.h"
37 struct RAS_CameraData;
39 class KX_CameraIpoSGController : public SG_Controller
43 MT_Scalar m_clipstart;
47 T_InterpolatorList m_interpolators;
48 unsigned short m_modify_lens : 1;
49 unsigned short m_modify_clipstart : 1;
50 unsigned short m_modify_clipend : 1;
55 KX_CameraIpoSGController() :
57 m_modify_clipstart(false),
58 m_modify_clipend(false),
63 ~KX_CameraIpoSGController();
64 SG_Controller* GetReplica(class SG_Node* destnode);
65 bool Update(double time);
73 void SetSimulatedTime(double time) {
77 void SetModifyLens(bool modify) {
78 m_modify_lens = modify;
80 void SetModifyClipEnd(bool modify) {
81 m_modify_clipend = modify;
83 void SetModifyClipStart(bool modify) {
84 m_modify_clipstart = modify;
86 void AddInterpolator(KX_IInterpolator* interp);
89 #endif // KX_CAMERAIPOSGCONTROLLER_H