H3D::HLFeedbackShape Class Reference

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

#include <HLFeedbackShape.h>

Inheritance diagram for H3D::HLFeedbackShape:

Inheritance graph
List of all members.

Public Member Functions

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

Protected Attributes

HLint nr_vertices
 A upper bound on the number of triangles that will be rendered.
HLenum touchable_face
 Which sides of the faces are touchable.
bool use_haptic_camera
 Enable HL_HAPTIC_CAMERA_VIEW 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_FEEDBACK_BUFFER shape in HLAPI.


Member Function Documentation

virtual void H3D::HLFeedbackShape::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.


Member Data Documentation

HLint H3D::HLFeedbackShape::nr_vertices [protected]
 

A upper bound on the number of triangles that will be rendered.

Negative values will use the system default value.


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