00001 /* 00002 Copyright (C) 1999 Carsten Winkelholz 00003 00004 Malte Weiß, 25.07.2002: Event handling implemented. (see CCybInterpoltarC) 00005 00006 Address: FGAN Forschungsgesellschaft fr Angewandte Naturwissenschaften e. V. 00007 Neuenahrer Str. 20 00008 D - 53343 Wachtberg 00009 00010 Email: winkelholz@fgan.de 00011 00012 This program is free software; you can redistribute it and/or 00013 modify it under the terms of the GNU General Public License 00014 as published by the Free Software Foundation; either version 2 00015 of the License, or (at your option) any later version. 00016 00017 This program is distributed in the hope that it will be useful, 00018 but WITHOUT ANY WARRANTY; without even the implied warranty of 00019 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00020 GNU General Public License for more details. 00021 00022 You should have received a copy of the GNU General Public License 00023 along with this program; if not, write to the Free Software 00024 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 00025 */ 00026 00027 00028 #ifndef CYBCOORDINATEINTERPOLATOR_HC 00029 #define CYBCOORDINATEINTERPOLATOR_HC 00030 00031 #include "oaw/ctk/cybinterpolatorc.h" 00032 #include "oaw/ctk/cybwrlfields.h" 00033 #include "../oawconfig.h" 00034 00035 OAW_BEGIN_NAMESPACE 00036 00037 00038 class OAW_DLLMAPPING CybCoordinateInterpolatorC : public CybInterpolatorC 00039 { 00040 public: 00041 CybCoordinateInterpolatorC(CybWorldC*); 00042 virtual ~CybCoordinateInterpolatorC(); 00043 CybCoordinateInterpolatorC(const CybCoordinateInterpolatorC&); 00044 CybCoordinateInterpolatorC& operator = (const CybCoordinateInterpolatorC&); 00045 virtual long GetInterfaceDataMinLength(); 00046 virtual void SetInterfaceData(AnyC&); 00047 virtual void CopyInterfaceData(AnyC&,long maxLen); 00048 virtual void FinishInit(); 00049 00050 // Key value loading 00051 virtual void SetKeyValue(const void *pData); 00052 inline virtual long GetKeyValueType(){ return CYBFT_MFVEC3F; } 00053 inline virtual long GetValueType(){ return CYBFT_MFVEC3F; } 00054 00055 protected: 00056 virtual void CreateNewCopy(CybNodeC*); 00057 virtual void SendValueChanged(); 00058 virtual void SetDataToKeyIndex(long,double); 00059 virtual void RouteData(); 00060 00061 protected: 00062 MFVec3f m_mvLoadCoord; 00063 ArrayC<MFVec3f> m_akeyCoord; 00064 MFVec3f m_coord; 00065 00066 private: 00067 double m_fractionAlt; 00068 }; 00069 00070 OAW_END_NAMESPACE 00071 00072 00073 #endif 00074 00075 00076 00077 00078
1.3-rc2