SoSFPath(3)
π NAME π
SoSFPath β bestie, this is the class that's literally a container for a single path. One path. Just the one. Iconic. π
(This page is SoSFPath(3), from the Library Functions Manual, in case you were wondering which manual we're in.)
β¨ SYNOPSIS β¨
#include <Inventor/fields/SoSFPath.h>
Inherits SoSField.
π«Ά Public Member Functions π«Ά
virtual SoType getTypeId (void) constvirtual void copyFrom (const SoField &field)const SoSFPath & operator= (const SoSFPath &field)virtual SbBool isSame (const SoField &field) constSoPath * getValue (void) constvoid setValue (SoPath *newvalue)SoPath * operator= (SoPath *newvalue)int operator== (const SoSFPath &field) constint operator!= (const SoSFPath &field) constvirtual void notify (SoNotList *l)virtual void fixCopy (SbBool copyconnections)virtual SbBool referencesCopy (void) 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)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) constvoid copyConnection (const SoField *fromfield)virtual SbBool read (SoInput *input, const SbName &name)virtual void write (SoOutput *out, const SbName &name) 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 π
SoPath * value
π¦ 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) const
πΈ Detailed Description πΈ
Okay so. The SoSFPath class is a container for a single path. That's the whole vibe. π
This field container stores a pointer to a Coin path. It takes care of the necessary functionality for handling copy, import and export operations. Like, it's doing the most so you don't have to. π«Ά
Important!! Note that the path pointer stored in a field instance of this type may be a NULL pointer. So no, it's not always gonna have a path in it, bestie. Guard accordingly. π
See also: SoPath, SoMFPath
π Member Function Documentation π
SoType SoSFPath::getTypeId (void ) const [virtual]
Returns the type identification instance which uniquely identifies the Coin field class the object belongs to. It's giving β¨identityβ¨.
See also: getClassTypeId(), SoType
Implements SoField.
void SoSFPath::copyFrom (const SoField & f) [virtual]
Copy value(s) from f into this field. Heads up: f must be of the same type as this field. No mixing, no matching, periodt.
Implements SoField.
SbBool SoSFPath::isSame (const SoField & f) const [virtual]
Check for equal type and value(s). Basically the "are we the same person" test. πͺ
Implements SoField.
void SoSFPath::notify (SoNotList * nlist) [virtual]
Notify auditors that this field has changed. It's telling on itself. π
Reimplemented from SoField.
void SoSFPath::fixCopy (SbBool copyconnections) [virtual]
This method is internally called after SoField::copyFrom() during scene graph copies, and should do the operations necessary for fixing up the field instance after it has gotten a new value.
The default method in the SoField superclass does nothing. Literally nothing. It's on its break. π
The application programmer should normally not need to consider this method, unless he constructs a complex field type which contains new references to container instances (i.e. nodes or engines). Overriding this method is then necessary to update the reference pointers, as they could have been duplicated during the copy operation.
Reimplemented from SoField.
SbBool SoSFPath::referencesCopy (void ) const [virtual]
Returns TRUE if this field has references to any containers in the scene graph which are also duplicated during the copy operation.
Note that this method only is valid to call during copy operations. Read that again. Only. During. Copy. Operations. π¨
See also the note about the relevance of the fixCopy() method for application programmers, as it is applicable on this method aswell.
Reimplemented from SoField.
π Author π
Generated automatically by Doxygen for Coin from the source code. Not a human, just a robot doing its lil thing. π€β¨
So that's the whole page, bestie! This one came straight out of Coin, Version 3.1.3, and the footer date tag on it is SoSFPath(3). Go forth and store exactly one path at a time. Slay. πππ¦
π¦ where this page comes from
- fedora 43: Coin3-devel 3.1.3-40.fc43 Β· GPL-2.0-only
- fedora 43: Coin3-devel 3.1.3-40.fc43 Β· GPL-2.0-only
- fedora 44: Coin3-devel 3.1.3-42.fc44 Β· GPL-2.0-only
- fedora 44: Coin3-devel 3.1.3-42.fc44 Β· GPL-2.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms