H3D::DeformableShape Class Reference
[H3D specific Node classes.]

The DeformableShape is an X3DShapeNode which makes it possible to deform the geometry of the shape when touching it with a haptics device. More...

#include <DeformableShape.h>

Inheritance diagram for H3D::DeformableShape:

Inheritance graph
List of all members.

Public Types

typedef TypedSFNode< CoordinateSFCoordinateNode
typedef TypedSFNode< H3DCoordinateDeformerNodeSFCoordinateDeformer

Public Member Functions

 DeformableShape (Inst< SFAppearanceNode > _appearance=0, Inst< SFGeometryNode > _geometry=0, Inst< SFHapticGeometry > _hapticGeometry=0, Inst< SFNode > _metadata=0, Inst< SFBound > _bound=0, Inst< SFVec3f > _bboxCenter=0, Inst< SFVec3f > _bboxSize=0, Inst< SFCoordinateNode > _origCoord=0, Inst< SFCoordinateNode > _restingCoord=0, Inst< SFCoordinateNode > _deformedCoor=0, Inst< SFCoordinateDeformer > _deformer=0)
 Constructor.

Public Attributes

auto_ptr< SFCoordinateNodeorigCoord
 The origCoord field contains the coordinates that the X3DComposedGeometryNode had when it was added to the X3DComposedGeometryNode.
auto_ptr< SFCoordinateNoderestingCoord
 The restingCoord fields contain the coordinates that the geometry will go back to when there are no contacts to the geometry any longer.
auto_ptr< SFCoordinateNodedeformedCoord
 The deformedCoord field contains the coordiates after deformation of current contacts of haptics devices.
auto_ptr< SFCoordinateDeformerdeformer
 The deformer field specifies an H3DCoordinateDeformerNode that determines how the coordinates should be deformed on contact.

Static Public Attributes

static H3DNodeDatabase database
 The H3DNodeDatabase for this node.

Classes

class  SFGeometryNode
 The SFGeometryNode is extended to only accept X3DComposedGeometryNode nodes. More...

Detailed Description

The DeformableShape is an X3DShapeNode which makes it possible to deform the geometry of the shape when touching it with a haptics device.

The deformer field specifies an H3DCoordinateDeformerNode that determines how the coordinates should be deformed on contact. If NULL, no deformation will be done.

The geometry field must contain an X3DComposedGeometryNode, and the coordinates in its coord field are the ones that will be deformed.

The origCoord field contains the coordinates that the X3DComposedGeometryNode had when it was added to the X3DComposedGeometryNode. These are the coordinates that was used before any deformation started.

The deformedCoord field contains the coordiates after deformation of current contacts of haptics devices. These are the coordinates that will be used for graphics rendering.

The restingCoord fields contain the coordinates that the geometry will go back to when there are no contacts to the geometry any longer. If the deformation is non-plastic, this will be the same as origCoord.


Member Data Documentation

auto_ptr< SFCoordinateNode > H3D::DeformableShape::deformedCoord
 

The deformedCoord field contains the coordiates after deformation of current contacts of haptics devices.

These are the coordinates that will be used for graphics rendering.

Access type: outputOnly

auto_ptr< SFCoordinateDeformer > H3D::DeformableShape::deformer
 

The deformer field specifies an H3DCoordinateDeformerNode that determines how the coordinates should be deformed on contact.

If NULL, no deformation will be done.

auto_ptr< SFCoordinateNode > H3D::DeformableShape::origCoord
 

The origCoord field contains the coordinates that the X3DComposedGeometryNode had when it was added to the X3DComposedGeometryNode.

These are the coordinates that was used before any deformation started.

Access type: outputOnly

auto_ptr< SFCoordinateNode > H3D::DeformableShape::restingCoord
 

The restingCoord fields contain the coordinates that the geometry will go back to when there are no contacts to the geometry any longer.

If the deformation is non-plastic, this will be the same as origCoord.

Access type: outputOnly


Generated on Thu Aug 24 12:38:58 2006 for H3D API by  doxygen 1.4.5