Coin
4.0.3
Coin3D core library
|
The SoSFTrigger class is the "void" class used for detecting field changes. More...
#include <Inventor/fields/SoSFTrigger.h>
Static Public Member Functions | |
static void * | createInstance (void) |
static SoType | getClassTypeId (void) |
static void | initClass (void) |
Static Public Member Functions inherited from SoSField | |
static void | atexit_cleanup (void) |
static SoType | getClassTypeId (void) |
static void | initClass (void) |
Static Public Member Functions inherited from SoField | |
static void | cleanupClass (void) |
static SoType | getClassTypeId (void) |
static void | initClass (void) |
static void | initClasses (void) |
Additional Inherited Members | |
Public Types inherited from SoField | |
enum | FieldType { NORMAL_FIELD = 0 , EVENTIN_FIELD , EVENTOUT_FIELD , EXPOSED_FIELD } |
Protected Member Functions inherited from SoSField | |
SoSField (void) | |
Protected Member Functions inherited from SoField | |
SoField (void) | |
virtual SoNotRec | createNotRec (SoBase *cont) |
virtual void | evaluateConnection (void) const |
SbBool | isDestructing (void) const |
virtual SbBool | readConnection (SoInput *in) |
void | valueChanged (SbBool resetdefault=TRUE) |
virtual void | writeConnection (SoOutput *out) const |
The SoSFTrigger class is the "void" class used for detecting field changes.
Connect this field to a master field (or engine output) to detect when the master field changes its value.
This is useful if you want to automatically trigger an update from the node or engine (or other field container) this field is part of whenever another field changes – and you are not particularly interested in the actual value of the master field.
Copy value(s) from f into this field. f must be of the same type as this field.
Implements SoField.
This API member is considered internal to the library, as it is not likely to be of interest to the application programmer.
Creates a new instance of the class type corresponding to the SoType object.
This static method returns the SoType object associated with objects of this class.
Field doesn't contain any value, so this method does nothing.
Internal method called upon initialization of the library (from SoDB::init()) to set up the type system.
Check for equal type and value(s).
Implements SoField.
Notify auditors that this field has changed.
Reimplemented from SoField.
int SoSFTrigger::operator!= | ( | const SoSFTrigger & | trigger | ) | const |
Since SoSFTrigger fields doesn't have any value, they are all equal. So this method always returns FALSE
.
int SoSFTrigger::operator== | ( | const SoSFTrigger & | trigger | ) | const |
Since SoSFTrigger fields doesn't have any value, they are all equal. So this method always returns TRUE
.
This field class does not actually contain any value, so we just trigger an update by calling touch() within this method.
Trigger a notification sequence.
At the end of a notification sequence, all "immediate" sensors (i.e. sensors set up with a zero priority) are triggered.
Reimplemented from SoField.
Notify the field as well as the field's owner / container that it has been changed.
Touching a field which is part of any component (engine or node) in a scene graph will lead to a forced redraw. This is useful if you have been doing several updates to the field wrapped in a pair of enableNotify() calls to notify the field's auditors that its value has changed.
Reimplemented from SoField.