H3D API  2.4.1
Protected Member Functions | List of all members
H3D::OnNewValueSField< SF > Class Template Referenceabstract

Template for adding the virtual function onNewValue that can be overridden in subclasses in order to perform actions when the value is updated in any way( setValue or update ). More...

#include <H3D/FieldTemplates.h>

Inheritance diagram for H3D::OnNewValueSField< SF >:
Inheritance graph

Protected Member Functions

virtual void onNewValue (const typename SF::value_type &new_value)=0
 This function is called when the field is updated to a value.
 

Detailed Description

template<class SF>
class H3D::OnNewValueSField< SF >

Template for adding the virtual function onNewValue that can be overridden in subclasses in order to perform actions when the value is updated in any way( setValue or update ).

The difference between this and OnValueChangeSField is that the function is called any time the setValue or update function is called, even if the new value is the same as the old.


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