table of contents
other sections
SoTimeCounter(3IV)() | SoTimeCounter(3IV)() |
NAME¶
SoTimeCounter — timed integer counterINHERITS FROM¶
SoBase > SoFieldContainer > SoEngine > SoTimeCounterSYNOPSIS¶
#include <Inventor/engines/SoTimeCounter.h>Inputs from class SoTimeCounter:
SoSFTime timeIn
SoSFShort min
SoSFShort max
SoSFShort step
SoSFBool on
SoSFFloat frequency
SoMFFloat duty
SoSFShort reset
SoSFTrigger syncIn
Outputs from class SoTimeCounter:
(SoSFShort) output
(SoSFTrigger) syncOut
Methods from class SoTimeCounter:
SoTimeCounter()
Methods from class SoEngine:
static SoType getClassTypeId()
virtual int getOutputs(SoEngineOutputList &list) const
SoEngineOutput * getOutput(const SbName &outputName) const
SbBool getOutputName(const SoEngineOutput *output, SbName &outputName) const
SoEngine * copy() const
static SoEngine * getByName(const SbName &name)
static int getByName(const SbName &name, SoEngineList &list)
Methods from class SoFieldContainer:
void setToDefaults()
SbBool hasDefaultValues() const
SbBool fieldsAreEqual(const SoFieldContainer *fc) const
void copyFieldValues(const SoFieldContainer *fc, SbBool copyConnections = FALSE)
SbBool set(const char *fieldDataString)
void get(SbString &fieldDataString)
virtual int getFields(SoFieldList &resultList) const
virtual SoField * getField(const SbName &fieldName) const
SbBool getFieldName(const SoField *field, SbName &fieldName) const
SbBool isNotifyEnabled() const
SbBool enableNotify(SbBool flag)
Methods from class SoBase:
void ref()
void unref() const
void unrefNoDelete() const
void touch()
virtual SoType getTypeId() const
SbBool isOfType(SoType type) const
virtual void setName(const SbName &name)
virtual SbName getName() const
DESCRIPTION¶
This engine is a counter that outputs numbers, starting at a minimum value, increasing by a step value, and ending with a number that does not exceed the maximum value. When the maximum number is reached, it starts counting from the beginning again.
If reset is greater than max, the counter is set to max. If reset is less than min, the counter is set to min. If reset is between step values, the counter is set to the lower step.
Each time a counting cycle is started, the syncOut output is triggered. This output can be used to synchronize some other event with the counting cycle. Other events can also synchronize the counter by triggering the syncIn input.
INPUTS¶
SoSFTime timeIn
Running time.
SoSFShort min
Minimum value for the counter.
SoSFShort max
Maximum value for the counter.
SoSFShort step
Counter step value.
SoSFBool on
Counter pauses if this is set to FALSE.
SoSFFloat frequency
Number of min-to-max cycles per second.
SoMFFloat duty
Duty cycle values.
SoSFShort reset
Reset the counter to the specified value.
SoSFTrigger syncIn
Restart at the beginning of the cycle.
OUTPUTS¶
(SoSFShort) output
Counts min-to-max, in step increments.
(SoSFTrigger) syncOut
Triggers at cycle start.
METHODS¶
SoTimeCounter()
Constructor
FILE FORMAT/DEFAULTS¶
TimeCounter {
min 0 max 1 step 1 on TRUE frequency 1 duty 1 timeIn <current time> syncIn reset 0
}