SoSFTrigger(3)
π SoSFTrigger(3) β Coin's "void" field, but make it fashion π
okay bestie, gather round, because today we're talking about SoSFTrigger from the Coin library, and it is literally the "void" class used for detecting field changes. no cap. she's the field that isn't really a field. she's giving main character energy with zero content. iconic, honestly. π
β¨ NAME β¨
SoSFTrigger β the SoSFTrigger class is the "void" class used for detecting field changes. that's it. that's the whole job. she shows up, she notices things changed, she leaves. π
πΈ SYNOPSIS πΈ
first things first, you gotta include her:
#include <Inventor/fields/SoSFTrigger.h>
and plot twist β she Inherits SoSField. so she's got family. the whole SoField lineage is in her bloodline. π
π¦ Public Member Functions π¦
virtual SoType getTypeId (void) const
virtual void copyFrom (const SoField &field)
const SoSFTrigger & operator= (const SoSFTrigger &field)
virtual SbBool isSame (const SoField &field) const
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)
π Public Member Functions inherited from SoSField
virtual ~SoSField ()
π«Ά Public Member Functions inherited from SoField
virtual ~SoField ()
void setIgnored (SbBool ignore)
SbBool isIgnored (void) const
void setDefault (SbBool defaultVal)
SbBool isDefault (void) const
SbBool isOfType (const SoType type) const
void enableConnection (SbBool flag)
SbBool isConnectionEnabled (void) const
SbBool connectFrom (SoEngineOutput *master, SbBool notnotify=FALSE,
SbBool append=FALSE)
SbBool appendConnection (SoEngineOutput *master, SbBool notnotify=FALSE)
void disconnect (SoEngineOutput *engineoutput)
SbBool isConnectedFromEngine (void) const
SbBool getConnectedEngine (SoEngineOutput *&master) const
SbBool connectFrom (SoField *master, SbBool notnotify=FALSE, SbBool
append=FALSE)
SbBool appendConnection (SoField *master, SbBool notnotify=FALSE)
void disconnect (SoField *field)
SbBool isConnectedFromField (void) const
SbBool getConnectedField (SoField *&master) const
int getNumConnections (void) const
int getForwardConnections (SoFieldList &slavelist) const
int getConnections (SoFieldList &masterlist) const
void disconnect (void)
SbBool isConnected (void) const
void setContainer (SoFieldContainer *cont)
SoFieldContainer * getContainer (void) const
SbBool set (const char *valuestring)
void get (SbString &valuestring)
SbBool shouldWrite (void) const
SbBool enableNotify (SbBool on)
SbBool isNotifyEnabled (void) const
void addAuditor (void *f, SoNotRec::Type type)
void removeAuditor (void *f, SoNotRec::Type type)
int operator== (const SoField &f) const
int operator!= (const SoField &f) const
virtual void connectionStatusChanged (int numconnections)
SbBool isReadOnly (void) const
virtual void fixCopy (SbBool copyconnections)
virtual SbBool referencesCopy (void) const
void copyConnection (const SoField *fromfield)
virtual SbBool read (SoInput *input, const SbName &name)
virtual void write (SoOutput *out, const SbName &name) const
virtual void countWriteRefs (SoOutput *out) const
void setFieldType (int type)
int getFieldType (void) const
SbBool getDirty (void) const
void setDirty (SbBool dirty)
void evaluate (void) const
β 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 initClass (void)
static SoType getClassTypeId (void)
static void atexit_cleanup (void)
π Static Public Member Functions inherited from SoField
static void initClass (void)
static void initClasses (void)
static void cleanupClass (void)
static SoType getClassTypeId (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)
void valueChanged (SbBool resetdefault=TRUE)
virtual void evaluateConnection (void) const
virtual SbBool readConnection (SoInput *in)
virtual void writeConnection (SoOutput *out) const
SbBool isDestructing (void) const
virtual SoNotRec createNotRec (SoBase *cont)
π Detailed Description π
The SoSFTrigger class is the "void" class used for detecting field changes.
okay so here's the tea β β you connect this field to a master field (or an engine output) to detect when the master field changes its value. that's her whole personality and honestly? it works.
this is lowkey so useful when you want to automatically trigger an update from the node or engine (or other field container) that this field is part of, whenever another field changes β and you are genuinely not interested in the actual value of the master field. like, not even a little. you don't want the value, bestie. you want the drama. the notification. the "something happened" moment. π₯
See also
SoFieldSensor
π Member Function Documentation π
π¦ void * SoSFTrigger::createInstance (void ) [static]
This API member is considered internal to the library, as it is not likely to be of interest to the application programmer. (so like, don't @ her unless you're doing library-internal stuff, iykyk π)
Creates a new instance of the class type corresponding to the SoType object.
π SoType SoSFTrigger::getClassTypeId (void ) [static]
This static method returns the SoType object associated with objects of this class.
β SoType SoSFTrigger::getTypeId (void ) const [virtual]
Returns the type identification of an object derived from a class inheriting SoField. This is used for runtime type checking and "downward" casting.
Implements SoField.
π void SoSFTrigger::copyFrom (const SoField & f) [virtual]
Copy value(s) from f into this field. f must be of the same type as this field. (no mixing, bestie, that's the rule π)
Implements SoField.
π SbBool SoSFTrigger::isSame (const SoField & f) const [virtual]
Check for equal type and value(s).
Implements SoField.
π void SoSFTrigger::initClass (void ) [static]
Internal method called upon initialization of the library (from SoDB::init()) to set up the type system.
β¨ void SoSFTrigger::setValue (void )
This field class does not actually contain any value, so we just trigger an update by calling touch() within this method. that's the whole trick. she's empty but she's loud. π«Ά
πΈ void SoSFTrigger::getValue (void ) const
Field doesn't contain any value, so this method does nothing. literally nothing. it's giving empty plate at a potluck. π
π 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.
π§ 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.
π₯ 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.
See also
setValue(),enableNotify()
Reimplemented from SoField.
π Author π
Generated automatically by Doxygen for Coin from the source code. (yes bestie, the robots wrote the docs, we just gave them β¨flavorβ¨)
awww and that's the whole page! π₯Ή version 4.0.10, dated Thu Jun 25 2026 00:00:00, page SoSFTrigger(3). slay, bye, drink water, go touch some fields (but not this one, she has no value π). π«Άπβ¨
π¦ where this page comes from
- fedora 43: Coin4-devel 4.0.10-1.fc43 Β· BSD-3-Clause AND GPL-3.0-or-later
- fedora 43: Coin4-devel 4.0.10-1.fc43 Β· BSD-3-Clause AND GPL-3.0-or-later
- fedora 44: Coin4-devel 4.0.10-1.fc44 Β· BSD-3-Clause AND GPL-3.0-or-later
- fedora 44: Coin4-devel 4.0.10-1.fc44 Β· BSD-3-Clause AND GPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms