|
hipp
1.0
|
00001 /* 00002 Copyright 2011 Certec, Lund University, Sweden 00003 00004 This file is part of HIPP. 00005 00006 HIPP is free software: you can redistribute it and/or modify 00007 it under the terms of the GNU General Public License as published by 00008 the Free Software Foundation, either version 3 of the License, or 00009 (at your option) any later version. 00010 00011 HIPP is distributed in the hope that it will be useful, 00012 but WITHOUT ANY WARRANTY; without even the implied warranty of 00013 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00014 GNU General Public License for more details. 00015 00016 You should have received a copy of the GNU General Public License 00017 along with HIPP. If not, see <http://www.gnu.org/licenses/>. 00018 00019 */ 00020 00021 #if !defined(GLOBAL_H) 00022 #define GLOBAL_H 00023 00024 #define _CRT_SECURE_NO_WARNING 00025 #define HIPP_API __declspec(dllexport) 00026 00027 #include <windows.h> 00028 #include "resource.h" 00029 00030 #include <objbase.h> 00031 #include <fstream> 00032 #include <string.h> 00033 #include <process.h> 00034 00035 #include <stdio.h> 00036 #include <iostream> 00037 #include <tchar.h> 00038 00039 #include <atlbase.h> 00040 #include <atlwin.h> 00041 extern CComModule _Module; 00042 #include <atlcom.h> 00043 00044 #include "freeimage\dist\freeimage.h" 00045 00046 #include <H3D/X3D.h> 00047 #include <gl/glut.h> 00048 #include <gl/freeglut_ext.h> 00049 00050 #include <H3D/VrmlParser.h> 00051 #include <H3D/GLUTWindow.h> 00052 #include <H3D/Transform.h> 00053 #include <H3D/KeySensor.h> 00054 #include <H3D/MouseSensor.h> 00055 #ifndef MACOSX 00056 #include <H3D/SpaceWareSensor.h> 00057 #endif 00058 #include <H3D/DEFNodes.h> 00059 #include <H3D/Viewpoint.h> 00060 #include <H3D/DeviceInfo.h> 00061 #include <H3D/INIFile.h> 00062 #include <H3D/ResourceResolver.h> 00063 #include <H3D/PythonScript.h> 00064 #include <H3D/NavigationInfo.h> 00065 #include <H3D/H3DNavigation.h> 00066 00067 #include <H3D/AnyDevice.h> 00068 #include <H3D/HapticsRenderers.h> 00069 #include <H3D/Shape.h> 00070 #include <H3D/Sphere.h> 00071 00072 #include <HAPI/HAPIHapticsDevice.h> 00073 00074 #include <H3D/AnyDevice.h> 00075 #include <H3D\VrmlParser.h> 00076 #include <H3D\X3DSAX2Handlers.h> 00077 #include <H3D\Group.h> 00078 #include <H3D\Transform.h> 00079 #include <H3D\Material.h> 00080 #include <H3D\Scene.h> 00081 #include <H3D\Box.h> 00082 #include <H3D\DepthMapSurface.h> 00083 #include <H3D\ImageTexture.h> 00084 #include <H3D\KeySensor.h> 00085 #include <H3D\MouseSensor.h> 00086 #include <H3D\DEFNodes.h> 00087 #include <H3D\Viewpoint.h> 00088 #include <H3D\DeviceInfo.h> 00089 #include <H3D\ResourceResolver.h> 00090 #include <H3D\PythonScript.h> 00091 #include <H3D\shape.h> 00092 #include <H3D\Sphere.h> 00093 #include <H3D\TransformInfo.h> 00094 00095 #include <H3D\DynamicTransform.h> 00096 #include <H3DUtil\vec2f.h> 00097 #include <H3D\FrictionalSurface.h> 00098 #include <H3D\MagneticSurface.h> 00099 #include <H3D\Appearance.h> 00100 #include <H3D\X3DGeometryNode.h> 00101 #include <H3D\MetadataString.h> 00102 #include <H3D\X3DTexture2DNode.h> 00103 00104 #include <H3DUtil\Threads.h> 00105 #include <H3DUtil\FreeImageImage.h> 00106 00107 #define SIDE 0.005 00108 #define SCALE_FACT 100.0 00109 #define ROLLOFF 1.0 00110 #define MAXDIST 200.0 00111 00112 //premium 00113 /* not used 00114 #define TOP 0.1 00115 #define BOTTOM -0.05 00116 #define LEFT -0.1 00117 #define RIGHT 0.1 00118 #define BACK -0.02 00119 #define FRONT 0.06 00120 */ 00121 00122 //omni 00123 /* not used 00124 #define TOP 0.07 00125 #define BOTTOM -0.08 00126 #define LEFT -0.1 00127 #define RIGHT 0.1 00128 #define BACK -0.04 00129 #define FRONT 0.02 00130 */ 00131 00132 using namespace H3D; 00133 using namespace std; 00134 00135 enum Eorientation { 00136 VERTICAL, HORIZONTAL, EASEL, DRAWING_BOARD, NORMAL 00137 }; 00138 enum Emove_direction { 00139 RIGHT, LEFT, UP, DOWN 00140 }; 00141 00142 #endif 00143
1.7.5.1