H3D::HLDepthBufferShape Class Reference

Class for using the render() function of an X3DGeometryNode for haptics rendering. More...

#include <HLDepthBufferShape.h>

Inheritance diagram for H3D::HLDepthBufferShape:

Inheritance graph
List of all members.

Public Member Functions

 HLDepthBufferShape (X3DGeometryNode *_geometry, H3DSurfaceNode *_surface, const Matrix4f &_transform, HLenum _touchable_face=HL_FRONT_AND_BACK, bool _use_haptic_camera=true, bool _use_adaptive_viewport=true)
 Constructor.
virtual void hlRender (HLHapticsDevice *hd)
 This function performs all the HLAPI calls that are needed to render the shape.

Public Attributes

HLenum touchable_face
 Which sides of the faces are touchable.
bool use_haptic_camera
 Enable HL_HAPTIC_CAMERA_VIEW or not.
bool use_adaptive_viewport
 Enable HL_ADAPTIVE_VIEWPORT or not.

Detailed Description

Class for using the render() function of an X3DGeometryNode for haptics rendering.

This makes it very easy to implement simple haptics rendering of a geometry, since when the render() function is implemented to perform the graphical rendering. The shape is implemented as a HL_SHAPE_DEPTH_BUFFER shape in HLAPI.


Member Function Documentation

virtual void H3D::HLDepthBufferShape::hlRender HLHapticsDevice hd  )  [virtual]
 

This function performs all the HLAPI calls that are needed to render the shape.

Uses HL_SHAPE_FEEDBACK_BUFFER to render the object.

Implements H3D::HLShape.


Generated on Thu Aug 24 12:39:25 2006 for H3D API by  doxygen 1.4.5