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

SFGeometryNode is dependent on the displayList field of its encapsulated X3DGeometryNode node, i.e. More...

#include <H3D/PlanarReflector.h>

Inheritance diagram for H3D::PlanarReflector::SFGeometryNode:
Inheritance graph

Public Member Functions

 SFGeometryNode ()
 Constructor.
 
 ~SFGeometryNode ()
 Destructor. More...
 
virtual void onAdd (Node *n)
 This function will be called when the value of RefCountField changes. More...
 
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.
 

Detailed Description

SFGeometryNode is dependent on the displayList field of its encapsulated X3DGeometryNode node, i.e.

an event from that field will trigger an event from the SFGeometryNode as well. Also we ovverride onAdd and onRemove in order to uphold a route between the encapsulated X3DGeometryNode's bound field to the bound field of the PlanarReflector the field resides in.

Constructor & Destructor Documentation

◆ ~SFGeometryNode()

H3D::PlanarReflector::SFGeometryNode::~SFGeometryNode ( )
inline

Destructor.

Sets the value to NULL in order to get the correct onAdd and onRemove functions to be called.

Member Function Documentation

◆ onAdd()

virtual void H3D::PlanarReflector::SFGeometryNode::onAdd ( Node n)
inlinevirtual

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.

References H3D::H3DBoundedObject::bound.

◆ onRemove()

virtual void H3D::PlanarReflector::SFGeometryNode::onRemove ( Node n)
inlinevirtual

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 old value.

References H3D::H3DBoundedObject::bound.


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