SOSFUSHORT(3iv)

✨ NAME ✨

SoSFUShort β€” a field that holds an unsigned short integer πŸ’– (yes bestie, one single little number, living its best life)

This one's from the 3IV manual, and it's giving "tiny field, big feelings." πŸŽ€


🌸 INHERITS FROM 🌸

SoField > SoSField > SoSFUShort

The whole ancestry chain, no skips: your girl descends from SoField, which descends from... okay no, it's the other way around, SoSFUShort is the baby at the bottom of the family tree. 🌳


πŸ¦‹ SYNOPSIS πŸ¦‹

#include <Inventor/fields/SoSFUShort.h>

Methods from class SoSFUShort:

static SoType         getClassTypeId()
virtual void          getTypeId() const
short unsigned short  getValue() const
short unsigned short  operator =(short unsigned short newValue)
void                  setValue(short unsigned short newValue)
int                   operator ==(const SoSFUShort &f) const
int                   operator !=(const SoSFUShort &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 πŸ’…

Okay so. A SoSFUShort is a single-value field containing a short (16-bit) integer. That's it. That's the whole vibe. One number, no drama. πŸ‘‘

And when these little cuties get written to file? They can show up in decimal, in hexadecimal (which starts with '0x'), or in octal (which starts with '0'). Three aesthetics, one field. The way that it's multilingual fr fr. 🌈


πŸ”₯ METHODS πŸ”₯

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

Returns the type for this class or a particular object of this class. Type-checking but make it cute. ✨

  • short unsigned short getValue() const

Returns this field's value. Just hands you the number. Simple. Iconic. 🫢

  • short unsigned short operator =(short unsigned short newValue)
  • void setValue(short unsigned short newValue)

Sets this field to newValue. Two ways in, same destination bestie. πŸ’–

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

Returns TRUE if f is of the same type and has the same value as this field. Same type, same value, same energy β€” otherwise it's a no. πŸ’€


πŸ‘‘ SEE ALSO πŸ‘‘

SoField, SoSField, SoMFUShort

Go read those next, they're all part of the same friend group. πŸ¦‹


That's the whole page, bestie β€” and it signs off exactly the way the original footer did, as SoSFUShort(3IV)() (that's the manual name + section + the version slot, all cozy together, no date attached). πŸ’œ ✨