SOSFINT32(3iv)

πŸ’– SoSFInt32 πŸ’–

okay bestie, sit DOWN, because we're doing the SoSFInt32(3IV) page and it's genuinely iconic πŸŽ€ (yes, the manual name has that whole (3IV) situation going on, we love her for it).


🌸 NAME 🌸

SoSFInt32 β€” a field containing a int32_t integer ✨


πŸ¦‹ INHERITS FROM πŸ¦‹

SoField > SoSField > SoSFInt32

it's giving... single-field lineage. main character energy, fr fr. πŸ‘‘


✨ SYNOPSIS ✨

#include <Inventor/fields/SoSFInt32.h>

   Methods from class SoSFInt32:

static SoType       getClassTypeId()
virtual void        getTypeId() const
int32_t             getValue() const
int32_t             operator =(int32_t newValue)
void                setValue(int32_t newValue)
int                 operator ==(const SoSFInt32 &f) const
int                 operator !=(const SoSFInt32 &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

like, that's the whole squad. the SoSFInt32 girlies up top, and all the inherited SoField behavior down below. iykyk 🫢


🌈 DESCRIPTION 🌈

A field containing a single long (32-bit) integer. that's it, that's the vibe. πŸ’…

so here's the tea: SoSFInt32s get written to file as an integer, and they can show up in decimal, hexadecimal (which starts with '0x'), or octal (which starts with '0') format. no cap, all three are valid and she will read them. ✨


πŸŽ€ METHODS πŸŽ€

  • static SoType getClassTypeId()
  • virtual void getTypeId() const β€” Returns the type for this class or a particular object of this class. πŸ¦‹
  • int32_t getValue() const β€” Returns this field's value. literally just hands you the number. πŸ’–
  • int32_t operator =(int32_t newValue)
  • void setValue(int32_t newValue) β€” Sets this field to newValue. two ways to do the same slay. πŸ”₯
  • int operator ==(const SoSFInt32 &f) const
  • int operator !=(const SoSFInt32 &f) const β€” Returns TRUE if f is of the same type and has the same value as this field. both things gotta match, bestie, no shortcuts. πŸ™ˆ

πŸ‘‘ SEE ALSO πŸ‘‘

SoField, SoSField, SoMFInt32, SoSFUInt32

(the multi-value cousin SoMFInt32 and the unsigned sibling SoSFUInt32 said hi πŸ’œ)


ngl this page is short but she ate. go forth and store your 32-bit integers, bestie. 🌸

that's the whole thing!! πŸ“ this was SoSFInt32(3IV) β€” the manual page for section 3IV, footer and all β€” mwah, love u, bye πŸ’–πŸ§šβ­