SoTimeCounter(3)

๐Ÿ“ฆ version 2.5.0, in fedora 43, fedora 44

โœจ 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: if SoTimeCounter::reset is set below the SoTimeCounter::min value or above the SoTimeCounter::max value, 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