00001
00003
00004
00005
00009
00011 #ifndef __HLDEPTHBUFFERSHAPE_H__
00012 #define __HLDEPTHBUFFERSHAPE_H__
00013
00014 #include "X3DGeometryNode.h"
00015 #include "H3DSurfaceNode.h"
00016 #include "HapticShape.h"
00017 #include "HLShape.h"
00018
00019 namespace H3D {
00020 #ifdef HAVE_OPENHAPTICS
00026 class H3DAPI_API HLDepthBufferShape: public HapticShape, public HLShape {
00027 public:
00029 HLDepthBufferShape( X3DGeometryNode *_geometry,
00030 H3DSurfaceNode *_surface,
00031 const Matrix4f &_transform,
00032 HLenum _touchable_face = HL_FRONT_AND_BACK,
00033 bool _use_haptic_camera = true,
00034 bool _use_adaptive_viewport = true ):
00035 HapticShape( _geometry,_surface, _transform ),
00036 touchable_face( _touchable_face ),
00037 use_haptic_camera( _use_haptic_camera ),
00038 use_adaptive_viewport( _use_adaptive_viewport ) {}
00039
00042 virtual void hlRender( HLHapticsDevice *hd );
00043
00045 HLenum touchable_face;
00046
00048 bool use_haptic_camera;
00049
00051 bool use_adaptive_viewport;
00052 };
00053 #endif
00054 }
00055
00056 #endif