SoSFShort(3)
π 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) constvirtual void copyFrom (const SoField &field)const SoSFShort & operator= (const SoSFShort &field)virtual SbBool isSame (const SoField &field) constshort getValue (void) constvoid setValue (short newvalue)short operator= (short newvalue)int operator== (const SoSFShort &field) constint 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) constvoid setDefault (SbBool defaultVal)SbBool isDefault (void) constSbBool isOfType (const SoType type) constvoid enableConnection (SbBool flag)SbBool isConnectionEnabled (void) constSbBool connectFrom (SoEngineOutput *master, SbBool notnotify=FALSE, SbBool append=FALSE)SbBool appendConnection (SoEngineOutput *master, SbBool notnotify=FALSE)void disconnect (SoEngineOutput *engineoutput)SbBool isConnectedFromEngine (void) constSbBool getConnectedEngine (SoEngineOutput *&master) constSbBool connectFrom (SoField *master, SbBool notnotify=FALSE, SbBool append=FALSE)SbBool appendConnection (SoField *master, SbBool notnotify=FALSE)void disconnect (SoField *field)SbBool isConnectedFromField (void) constSbBool getConnectedField (SoField *&master) constint getNumConnections (void) constint getForwardConnections (SoFieldList &slavelist) constint getConnections (SoFieldList &masterlist) constvoid disconnect (void)SbBool isConnected (void) constvoid setContainer (SoFieldContainer *cont)SoFieldContainer * getContainer (void) constSbBool set (const char *valuestring)void get (SbString &valuestring)SbBool shouldWrite (void) constvirtual void touch (void)virtual void startNotify (void)virtual void notify (SoNotList *nlist)SbBool enableNotify (SbBool on)SbBool isNotifyEnabled (void) constvoid addAuditor (void *f, SoNotRec::Type type)void removeAuditor (void *f, SoNotRec::Type type)int operator== (const SoField &f) constint operator!= (const SoField &f) constvirtual void connectionStatusChanged (int numconnections)SbBool isReadOnly (void) constvirtual void fixCopy (SbBool copyconnections)virtual SbBool referencesCopy (void) constvoid copyConnection (const SoField *fromfield)virtual SbBool read (SoInput *input, const SbName &name)virtual void write (SoOutput *out, const SbName &name) constvirtual void countWriteRefs (SoOutput *out) constvoid setFieldType (int type)int getFieldType (void) constSbBool getDirty (void) constvoid 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) constvirtual SbBool readConnection (SoInput *in)virtual void writeConnection (SoOutput *out) constSbBool isDestructing (void) constvirtual 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
- fedora 43: Coin4-devel 4.0.10-1.fc43 Β· BSD-3-Clause AND GPL-3.0-or-later
- fedora 43: Coin4-devel 4.0.10-1.fc43 Β· BSD-3-Clause AND GPL-3.0-or-later
- fedora 44: Coin4-devel 4.0.10-1.fc44 Β· BSD-3-Clause AND GPL-3.0-or-later
- fedora 44: Coin4-devel 4.0.10-1.fc44 Β· BSD-3-Clause AND GPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms