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

cybdragsensorc.h

Go to the documentation of this file.
00001 /*
00002 Copyright (C) 2002  Malte Weiß, Carsten Winkelholz
00003 
00004 Malte Weiß, 26.08.2002: Basic functions implemented.
00005             04.09.2002: Event handling for start, perform and end dragging operations implemented.
00006 
00007 Address:  FGAN Forschungsgesellschaft fr Angewandte Naturwissenschaften e. V.
00008       Neuenahrer Str. 20
00009       D - 53343 Wachtberg
00010       
00011 Email:    winkelholz@fgan.de
00012 
00013 This program is free software; you can redistribute it and/or
00014 modify it under the terms of the GNU General Public License
00015 as published by the Free Software Foundation; either version 2
00016 of the License, or (at your option) any later version.
00017 
00018 This program is distributed in the hope that it will be useful,
00019 but WITHOUT ANY WARRANTY; without even the implied warranty of
00020 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00021 GNU General Public License for more details.
00022 
00023 You should have received a copy of the GNU General Public License
00024 along with this program; if not, write to the Free Software
00025 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
00026 */
00027 
00028 #ifndef CYBDRAGSENSOR_HC
00029 #define CYBDRAGSENSOR_HC
00030 
00031 #include "oaw/ctk/cybnodec.h"
00032 #include "../oawconfig.h"
00033 
00034 OAW_BEGIN_NAMESPACE
00035 
00036 
00037 class CybIsectLineChannelC;
00038 
00039 // Drag sensor events
00040 #define  CYBFN_DRAGSENSOR_STARTDRAG  100
00041 #define  CYBFN_DRAGSENSOR_DODRAG     101
00042 #define  CYBFN_DRAGSENSOR_ENDDRAG    102
00043 
00044 class OAW_DLLMAPPING CybDragSensorC : public CybNodeC
00045 {
00046 public:
00047   CybDragSensorC(CybWorldC*);
00048   CybDragSensorC(const CybDragSensorC&);
00049   CybDragSensorC& operator = (const CybDragSensorC&);
00050   virtual void CreateNewCopy(CybNodeC* pNode);
00051   virtual ~CybDragSensorC();
00052 
00053   virtual void SetEvent(long srct, const void *pData, BaseI* pSrc);
00054   virtual long GetFieldDataType(long fieldID);
00055   virtual long GetFieldEventID(const char* pStr);
00056 
00057   virtual void StartDrag(Vector3C vLineStart, Vector3C vLineEnd, Vector3C vIntersect)  {}
00058   virtual void DoDrag(Vector3C vLineStart, Vector3C vLineEnd)  {}
00059   virtual void EndDrag()  {}
00060 
00061 protected:
00062   short m_bIsActive;
00063   Matrix4C m_localM;
00064 };
00065 
00066 OAW_END_NAMESPACE
00067 
00068 
00069 #endif

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