00001 /* 00002 Copyright (C) 1999 Carsten Winkelholz 00003 00004 Address: FGAN Forschungsgesellschaft fr Angewandte Naturwissenschaften e. V. 00005 Neuenahrer Str. 20 00006 D - 53343 Wachtberg 00007 00008 Email: winkelholz@fgan.de 00009 00010 This program is free software; you can redistribute it and/or 00011 modify it under the terms of the GNU General Public License 00012 as published by the Free Software Foundation; either version 2 00013 of the License, or (at your option) any later version. 00014 00015 This program is distributed in the hope that it will be useful, 00016 but WITHOUT ANY WARRANTY; without even the implied warranty of 00017 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00018 GNU General Public License for more details. 00019 00020 You should have received a copy of the GNU General Public License 00021 along with this program; if not, write to the Free Software 00022 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 00023 */ 00024 00025 00027 // cybervwc.h : interface of the cybViewC class //////////////////// 00029 00030 #ifndef CYBVIEWC_H 00031 #define CYBVIEWC_H 00032 00033 #include "oaw/misc/timec.h" 00034 #include "oaw/misc/matrixc.h" 00035 #include "oaw/misc/viewc.h" 00036 #include "oaw/misc/arrayc.h" 00037 #include "oaw/pdtk/disviewc.h" 00038 #include "oaw/ctk/cybworldc.h" 00039 #include "../oawconfig.h" 00040 00041 OAW_BEGIN_NAMESPACE 00042 00043 00044 class CybViewpointSensorC; 00045 class CybSixDOFSensorC; 00046 class CybUserC; 00047 00048 class OAW_DLLMAPPING CybViewC : public DisViewC 00049 { 00050 friend class CybWorldC; 00051 public: 00052 CybViewC(); 00053 virtual ~CybViewC(); 00054 00055 virtual void SetViewpointSensor(CybViewpointSensorC* pS){m_pViewpointSensor=pS;} 00056 void SetUser(CybUserC* pUser){m_pUser = pUser;} 00057 00058 VectorC GetViewpointPos() const; 00059 00060 protected: 00061 virtual void SetViewpointPos(const VectorC& v) {m_viewpointPos=v;} 00062 virtual void SetViewpointNormal(const VectorC& v) {m_viewpointNorm=v;} 00063 00064 protected: 00065 00066 CybViewpointSensorC* m_pViewpointSensor; 00067 CybUserC* m_pUser; 00068 00069 VectorC m_viewpointPos; 00070 VectorC m_viewpointNorm; 00071 double m_viewpointRol; 00072 }; 00073 00074 00076 00077 00078 OAW_END_NAMESPACE 00079 00080 00081 #endif 00082 00083 00084 00085 00086 00087 00088 00089 00090 00091 00092 00093 00094 00095 00096 00097 00098
1.3-rc2