SoSFShort(3)

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

πŸ’– SoSFShort πŸ’–

okay bestie, sit down, hydrate, because today we're talking about SoSFShort β€” a whole entire class from Coin, and yes it's a (3) manual page, and yes it is lowkey iconic. It lives in the Coin library and its whole job? Holding one short integer value. That's it. That's the girl. Small, mighty, single-value, no notes. ✨


🌸 NAME 🌸

SoSFShort β€” the class that is literally just a container for a short integer value. One value. Singular. She's not a list, she's not a range, she's a moment. πŸ’…


πŸŽ€ SYNOPSIS πŸŽ€

#include <Inventor/fields/SoSFShort.h>

Inherits SoSField.

✨ Public Member Functions ✨

  • virtual SoType getTypeId (void) const
  • virtual void copyFrom (const SoField &field)
  • const SoSFShort & operator= (const SoSFShort &field)
  • virtual SbBool isSame (const SoField &field) const
  • short getValue (void) const
  • void setValue (short newvalue)
  • short operator= (short newvalue)
  • int operator== (const SoSFShort &field) const
  • int operator!= (const SoSFShort &field) const

πŸ¦‹ Public Member Functions inherited from SoSField πŸ¦‹

  • virtual ~SoSField ()

πŸ¦‹ Public Member Functions inherited from SoField πŸ¦‹

  • 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 ⭐

  • 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 πŸ’œ

  • short value β€” yes, the actual value. Right there. Protected. Respect her privacy. πŸ™ˆ

🫢 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 🌈

The SoSFShort class is a container for a short integer value. fr fr, that's the whole personality.

This field is used where nodes, engines or other field containers need to store a single short integer value. Just one. If you're out here wanting a bunch of shorts, bestie, you are in the wrong place, and we both know it.

See also

  • SoMFShort β€” the multi-value sibling, for when one short is simply not enough. πŸ‘‘

πŸ”₯ Member Function Documentation πŸ”₯

void * SoSFShort::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… not for you, unless you're doing Very Serious Library Things. 🫣

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

SoType SoSFShort::getClassTypeId (void ) [static]

This static method returns the SoType object associated with objects of this class. Type identity check, but make it static. ✨

SoType SoSFShort::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. iykyk.

Implements SoField.

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

Copy value(s) from f into this field. f must be of the same type as this field β€” no mixing, no matching, no exceptions, bestie. 🚫

Implements SoField.

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

Check for equal type and value(s). The vibe check, but for fields. βœ…

Implements SoField.

void SoSFShort::initClass (void ) [static]

Internal method called upon initialization of the library (from SoDB::init()) to set up the type system. She gets everything ready behind the scenes, main character energy but make it infrastructure. πŸ’…


πŸ‘‘ Author πŸ‘‘

Generated automatically by Doxygen for Coin from the source code. So technically no human wrote this, which is honestly so real of Doxygen. 😭


okay and the cute little sign-off: this is Version 4.0.10, dated Thu Jun 25 2026 00:00:00, and it's the SoSFShort(3) page from Coin. that's the whole thing, bestie β€” one short, so many feels. slay, hydrate, go set a value. πŸ’–βœ¨πŸŽ€πŸ¦‹πŸŒΈπŸ’…

πŸ“¦ where this page comes from