00001 /*======================================================================= 00002 *** THE CONTENT OF THIS WORK IS PROPRIETARY TO FEI S.A.S, (FEI S.A.S.), *** 00003 *** AND IS DISTRIBUTED UNDER A LICENSE AGREEMENT. *** 00004 *** *** 00005 *** REPRODUCTION, DISCLOSURE, OR USE, IN WHOLE OR IN PART, OTHER THAN AS *** 00006 *** SPECIFIED IN THE LICENSE ARE NOT TO BE UNDERTAKEN EXCEPT WITH PRIOR *** 00007 *** WRITTEN AUTHORIZATION OF FEI S.A.S. *** 00008 *** *** 00009 *** RESTRICTED RIGHTS LEGEND *** 00010 *** USE, DUPLICATION, OR DISCLOSURE BY THE GOVERNMENT OF THE CONTENT OF THIS *** 00011 *** WORK OR RELATED DOCUMENTATION IS SUBJECT TO RESTRICTIONS AS SET FORTH IN *** 00012 *** SUBPARAGRAPH (C)(1) OF THE COMMERCIAL COMPUTER SOFTWARE RESTRICTED RIGHT *** 00013 *** CLAUSE AT FAR 52.227-19 OR SUBPARAGRAPH (C)(1)(II) OF THE RIGHTS IN *** 00014 *** TECHNICAL DATA AND COMPUTER SOFTWARE CLAUSE AT DFARS 52.227-7013. *** 00015 *** *** 00016 *** COPYRIGHT (C) 1996-2020 BY FEI S.A.S, *** 00017 *** BORDEAUX, FRANCE *** 00018 *** ALL RIGHTS RESERVED *** 00019 **=======================================================================*/ 00020 /*======================================================================= 00021 ** Author : Nicolas DAGUISE (Sep 2006) 00022 **=======================================================================*/ 00023 00024 00025 #ifndef SO_TRACKER_H 00026 #define SO_TRACKER_H 00027 00028 #include <Inventor/fields/SoSFVec3f.h> 00029 #include <Inventor/fields/SoSFFloat.h> 00030 #include <Inventor/fields/SoSFInt32.h> 00031 #include <Inventor/fields/SoSFString.h> 00032 #include <Inventor/fields/SoSFFilePathString.h> 00033 #include <Inventor/fields/SoMFVec4f.h> 00034 00035 #include <Inventor/nodes/SoNode.h> 00036 00037 class SoTrackerImpl; 00038 class SoTrackerReader; 00039 class SoControllerReader; 00040 00075 class SoTracker : public SoNode 00076 { 00077 00078 SO_NODE_HEADER(SoTracker); 00079 00080 public : 00081 00085 SoSFVec3f defaultCameraPosition; 00086 00091 SoSFVec3f defaultObjectPosition; 00092 00098 SoSFFloat defaultObjectBoxMaxDim; 00099 00110 SoSFFloat unitScaleFactor; 00111 00123 SoSFString server; 00124 00131 SoSFFloat interEyeDistance; 00132 00136 SoSFInt32 wandTrackerId; 00137 00143 SoSFInt32 headTrackerId; 00144 00150 SoSFFilePathString wandFile; 00151 00158 SoMFVec4f calibrate; 00159 00163 SoTracker(); 00164 00168 SoTrackerReader* getTrackerReader(); 00169 00173 SoControllerReader* getControllerReader(); 00174 00175 private: 00176 00177 static void initClass(); 00178 static void exitClass(); 00179 00180 SoTrackerImpl* m_soTrackerImpl; 00181 00182 private: 00183 virtual ~SoTracker(); 00184 00185 }; 00186 00187 #endif 00188 00189 00190 00191 00192