SoSFInt32(3)

πŸ“¦
version 4.0.10 Β· 4 versions
, in fedora 43, fedora 44

πŸ’– NAME πŸ’–

okay so bestie, meet SoSFInt32 β€” she's the class that's literally just a lil container holding one single 32-bit integer value. that's it. that's her whole job. and she ate. πŸ‘‘


✨ SYNOPSIS ✨

first things first, you gotta let her in the door:

#include <Inventor/fields/SoSFInt32.h>

and yeah, she Inherits SoSField β€” the family tree is real 🫢


🌸 Public Member Functions 🌸

the main character's own moves:

  • virtual SoType getTypeId (void) const β€” tells you what type she is at runtime, bestie
  • virtual void copyFrom (const SoField &field) β€” copies the value(s) over from another field
  • const SoSFInt32 & operator= (const SoSFInt32 &field) β€” assign a whole other SoSFInt32 into this one
  • virtual SbBool isSame (const SoField &field) const β€” are y'all the same type and the same value? vibe check πŸ”
  • int32_t getValue (void) const β€” hand over the goods, gimme that int32
  • void setValue (int32_t newvalue) β€” set the number, periodt
  • int32_t operator= (int32_t newvalue) β€” assign a raw int32_t straight in, no drama
  • int operator== (const SoSFInt32 &field) const β€” equal or not, fr fr
  • int operator!= (const SoSFInt32 &field) const β€” not equal or not, also fr fr

πŸ¦‹ Public Member Functions inherited from SoSField

  • virtual ~SoSField () β€” the destructor, she says bye πŸ‘‹

πŸ¦‹ Public Member Functions inherited from SoField

the whole inherited girl squad, no cap, every single one:

  • virtual ~SoField ()
  • void setIgnored (SbBool ignore)
  • SbBool isIgnored (void) const
  • void setDefault (SbBool defaultVal)
  • SbBool isDefault (void) const
  • SbBool isOfType (const SoType type) const
  • void enableConnection (SbBool flag)
  • SbBool isConnectionEnabled (void) const
  • SbBool connectFrom (SoEngineOutput *master, SbBool notnotify=FALSE, SbBool append=FALSE)
  • SbBool appendConnection (SoEngineOutput *master, SbBool notnotify=FALSE)
  • void disconnect (SoEngineOutput *engineoutput)
  • SbBool isConnectedFromEngine (void) const
  • SbBool getConnectedEngine (SoEngineOutput *&master) const
  • SbBool connectFrom (SoField *master, SbBool notnotify=FALSE, SbBool append=FALSE)
  • SbBool appendConnection (SoField *master, SbBool notnotify=FALSE)
  • void disconnect (SoField *field)
  • SbBool isConnectedFromField (void) const
  • SbBool getConnectedField (SoField *&master) const
  • int getNumConnections (void) const
  • int getForwardConnections (SoFieldList &slavelist) const
  • int getConnections (SoFieldList &masterlist) const
  • void disconnect (void)
  • SbBool isConnected (void) const
  • void setContainer (SoFieldContainer *cont)
  • SoFieldContainer * getContainer (void) const
  • SbBool set (const char *valuestring)
  • void get (SbString &valuestring)
  • SbBool shouldWrite (void) const
  • virtual void touch (void)
  • virtual void startNotify (void)
  • virtual void notify (SoNotList *nlist)
  • SbBool enableNotify (SbBool on)
  • SbBool isNotifyEnabled (void) const
  • void addAuditor (void *f, SoNotRec::Type type)
  • void removeAuditor (void *f, SoNotRec::Type type)
  • int operator== (const SoField &f) const
  • int operator!= (const SoField &f) const
  • virtual void connectionStatusChanged (int numconnections)
  • SbBool isReadOnly (void) const
  • virtual void fixCopy (SbBool copyconnections)
  • virtual SbBool referencesCopy (void) const
  • void copyConnection (const SoField *fromfield)
  • virtual SbBool read (SoInput *input, const SbName &name)
  • virtual void write (SoOutput *out, const SbName &name) const
  • virtual void countWriteRefs (SoOutput *out) const
  • void setFieldType (int type)
  • int getFieldType (void) const
  • SbBool getDirty (void) const
  • void setDirty (SbBool dirty)
  • void evaluate (void) const

