SOSFUINT32(3iv)

πŸ’– NAME πŸ’–

SoSFUInt32 β€” a field containing an unsigned int32_t integer 🫢 (ngl the original says "unsinged" and we're keeping that energy, it's giving iconic typo πŸ’€)


πŸ¦‹ INHERITS FROM πŸ¦‹

SoField > SoSField > SoSFUInt32 β€” bestie it's a whole family tree and our girl is the baby of the lineage πŸ’…


✨ SYNOPSIS ✨

#include <Inventor/fields/SoSFUInt32.h>

   Methods from class SoSFUInt32:

static SoType       getClassTypeId()
virtual void        getTypeId() const
int32_t uint32_t    getValue() const
int32_t uint32_t    operator =(int32_t uint32_t newValue)
void                setValue(int32_t uint32_t newValue)
int                 operator ==(const SoSFUInt32 &f) const
int                 operator !=(const SoSFUInt32 &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 a single-value field containg an unsigned 32-bit integer (yes the manpage says "containg", we love her for it πŸŽ€), and it represents a number from 0 to 4,294,967,295. That's the whole range, no negatives allowed, she said positivity only πŸ’–βœ¨

And when it gets written to file? SoSFUInt32s are written as a single uint32_t (32-bit) integer in decimal, hexadecimal or octal format. Slay, versatile queen πŸ‘‘


πŸ’… METHODS πŸ’…

  • static SoType getClassTypeId() and virtual void getTypeId() const β€” returns the type for this class, or for a particular object of this class. iykyk 🧚
  • int32_t uint32_t getValue() const β€” returns this field's value. That's it. That's the whole thing bestie πŸ“
  • int32_t uint32_t operator =(int32_t uint32_t newValue) and void setValue(int32_t uint32_t newValue) β€” sets this field to newValue. Obsessed with a clean setter fr fr πŸ”₯
  • int operator ==(const SoSFUInt32 &f) const and int operator !=(const SoSFUInt32 &f) const β€” returns TRUE if f is of the same type and has the same value as this field. Both conditions, no shortcuts, periodt πŸ‘‘

πŸ‘‘ SEE ALSO πŸ‘‘

SoField, SoSField, SoMFUInt32 β€” go read these too, they're the extended universe 🌈⭐


And that's the whole page, bestie!! πŸ’œ This was SoSFUInt32(3IV)() β€” that's the version/source-and-date situation right there at the bottom, mwah πŸŽ€πŸ’–βœ¨