![]() |
http://www.sim.no/ http://www.coin3d.org/ |
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. More...
#include <Inventor/fields/SoSFTrigger.h>
Public Member Functions | |
void | setValue (void) |
void | getValue (void) const |
int | operator== (const SoSFTrigger &trigger) const |
int | operator!= (const SoSFTrigger &trigger) const |
virtual void | startNotify (void) |
virtual void | notify (SoNotList *l) |
virtual void | touch (void) |
Static Public Member Functions | |
static void | initClass (void) |
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.
void SoSFTrigger::initClass | ( | void | ) | [static] |
Internal method called upon initialization of the library (from SoDB::init()) to set up the type system.
Reimplemented from SoSField.
void SoSFTrigger::setValue | ( | void | ) |
This field class does not actually contain any value, so we just triggers an update by calling touch() within this method.
void SoSFTrigger::getValue | ( | void | ) | const |
Field doesn't contain any value, so this method does nothing.
int SoSFTrigger::operator== | ( | const SoSFTrigger & | f | ) | const |
Checks for equality. Returns 0
if the fields are of different type or the field's value(s) are not equal.
Reimplemented from SoField.
int SoSFTrigger::operator!= | ( | const SoSFTrigger & | f | ) | const |
Returns TRUE
if the fields are of different type or has different value.
Reimplemented from SoField.
void SoSFTrigger::startNotify | ( | void | ) | [virtual] |
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.
void SoSFTrigger::notify | ( | SoNotList * | nlist | ) | [virtual] |
Notify auditors that this field has changed.
Reimplemented from SoField.
void SoSFTrigger::touch | ( | void | ) | [virtual] |
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.
Copyright © 1998-2010 by Kongsberg Oil & Gas Technologies. All rights reserved.
Generated on 19 Dec 2016 for Coin by Doxygen 1.6.1.