⭐ Static Public Member Functions ⭐

the ones you call on the class herself, not on an object:

  • static void * createInstance (void)
  • static SoType getClassTypeId (void)
  • static void initClass (void)

πŸ¦‹ Static Public Member Functions inherited from SoSField

  • static void initClass (void)
  • static SoType getClassTypeId (void)
  • static void atexit_cleanup (void)

πŸ¦‹ Static Public Member Functions inherited from SoField

  • static void initClass (void)
  • static void initClasses (void)
  • static void cleanupClass (void)
  • static SoType getClassTypeId (void)

πŸŽ€ Protected Attributes πŸŽ€

  • int32_t value β€” yeah, it's literally just the number sitting there, protected, living her life

🌈 Additional Inherited Members 🌈

🧚 Public Types inherited from SoField

enum FieldType { NORMAL_FIELD = 0, EVENTIN_FIELD, EVENTOUT_FIELD,
    EXPOSED_FIELD }

🧚 Protected Member Functions inherited from SoSField

  • SoSField (void)

🧚 Protected Member Functions inherited from SoField

  • SoField (void)
  • void valueChanged (SbBool resetdefault=TRUE)
  • virtual void evaluateConnection (void) const
  • virtual SbBool readConnection (SoInput *in)
  • virtual void writeConnection (SoOutput *out) const
  • SbBool isDestructing (void) const
  • virtual SoNotRec createNotRec (SoBase *cont)

🌸 Detailed Description 🌸

okay so, the SoSFInt32 class is a container for a 32-bit integer value. that's the whole vibe. πŸ’…

this field is used where nodes, engines or other field containers need to store a single 32-bit integer value. one number. one field. iconic.

See also πŸ‘€

  • SoMFInt32

πŸ’œ Member Function Documentation πŸ’œ

void * SoSFInt32::createInstance (void ) [static]

this API member is considered internal to the library, as it is not likely to be of interest to the application programmer. so like… you can look but don't touch, bestie πŸ™ˆ

creates a new instance of the class type corresponding to the SoType object.

SoType SoSFInt32::getClassTypeId (void ) [static]

this static method returns the SoType object associated with objects of this class. it's giving "who am i, really" πŸ”₯

SoType SoSFInt32::getTypeId (void ) const [virtual]

returns the type identification of an object derived from a class inheriting SoField. this is used for runtime type checking and "downward" casting. she knows exactly who she is, no identity crisis.

Implements SoField.

void SoSFInt32::copyFrom (const SoField & f) [virtual]

copy value(s) from f into this field. f must be of the same type as this field. like, don't try to copy a random field in here, that's not gonna slay, it's gonna crash.

Implements SoField.

SbBool SoSFInt32::isSame (const SoField & f) const [virtual]

check for equal type and value(s). twin check. πŸ‘―

Implements SoField.

void SoSFInt32::initClass (void ) [static]

internal method called upon initialization of the library (from SoDB::init()) to set up the type system. she's setting up the whole group chat, basically.


πŸ‘‘ Author πŸ‘‘

generated automatically by Doxygen for Coin from the source code. shoutout to the robots doing the paperwork 🫢


and that's a wrap, bestie πŸ’– this page is from Coin version 4.0.10, dated Thu Jun 25 2026 00:00:00 β€” yes the timestamp is sending me too 😭, and it's filed under manual section SoSFInt32(3). go forth and store exactly one 32-bit integer. slay. βœ¨πŸŽ€πŸ¦‹

πŸ“¦ where this page comes from