SOSFTIME(3iv)

πŸ’– SoSFTime β€” the field that holds an SbTime πŸ’–

okay bestie, welcome to SoSFTime, from the 3IV manual, no cap. this is a whole field that contains an SbTime. yes she's that girl. ✨


🌸 INHERITS FROM 🌸

SoField > SoSField > SoSFTime

she comes from a long line of icons, we love a legacy. πŸ‘‘


✨ SYNOPSIS ✨

#include <Inventor/fields/SoSFTime.h>

πŸŽ€ Methods from class SoSFTime:

static SoType       getClassTypeId()
virtual void        getTypeId() const
const SbTime &      getValue() const
const SbTime &      operator =(const SbTime & newValue)
void                setValue(const SbTime & newValue)
int                 operator ==(const SoSFTime &f) const
int                 operator !=(const SoSFTime &f) const

πŸŽ€ Methods from class SoField:

void                setIgnored(SbBool ignore)
SbBool              isIgnored() const
SbBool              isDefault() const
virtual SbBool      isOfType(SoType type) const
SbBool              set(const char *valueString)
void                get(SbString &valueString)
void                touch()
SbBool              connectFrom(SoField *fromField)
SbBool              connectFrom(SoEngineOutput *fromEngine)
void                disconnect()
SbBool              isConnected() const
SbBool              isConnectedFromField() const
SbBool              getConnectedField(SoField *&writingField) const
SbBool              isConnectedFromEngine() const
SbBool              getConnectedEngine(SoEngineOutput *&engineOutput)
                         const
void                enableConnection(SbBool flag)
SbBool              isConnectionEnabled() const
int                 getForwardConnections(SoFieldList &list) const
SoFieldContainer *  getContainer() const

πŸ¦‹ DESCRIPTION πŸ¦‹

so. listen. 🫢

this is a multiple-value field that contains any number of time values. she's flexible, she's generous, she's giving range.

SoSFTimes (plural, the whole squad) get written to file as a double-precision floating point value representing the length of time in seconds. and if you're dealing with absolute times?? those are measured relative to 00:00:00 GMT, January 1, 1970. the epoch. the origin story. iykyk. ⭐


πŸ’… METHODS πŸ’…

  • static SoType getClassTypeId()
  • virtual void getTypeId() const

Returns the type for this class or a particular object of this class. basically "who is she" but for types. πŸ’

  • const SbTime & getValue() const

Returns this field's value. the main character reveal. πŸ‘‘

  • const SbTime & operator =(const SbTime & newValue)
  • void setValue(const SbTime & newValue)

Sets this field to newValue. glow-up complete, periodt. ✨

  • int operator ==(const SoSFTime &f) const
  • int operator !=(const SoSFTime &f) const

Returns TRUE if f is of the same type and has the same value as this field. not just same vibe β€” same type, same value, fr fr. 😀


🌈 SEE ALSO 🌈

SbTime, SoField, SoSField, SoMFTime β€” go read these too, they're all in the group chat. πŸ’œ


and that's the whole page bestie, SoSFTime(3IV) ate and left no crumbs. this was page SoSFTime(3IV)() from the 3IV manual, mwah, go forth and time things. πŸŽ€πŸ’–