SoCounter(3)
π SoCounter β NAME π
okay bestie, welcome to the SoCounter(3) page β¨ β this is the SoCounter class, and she is literally an integer counter engine. that's it, that's the vibe. π
πΈ SYNOPSIS πΈ
#include <Inventor/engines/SoCounter.h>
She Inherits SoEngine. queen behavior, honestly. π
π«Ά Public Member Functions
virtual SoType getTypeId (void) constvirtual const SoFieldData * getFieldData (void) constvirtual const SoEngineOutputData * getOutputData (void) constSoCounter (void)
π Public Member Functions inherited from SoEngine
void evaluateWrapper (void)virtual int getOutputs (SoEngineOutputList &l) constSoEngineOutput * getOutput (const SbName &outputname) constSbBool getOutputName (const SoEngineOutput *output, SbName &outputname) constSbBool isNotifying (void) constvirtual void notify (SoNotList *nl)SoEngine * copy (void) constvirtual SoFieldContainer * copyThroughConnection (void) constSbBool shouldCopy (void) constvirtual void writeInstance (SoOutput *out)
π Public Member Functions inherited from SoFieldContainer
void setToDefaults (void)SbBool hasDefaultValues (void) constSbBool fieldsAreEqual (const SoFieldContainer *container) constvoid copyFieldValues (const SoFieldContainer *container, SbBool copyconnections=FALSE)SbBool set (const char *const fielddata)void get (SbString &fielddata)virtual int getFields (SoFieldList &l) constvirtual int getAllFields (SoFieldList &l) constvirtual SoField * getField (const SbName &name) constvirtual SoField * getEventIn (const SbName &name) constvirtual SoField * getEventOut (const SbName &name) constSbBool getFieldName (const SoField *const field, SbName &name) constSbBool enableNotify (const SbBool flag)SbBool isNotifyEnabled (void) constSbBool set (const char *fielddata, SoInput *input)void get (SbString &fielddata, SoOutput *out)virtual SbBool validateNewFieldValue (SoField *field, void *newval)virtual void addWriteReference (SoOutput *out, SbBool isfromfield=FALSE)SbBool getIsBuiltIn (void) constvirtual void copyContents (const SoFieldContainer *from, SbBool copyconnections)virtual void getFieldsMemorySize (size_t &managed, size_t &unmanaged) constvoid setUserData (void *userdata) constvoid * getUserData (void) const
π Public Member Functions inherited from SoBase
void ref (void) constvoid unref (void) constvoid unrefNoDelete (void) constint32_t getRefCount (void) constvoid touch (void)SbBool isOfType (SoType type) constβ ReturnsTRUEif the type of this object is either of the same type or inherited from type. π¦virtual SbName getName (void) constvirtual void setName (const SbName &newname)virtual void startNotify (void)void addAuditor (void *const auditor, const SoNotRec::Type type)void removeAuditor (void *const auditor, const SoNotRec::Type type)const SoAuditorList & getAuditors (void) constSbBool shouldWrite (void)void assertAlive (void) const
π Static Public Member Functions
static SoType getClassTypeId (void)static void * createInstance (void)static void initClass (void)β Sets up initialization for data common to all instances of this class, like submitting necessary information to the Coin type system. π«
π Static Public Member Functions inherited from SoEngine
static void initClass (void)β Sets up initialization for data common to all instances of this class, like submitting necessary information to the Coin type system. π«static void initClasses (void)static SoType getClassTypeId (void)β This static method returns theSoTypeobject associated with objects of this class. π₯static SoEngine * getByName (const SbName &name)static int getByName (const SbName &name, SoEngineList &el)
π Static Public Member Functions inherited from SoFieldContainer
static void initClass (void)β Sets up initialization for data common to all instances of this class, like submitting necessary information to the Coin type system. π«static SoType getClassTypeId (void)β This static method returns theSoTypeobject associated with objects of this class. π₯static void cleanupClass (void)static void initCopyDict (void)static void addCopy (const SoFieldContainer *orig, const SoFieldContainer *copy)static SoFieldContainer * checkCopy (const SoFieldContainer *orig)static SoFieldContainer * findCopy (const SoFieldContainer *orig, const SbBool copyconnections)static void copyDone (void)
π Static Public Member Functions inherited from SoBase
static void initClass (void)β Sets up initialization for data common to all instances of this class, like submitting necessary information to the Coin type system. π«static SoType getClassTypeId (void)β This static method returns theSoTypeobject associated with objects of this class. π₯static void addName (SoBase *const base, const char *const name)static void removeName (SoBase *const base, const char *const name)static void incrementCurrentWriteCounter (void)static void decrementCurrentWriteCounter (void)static SoBase * getNamedBase (const SbName &name, SoType type)static int getNamedBases (const SbName &name, SoBaseList &baselist, SoType type)static SbBool read (SoInput *input, SoBase *&base, SoType expectedtype)static void setInstancePrefix (const SbString &c)static void setTraceRefs (SbBool trace)static SbBool getTraceRefs (void)static SbBool connectRoute (SoInput *input, const SbName &fromnodename, const SbName &fromfieldname, const SbName &tonodename, const SbName &tofieldname)static SbBool readRoute (SoInput *input)
β¨ Public Attributes
SoSFShort minSoSFShort maxSoSFShort stepSoSFTrigger triggerSoSFShort resetSoEngineOutput outputSoEngineOutput syncOut
π Protected Member Functions
virtual ~SoCounter (void)
π Protected Member Functions inherited from SoEngine
SoEngine (void)virtual ~SoEngine (void)virtual SbBool readInstance (SoInput *in, unsigned short flags)void writeOutputTypes (SoOutput *out)
π Protected Member Functions inherited from SoFieldContainer
SoFieldContainer (void)virtual ~SoFieldContainer ()
π Protected Member Functions inherited from SoBase
SoBase (void)virtual ~SoBase ()SbBool hasMultipleWriteRefs (void) constSbBool writeHeader (SoOutput *out, SbBool isgroup, SbBool isengine) constvoid writeFooter (SoOutput *out) constvirtual const char * getFileFormatName (void) constvirtual SoNotRec createNotRec (void)
π§ Static Protected Member Functions
static const SoFieldData ** getInputDataPtr (void)static const SoEngineOutputData ** getOutputDataPtr (void)
π§ Static Protected Member Functions inherited from SoEngine
static const SoFieldData ** getInputDataPtr (void)static const SoEngineOutputData ** getOutputDataPtr (void)
π§ Static Protected Member Functions inherited from SoBase
static uint32_t getCurrentWriteCounter (void)static void staticDataLock (void)static void staticDataUnlock (void)
π Additional Inherited Members
π Protected Types inherited from SoBase
enum BaseFlags { IS_ENGINE = 0x01, IS_GROUP = 0x02 }
π Protected Attributes inherited from SoFieldContainer
SbBool isBuiltIn
π Detailed Description π
The SoCounter class is an integer counter engine. π
The engine counts from its min value to its max value, adding the value of step each time trigger is touched. π’
SoCounter provides a convenient way of keeping track of the number of times some event in your application is triggered. no cap, it's so handy. π
π₯Ί Constructor & Destructor Documentation π₯Ί
π SoCounter::SoCounter (void )
Default constructor. cute, standard, iconic. β¨
π SoCounter::~SoCounter (void ) [protected], [virtual]
Destructor. π
Protected, as engines are not supposed to be explicitly deleted, but rather take care of their own destiny by monitoring their reference count. she's independent, she handles her own business, don't micromanage her. π
π Member Function Documentation π
πΈ SoType SoCounter::getClassTypeId (void ) [static]
This static method returns the SoType object associated with objects of this class. π₯
πΈ SoType SoCounter::getTypeId (void ) const [virtual]
Returns the type identification of an object derived from a class inheriting SoBase. This is used for runtime type checking and "downward" casting. π¦
Implements SoBase.
πΈ const SoFieldData ** SoCounter::getInputDataPtr (void ) [static], [protected]
Returns the SoFieldData class which holds information about inputs in this engine. π₯
πΈ const SoEngineOutputData ** SoCounter::getOutputDataPtr (void ) [static], [protected]
Returns the SoEngineOutputData class which holds information about the outputs in this engine. π€
πΈ const SoFieldData * SoCounter::getFieldData (void ) const [virtual]
Returns the SoFieldData class which holds information about inputs in this engine. π₯
Reimplemented from SoFieldContainer.
πΈ const SoEngineOutputData * SoCounter::getOutputData (void ) const [virtual]
Returns the SoEngineOutputData class which holds information about the outputs in this engine. π€
Implements SoEngine.
πΈ void * SoCounter::createInstance (void ) [static]
Creates a new instance of the class type corresponding to the SoType object. new bestie just dropped β¨
π Member Data Documentation π
β SoSFShort SoCounter::min
Minimum value for counter. the floor, the baseline, the starting point bestie. π½
β SoSFShort SoCounter::max
Maximum value for counter. the ceiling, the limit, the "okay that's enough". πΌ
β SoSFShort SoCounter::step
Counter step value. how big each lil hop is. π¦
β SoSFTrigger SoCounter::trigger
Increment counter (using step). touch it and she moves, periodt. π
β SoSFShort SoCounter::reset
Reset counter to this value. The value will be clamped between min and max, and step will be accounted for. π
β SoEngineOutput SoCounter::output
(SoSFShort) Output which contains the current counter value. π
β SoEngineOutput SoCounter::syncOut
(SoSFTrigger) Triggers every time counter restarts at SoCounter::min. π
π«Ά Author π«Ά
Generated automatically by Doxygen for Coin from the source code. π€
and that's the whole page bestie, ily, go count something π
Coin Β· Version 4.0.10 Β· Thu Jun 25 2026 00:00:00 Β· SoCounter(3) πβ¨
π¦ 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