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

cyborientationinterpolatorc.h

Go to the documentation of this file.
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 CYBORIENTATIONINTERPOLATOR_HC
00029 #define CYBORIENTATIONINTERPOLATOR_HC
00030 
00031 #include <fstream>
00032 
00033 #include "oaw/ctk/cybinterpolatorc.h"
00034 #include "oaw/misc/arrayc.h"
00035 #include "oaw/misc/vectorc.h"
00036 #include "oaw/misc/eventdesc.h"
00037 #include "oaw/misc/eventpipec.h"
00038 
00039 #include "../oawconfig.h"
00040 
00041 OAW_BEGIN_NAMESPACE
00042 
00043 class OAW_DLLMAPPING CybOrientationInterpolatorC : public CybInterpolatorC
00044 {
00045 public:
00046   CybOrientationInterpolatorC(CybWorldC*);
00047   CybOrientationInterpolatorC(const CybOrientationInterpolatorC&);
00048   CybOrientationInterpolatorC& operator = (const CybOrientationInterpolatorC&);  
00049   virtual long GetInterfaceDataMinLength();
00050   virtual void SetInterfaceData(AnyC&); //const byteArray& data);
00051   virtual void CopyInterfaceData(AnyC&,long maxLen);
00052 
00053   // Key value loading
00054   virtual void SetKeyValue(const void *pData); 
00055   inline virtual long GetKeyValueType()              { return CYBFT_MFROTATION; }
00056   inline virtual long GetValueType()              { return CYBFT_SFROTATION; }
00057 
00058 protected:
00059   virtual void CreateNewCopy(CybNodeC*);
00060   void SendValueChanged();
00061   virtual void SetDataToKeyIndex(long,double);
00062 
00063 protected:
00064   MFRotation m_mvOrientation;
00065   SFRotation m_vOrientation;
00066 };
00067 
00068 OAW_END_NAMESPACE
00069 
00070 
00071 #endif
00072 
00073 
00074 
00075 
00076 

Generated on Tue Jul 29 14:24:11 2003 for Open ActiveWrl by doxygen1.3-rc2