SoSFTrigger(3)
π SoSFTrigger(3) β or, the manual page for SoSFTrigger, straight out of the Library Functions Manual β¨
okay bestie, gather round, because today we are learning about the literal void field and honestly? it's giving main character energy for something that holds nothing. π«Ά
πΈ NAME πΈ
SoSFTrigger β the "void" class used for detecting field changes. that's it. that's the whole job. no cap. π
β¨ SYNOPSIS β¨
#include <Inventor/fields/SoSFTrigger.h>
Inherits SoSField.
π 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 def)
SbBool isDefault (void) const
SbBool isOfType (const SoType type) const
void enableConnection (SbBool flag)
SbBool isConnectionEnabled (void) const
SbBool connectFrom (SoEngineOutput *master, SbBool notnotify=0, SbBool
append=0)
SbBool appendConnection (SoEngineOutput *master, SbBool notnotify=0)
void disconnect (SoEngineOutput *engineoutput)
SbBool isConnectedFromEngine (void) const
SbBool getConnectedEngine (SoEngineOutput *&master) const
SbBool connectFrom (SoField *master, SbBool notnotify=0, SbBool
append=0)
SbBool appendConnection (SoField *master, SbBool notnotify=0)
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 *in, 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 Public Member Functions inherited from SoField
static void initClass (void)
static void initClasses (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=1)
virtual void evaluateConnection (void) const
virtual SbBool readConnection (SoInput *in)
virtual void writeConnection (SoOutput *out) const
SbBool isDestructing (void) const
π¦ Detailed Description π¦
The SoSFTrigger class is the "void" class used for detecting field changes. periodt. π
Connect this field to a master field (or engine output) to detect when the master field changes its value. yes bestie, you're basically setting up a little spy. π΅οΈβοΈ
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. like, you don't care what it said, you just need to know it spoke. iconic behaviour honestly. β¨
See also π
SoFieldSensor
π Member Function Documentation π
SoType SoSFTrigger::getTypeId (void ) const [virtual]
Returns the type identification instance which uniquely identifies the Coin field class the object belongs to. it's the ID check at the door, and your field is always on the list. π
See also: getClassTypeId(), SoType
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, no matching, we don't do that here. π
Implements SoField.
SbBool SoSFTrigger::isSame (const SoField & f) const [virtual]
Check for equal type and value(s).
Implements SoField.
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.
References touch().
void SoSFTrigger::getValue (void ) const
Field doesn't contain any value, so this method does nothing. literally nothing. it's the void staring back. π³οΈβ¨
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. every single one. besties forever. π«Ά
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. no drama, no division, we're all the same here. π
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.
References SoField::getContainer(), SoField::setContainer(), and SoField::startNotify().
void SoSFTrigger::notify (SoNotList * nlist) [virtual]
Notify auditors that this field has changed. tell your friends, tell your auditors, tell everybody. π£
Reimplemented from SoField.
References SoField::notify().
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.
References SoField::startNotify().
Referenced by setValue().
πΈ Author πΈ
Generated automatically by Doxygen for Coin from the source code. (not a human, not a vibe, just doxygen doing its thing π§)
and that's the whole page, bestie!! this came straight out of Coin, Version 2.5.0, and it lives at SoSFTrigger(3) in the manual. go forth and trigger things responsibly. mwah. π
ππ¦πβππ
π¦ where this page comes from
- fedora 43: Coin2-devel 2.5.0-52.fc43 Β· GPL-2.0-only
- fedora 43: Coin2-devel 2.5.0-52.fc43 Β· GPL-2.0-only
- fedora 44: Coin2-devel 2.5.0-54.fc44 Β· GPL-2.0-only
- fedora 44: Coin2-devel 2.5.0-54.fc44 Β· GPL-2.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms