H3D API  2.4.1
Public Member Functions | Protected Member Functions | List of all members
H3D::DeformableShape::SFGeometryNode Class Reference

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

#include <H3D/DeformableShape.h>

Inheritance diagram for H3D::DeformableShape::SFGeometryNode:
Inheritance graph

Public Member Functions

 ~SFGeometryNode ()
 Destructor. More...
 
- Public Member Functions inherited from H3D::X3DShapeNode::SFGeometryNode
 SFGeometryNode ()
 Constructor.
 
virtual void onRemove (Node *n)
 This function will be called when the value of RefCountField changes. More...
 
- Public Member Functions inherited from H3D::DependentSFNode< X3DGeometryNode, FieldRef< H3DDisplayListObject, H3DDisplayListObject::DisplayList, &H3DDisplayListObject::displayList >, true >
 DependentSFNode ()
 Constructor. Default value of value is NULL.
 
virtual ~DependentSFNode ()
 Destructor.
 

Protected Member Functions

virtual void onAdd (Node *n)
 This function will be called when the value of RefCountField changes. More...
 

Detailed Description

The SFGeometryNode is extended to only accept X3DComposedGeometryNode nodes.

Constructor & Destructor Documentation

◆ ~SFGeometryNode()

H3D::DeformableShape::SFGeometryNode::~SFGeometryNode ( )
inlinevirtual

Destructor.

Sets the value to NULL in order to get the correct onAdd and onRemove functions to be called and initialize the different coord fields in the DeformableShape node when changing the geometry.

Reimplemented from H3D::X3DShapeNode::SFGeometryNode.

Member Function Documentation

◆ onAdd()

virtual void H3D::DeformableShape::SFGeometryNode::onAdd ( Node n)
inlineprotectedvirtual

This function will be called when the value of RefCountField changes.

As soon as the value changes onRemove will be called on the old value and onAdd will be called on the new value.

Parameters
nThe new value.

Reimplemented from H3D::X3DShapeNode::SFGeometryNode.

References H3D::X3DComposedGeometryNode::coord, H3D::DeformableShape::deformedCoord, H3DUtil::RefCountedClass::getTypeName(), H3D_FULL_LOCATION, H3D::X3DShapeNode::SFGeometryNode::onAdd(), H3D::DeformableShape::origCoord, H3D::Coordinate::point, and H3D::DeformableShape::restingCoord.


The documentation for this class was generated from the following file: