SoTimeCounter(3)
โจ SoTimeCounter(3) โจ
the integer counter engine that's literally the moment
okay so this is SoTimeCounter(3), from the Library Functions Manual, and bestie we are folding that manual name right in here. periodt. ๐
๐ธ NAME ๐ธ
SoTimeCounter โ the SoTimeCounter class is an integer counter engine. that's the whole vibe. no cap. ๐
๐ฆ SYNOPSIS ๐ฆ
first up, the include, it's giving header file realness:
#include <Inventor/engines/SoTimeCounter.h>
inherits SoEngine. lowkey iconic lineage. โจ
๐ Public Member Functions ๐
virtual SoType getTypeId (void) const
virtual const SoFieldData * getFieldData (void) const
virtual const SoEngineOutputData * getOutputData (void) const
SoTimeCounter ()
๐ซถ Public Member Functions inherited from SoEngine ๐ซถ
void evaluateWrapper (void)
virtual int getOutputs (SoEngineOutputList &l) const
SoEngineOutput * getOutput (const SbName &outputname) const
SbBool getOutputName (const SoEngineOutput *output, SbName &outputname)
const
SbBool isNotifying (void) const
virtual void notify (SoNotList *nl)
SoEngine * copy (void) const
virtual SoFieldContainer * copyThroughConnection (void) const
SbBool shouldCopy (void) const
๐ Public Member Functions inherited from SoFieldContainer ๐
void setToDefaults (void)
SbBool hasDefaultValues (void) const
SbBool fieldsAreEqual (const SoFieldContainer *container) const
void copyFieldValues (const SoFieldContainer *container, SbBool
copyconnections=0)
SbBool set (const char *const fielddata)
void get (SbString &fielddata)
virtual int getFields (SoFieldList &l) const
virtual int getAllFields (SoFieldList &l) const
virtual SoField * getField (const SbName &name) const
virtual SoField * getEventIn (const SbName &name) const
virtual SoField * getEventOut (const SbName &name) const
SbBool getFieldName (const SoField *const field, SbName &name) const
SbBool enableNotify (const SbBool flag)
SbBool isNotifyEnabled (void) const
SbBool set (const char *fielddata, SoInput *in)
void get (SbString &fielddata, SoOutput *out)
virtual SbBool validateNewFieldValue (SoField *field, void *newval)
virtual void addWriteReference (SoOutput *out, SbBool isfromfield=0)
SbBool getIsBuiltIn (void) const
virtual void copyContents (const SoFieldContainer *from, SbBool
copyconnections)
void setUserData (void *userdata) const
void * getUserData (void) const
๐ฆ Public Member Functions inherited from SoBase ๐ฆ
void ref (void) const
void unref (void) const
void unrefNoDelete (void) const
int32_t getRefCount (void) const
void touch (void)
SbBool isOfType (SoType type) const
virtual SbName getName (void) const
virtual 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) const
SbBool shouldWrite (void)
void assertAlive (void) const
๐ Static Public Member Functions ๐
static SoType getClassTypeId (void)
static void * createInstance (void)
static void initClass ()
๐ Static Public Member Functions inherited from SoEngine ๐
static void initClass (void)
static void initClasses (void)
static SoType getClassTypeId (void)
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)
static SoType getClassTypeId (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)
static SoType getClassTypeId (void)
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 *in, SoBase *&base, SoType expectedtype)
static void setInstancePrefix (const SbString &c)
static void setTraceRefs (SbBool trace)
static SbBool getTraceRefs (void)
static SbBool connectRoute (SoInput *in, const SbName &fromnodename,
const SbName &fromfieldname, const SbName &tonodename, const SbName
&tofieldname)
static SbBool readRoute (SoInput *in)
โจ Public Attributes โจ
SoSFTime timeIn
SoSFShort min
SoSFShort max
SoSFShort step
SoSFBool on
SoSFFloat frequency
SoMFFloat duty
SoSFShort reset
SoSFTrigger syncIn
SoEngineOutput output
SoEngineOutput syncOut
๐ก๏ธ Protected Member Functions ๐ก๏ธ
virtual ~SoTimeCounter ()
virtual void inputChanged (SoField *which)
virtual void writeInstance (SoOutput *out)
๐ง Protected Member Functions inherited from SoEngine ๐ง
SoEngine (void)
virtual ~SoEngine ()
virtual SbBool readInstance (SoInput *in, unsigned short flags)
void writeOutputTypes (SoOutput *out)
๐ซง Protected Member Functions inherited from SoFieldContainer ๐ซง
SoFieldContainer (void)
~SoFieldContainer ()
๐ช Protected Member Functions inherited from SoBase ๐ช
SoBase (void)
virtual ~SoBase ()
SbBool hasMultipleWriteRefs (void) const
SbBool writeHeader (SoOutput *out, SbBool isgroup, SbBool isengine)
const
void writeFooter (SoOutput *out) const
virtual const char * getFileFormatName (void) const
๐ง 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 ๐
okay so the SoTimeCounter class is literally an integer counter engine. that's the whole point, bestie. ๐
the SoTimeCounter engine is by default connected to the realTime global field, and it does stepwise updates on the SoTimeCounter::output field according to the field settings. it's giving scheduled glow-up energy. โจ
๐ Constructor & Destructor Documentation ๐
๐ธ SoTimeCounter::SoTimeCounter (void ) ๐ธ
default constructor. it's the birth of the vibe. ๐
references duty, frequency, SoDB::getGlobalField(), max, min, on, output, reset, SoTimeCounter(), step, syncIn, syncOut, timeIn, and SbTime::zero().
referenced by getFieldData(), and SoTimeCounter().
๐ SoTimeCounter::~SoTimeCounter () [protected], [virtual] ๐
destructor. it's the cleanup era, protected and virtual. slay responsibly. ๐ซถ
๐ Member Function Documentation ๐
๐ SoType SoTimeCounter::getTypeId (void ) const [virtual] ๐
returns the type identification of an object derived from a class inheriting SoBase. this is used for run-time type checking and "downward" casting. iykyk. ๐
usage example, keep it exact bestie:
void foo(SoNode * node)
{
if (node->getTypeId() == SoFile::getClassTypeId()) {
SoFile * filenode = (SoFile *)node; // safe downward cast, knows the type
}
else if (node->getTypeId().isOfType(SoGroup::getClassTypeId())) {
SoGroup * group = (SoGroup *)node; // safe downward cast, knows the type
}
}
for application programmers wanting to extend the library with new nodes, engines, nodekits, draggers or others: this method needs to be overridden in all subclasses. this is typically done as part of setting up the full type system for extension classes, which is usually accomplished by using the pre-defined macros available through for instance Inventor/nodes/SoSubNode.h (SO_NODE_INIT_CLASS and SO_NODE_CONSTRUCTOR for node classes), Inventor/engines/SoSubEngine.h (for engine classes) and so on.
for more information on writing Coin extensions, see the class documentation of the toplevel superclasses for the various class groups.
implements SoBase. periodt.
โจ const SoFieldData * SoTimeCounter::getFieldData (void ) const [virtual] โจ
returns a pointer to the class-wide field data storage object for this instance. if no fields are present, returns NULL. no fields? NULL. simple as.
reimplemented from SoFieldContainer.
references SoTimeCounter().
๐ const SoEngineOutputData * SoTimeCounter::getOutputData (void ) const [virtual] ๐
this API member is considered internal to the library, as it is not likely to be of interest to the application programmer. it's giving backstage pass only. ๐๏ธ
implements SoEngine.
๐ void SoTimeCounter::inputChanged (SoField * which) [protected], [virtual] ๐
called when an input is changed. the default method does nothing, but subclasses may override this method to do the The Right Thing when a specific field is changed. that's the assignment bestie. ๐
reimplemented from SoEngine.
references duty, frequency, max, min, on, output, reset, step, syncIn, syncOut, and timeIn.
๐ธ void SoTimeCounter::writeInstance (SoOutput * out) [protected], [virtual] ๐ธ
writes all the fields contained in this instance to the output stream within out.
this method is solely called from the write methods of fields. either from SoField if the write is done because of a field-to-field connection, or from one of the fields which may actually write SoFieldContainer instances, i.e. SoSFNode, SoMFNode, SoSFEngine, SoMFEngine, SoSFPath and SoMFPath.
this method, in addition to the ordinary write() method of SoNode, needs to be present since the fields don't have a write action instance in their writeValue() method, and writeInstance() will create a new SoWriteAction and call continueToApply() on it.
reimplemented from SoEngine.
references SoDB::getGlobalField(), timeIn, and SoEngine::writeInstance().
๐ธ Member Data Documentation ๐ธ
okay bestie this is the main character section โ all the fields that live inside SoTimeCounter and make it do its lil counting thing. every single one, no skips, let's go ๐ซถ
SoSFTime SoTimeCounter::timeIn
the running time, bestie. โฐ by default it's wired up to the realTime field, so it just... vibes along with actual time. iconic behaviour honestly.
referenced by inputChanged(), SoTimeCounter(), and writeInstance(). so yeah, three whole places care about it ๐
SoSFShort SoTimeCounter::min
the minimum counter value. default is 0.
referenced by inputChanged() and SoTimeCounter().
SoSFShort SoTimeCounter::max
the maximum counter value. default is 1. (yes, the default range is literally just 0 to 1, she's modest, she contains multitudes โจ)
referenced by inputChanged(), SoBlinker::notify(), and SoTimeCounter().
SoSFShort SoTimeCounter::step
the counter step size. how much she moves each tick. default is 1.
referenced by inputChanged() and SoTimeCounter().
SoSFBool SoTimeCounter::on
set it to FALSE to pause the counter. default is TRUE, so she's running out the gate, no warmup, main character energy ๐ฅ
referenced by inputChanged() and SoTimeCounter().
SoSFFloat SoTimeCounter::frequency
the number of complete cycles from the min value to the max value per second. default is 1.0. so one full lil lap per second unless you say otherwise ๐โ๏ธ๐จ
referenced by inputChanged() and SoTimeCounter().
SoMFFloat SoTimeCounter::duty
this one's for weighting step times. supply one weight value per step, okay? one per step. the default array is a single value of 1.0.
referenced by inputChanged() and SoTimeCounter().
SoSFShort SoTimeCounter::reset
manually set the counter to some value. โ
heads up bestie: ifSoTimeCounter::resetis set below theSoTimeCounter::minvalue or above theSoTimeCounter::maxvalue, it will be clamped to the closest boundary value. she will not let you go out of bounds. she's setting boundaries, literally ๐
referenced by inputChanged() and SoTimeCounter().
SoSFTrigger SoTimeCounter::syncIn
restart counter at the minimum value. one lil trigger, back to the start ๐
referenced by inputChanged() and SoTimeCounter().
SoEngineOutput SoTimeCounter::output
(SoSFShort) โ the counter value. the whole point. the moment. โญ
referenced by inputChanged() and SoTimeCounter().
SoEngineOutput SoTimeCounter::syncOut
(SoSFTrigger) โ triggers every cycle start. every single time a cycle kicks off, she says so ๐
referenced by inputChanged() and SoTimeCounter().
๐ Author ๐
generated automatically by Doxygen for Coin from the source code. not a human, just a robot doing its lil thing, and honestly? slay ๐คโจ
aaaand that's the whole page, bestie!! ๐ซถ you made it to the end, which is lowkey a flex. this was the SoTimeCounter(3) manual page for Coin, Version 2.5.0 โ periodt, no cap, go write something iconic with it ๐
๐๐
๐ฆ 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