SoVRMLCoor...terpolator(3)

πŸ“¦ version 2.5.0, in fedora 43, fedora 44

πŸ’– NAME πŸ’–

SoVRMLCoordinateInterpolator β€” the class that interpolates 3D coordinates ✨

(Also known as SoVRMLCoor...terpolator(3), from the Library Functions Manual, because the title got squished and honestly bestie, same. 🫢)


✨ SYNOPSIS ✨

#include <Inventor/VRMLnodes/SoVRMLCoorinateInterpolator.h>

Inherits SoVRMLInterpolator. Yes she's a nepo baby but she EARNED it. πŸ‘‘

πŸŽ€ Public Member Functions πŸŽ€

  • virtual SoType getTypeId (void) const β€” gives you the type id, like a little name tag at the function party 🏷️
  • virtual const SoEngineOutputData * getOutputData (void) const β€” hands over the output data, the whole blueprint of what she puts out into the world πŸ’…

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

  • void evaluateWrapper (void) β€” the lil wrapper that kicks off evaluation
  • virtual int getOutputs (SoEngineOutputList &l) const β€” dumps all the outputs into your list
  • SoEngineOutput * getOutput (const SbName &outputname) const β€” grabs one output by name
  • SbBool getOutputName (const SoEngineOutput *output, SbName &outputname) const β€” reverse lookup, name for an output
  • SbBool isNotifying (void) const β€” is she in her notifying era? πŸ’Œ
  • virtual void notify (SoNotList *nl) β€” the notification moment
  • virtual void writeInstance (SoOutput *out) β€” writes the instance out, putting it on paper πŸ“

🌸 Public Member Functions inherited from SoNode 🌸

  • void setOverride (const SbBool state) β€” turn override mode on or off
  • SbBool isOverride (void) const β€” are we overriding rn?
  • void setNodeType (const NodeType type) β€” assign her a node type
  • NodeType getNodeType (void) const β€” read back that node type
  • virtual SoNode * copy (SbBool copyconnections=0) const β€” clone her, optionally with the connections too
  • virtual SbBool affectsState (void) const β€” does she change the state?
  • virtual void doAction (SoAction *action) β€” do the action, go girl
  • virtual void GLRender (SoGLRenderAction *action) β€” render her in GL
  • virtual void GLRenderBelowPath (SoGLRenderAction *action) β€” GL render, below-path flavor
  • virtual void GLRenderInPath (SoGLRenderAction *action) β€” GL render, in-path flavor
  • virtual void GLRenderOffPath (SoGLRenderAction *action) β€” GL render, off-path flavor
  • virtual void callback (SoCallbackAction *action) β€” run the callback action
  • virtual void getBoundingBox (SoGetBoundingBoxAction *action) β€” get the bounding box πŸ“¦
  • virtual void getMatrix (SoGetMatrixAction *action) β€” get the matrix, math girlie
  • virtual void handleEvent (SoHandleEventAction *action) β€” handle an event
  • virtual void pick (SoPickAction *action) β€” the picking action
  • virtual void rayPick (SoRayPickAction *action) β€” ray picking, the cooler cousin
  • virtual void search (SoSearchAction *action) β€” the search action
  • virtual void write (SoWriteAction *action) β€” write it out
  • virtual void audioRender (SoAudioRenderAction *action) β€” audio render, yes she does sound too 🎧
  • virtual void getPrimitiveCount (SoGetPrimitiveCountAction *action) β€” count the primitives
  • virtual void grabEventsSetup (void) β€” set up event grabbing
  • virtual void grabEventsCleanup (void) β€” clean up that event grabbing
  • virtual void startNotify (void) β€” begin the notify
  • uint32_t getNodeId (void) const β€” her node id number
  • virtual SoChildList * getChildren (void) const β€” get the children
  • virtual SoNode * addToCopyDict (void) const β€” add herself to the copy dict
  • virtual void copyContents (const SoFieldContainer *from, SbBool copyconnections) β€” copy the contents over
  • virtual SoFieldContainer * copyThroughConnection (void) const β€” copy through a connection

πŸ’œ Public Member Functions inherited from SoFieldContainer πŸ’œ

  • void setToDefaults (void) β€” reset everything to defaults, a fresh start ✨
  • SbBool hasDefaultValues (void) const β€” are all the values default?
  • SbBool fieldsAreEqual (const SoFieldContainer *container) const β€” do the fields match?
  • void copyFieldValues (const SoFieldContainer *container, SbBool copyconnections=0) β€” copy field values from another container
  • SbBool set (const char *const fielddata) β€” set from field data string
  • void get (SbString &fielddata) β€” get the field data as a string
  • virtual int getFields (SoFieldList &l) const β€” grab the fields into a list
  • virtual int getAllFields (SoFieldList &l) const β€” grab ALL the fields, no crumbs left
  • virtual SoField * getField (const SbName &name) const β€” get one field by name
  • virtual SoField * getEventIn (const SbName &name) const β€” get an event in by name
  • virtual SoField * getEventOut (const SbName &name) const β€” get an event out by name
  • SbBool getFieldName (const SoField *const field, SbName &name) const β€” name for a given field
  • SbBool enableNotify (const SbBool flag) β€” turn notifications on or off
  • SbBool isNotifyEnabled (void) const β€” are notifications enabled?
  • SbBool set (const char *fielddata, SoInput *in) β€” set from field data with an SoInput
  • void get (SbString &fielddata, SoOutput *out) β€” get the field data with an SoOutput
  • virtual SbBool validateNewFieldValue (SoField *field, void *newval) β€” sanity-check a new field value
  • virtual void addWriteReference (SoOutput *out, SbBool isfromfield=0) β€” add a write reference
  • SbBool getIsBuiltIn (void) const β€” is it built in?
  • void setUserData (void *userdata) const β€” stash some user data
  • void * getUserData (void) const β€” get that user data back

🧚 Public Member Functions inherited from SoBase 🧚

  • void ref (void) const β€” bump the ref count
  • void unref (void) const β€” drop the ref count
  • void unrefNoDelete (void) const β€” drop the ref count, no delete
  • int32_t getRefCount (void) const β€” what's the ref count rn?
  • void touch (void) β€” touch her, wake her up
  • SbBool isOfType (SoType type) const β€” is she this type?
  • virtual SbName getName (void) const β€” her name
  • virtual void setName (const SbName &newname) β€” give her a new name
  • void addAuditor (void *const auditor, const SoNotRec::Type type) β€” add an auditor
  • void removeAuditor (void *const auditor, const SoNotRec::Type type) β€” remove an auditor
  • const SoAuditorList & getAuditors (void) const β€” get the whole auditor list
  • SbBool shouldWrite (void) β€” should she be written out?
  • void assertAlive (void) const β€” assert that she's alive πŸ’€

⭐ Static Public Member Functions ⭐

  • static SoType getClassTypeId (void) β€” the class type id
  • static void * createInstance (void) β€” make an instance
  • static void initClass (void) β€” init the class

🌈 Static Public Member Functions inherited from SoVRMLInterpolator 🌈

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

🌈 Static Public Member Functions inherited from SoNodeEngine 🌈

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

🌈 Static Public Member Functions inherited from SoNode 🌈

  • static uint32_t getCompatibilityTypes (const SoType &nodetype)
  • static SoType getClassTypeId (void)
  • static SoNode * getByName (const SbName &name)
  • static int getByName (const SbName &name, SoNodeList &l)
  • static void initClass (void)
  • static void initClasses (void)
  • static uint32_t getNextNodeId (void)
  • static int getActionMethodIndex (const SoType type)
  • static void getBoundingBoxS (SoAction *action, SoNode *node)
  • static void GLRenderS (SoAction *action, SoNode *node)
  • static void callbackS (SoAction *action, SoNode *node)
  • static void getMatrixS (SoAction *action, SoNode *node)
  • static void handleEventS (SoAction *action, SoNode *node)
  • static void pickS (SoAction *action, SoNode *node)
  • static void rayPickS (SoAction *action, SoNode *node)
  • static void searchS (SoAction *action, SoNode *node)
  • static void writeS (SoAction *action, SoNode *node)
  • static void audioRenderS (SoAction *action, SoNode *node)
  • static void getPrimitiveCountS (SoAction *action, SoNode *node)

🌈 Static Public Member Functions inherited from SoFieldContainer 🌈

  • static void initClass (void)
  • static SoType getClassTypeId (void)
  • static void initCopyDict (void)
  • static void addCopy (const SoFieldContainer *orig, const SoFieldContainer *copy)
  • static SoFieldContainer * checkCopy (const SoFieldContainer *orig)
  • static SoFieldContainer * findCopy (const SoFieldContainer *orig, const SbBool copyconnections)
  • static void copyDone (void)

🌈 Static Public Member Functions inherited from SoBase 🌈

  • static void initClass (void)
  • static SoType getClassTypeId (void)
  • static void addName (SoBase *const base, const char *const name)
  • static void removeName (SoBase *const base, const char *const name)
  • static void incrementCurrentWriteCounter (void)
  • static void decrementCurrentWriteCounter (void)
  • static SoBase * getNamedBase (const SbName &name, SoType type)
  • static int getNamedBases (const SbName &name, SoBaseList &baselist, SoType type)
  • static SbBool read (SoInput *in, SoBase *&base, SoType expectedtype)
  • static void setInstancePrefix (const SbString &c)
  • static void setTraceRefs (SbBool trace)
  • static SbBool getTraceRefs (void)
  • static SbBool connectRoute (SoInput *in, const SbName &fromnodename, const SbName &fromfieldname, const SbName &tonodename, const SbName &tofieldname)
  • static SbBool readRoute (SoInput *in)

πŸ“ Public Attributes πŸ“

  • SoMFVec3f keyValue β€” the multi-field of 3D vecs she interpolates over
  • SoEngineOutput value_changed β€” the output that fires when the value changes πŸ”₯

πŸ“ Public Attributes inherited from SoVRMLInterpolator πŸ“

  • SoMFFloat key β€” the keyframe floats
  • SoSFFloat set_fraction β€” the single float you feed in to pick your spot between keyframes

πŸŽ€ Protected Member Functions πŸŽ€

  • virtual const SoFieldData * getFieldData (void) const β€” the field data, protected girlie

πŸŽ€ Protected Member Functions inherited from SoVRMLInterpolator πŸŽ€

  • int getKeyValueIndex (float &interp) β€” figures out which key value index you're on and hands back the interp factor

πŸŽ€ Protected Member Functions inherited from SoNodeEngine πŸŽ€

  • SoNodeEngine (void) β€” constructor
  • virtual ~SoNodeEngine () β€” destructor
  • virtual SbBool readInstance (SoInput *in, unsigned short flags) β€” read an instance in
  • virtual void inputChanged (SoField *which) β€” react to an input changing
  • void writeOutputTypes (SoOutput *out) β€” write out the output types

πŸŽ€ Protected Member Functions inherited from SoNode πŸŽ€

  • SoNode (void) β€” constructor
  • virtual ~SoNode () β€” destructor

πŸŽ€ Protected Member Functions inherited from SoFieldContainer πŸŽ€

  • SoFieldContainer (void) β€” constructor
  • ~SoFieldContainer () β€” destructor

πŸŽ€ Protected Member Functions inherited from SoBase πŸŽ€

  • SoBase (void) β€” constructor
  • virtual ~SoBase () β€” destructor
  • SbBool hasMultipleWriteRefs (void) const β€” got multiple write refs?
  • SbBool writeHeader (SoOutput *out, SbBool isgroup, SbBool isengine) const β€” write the header
  • void writeFooter (SoOutput *out) const β€” write the footer
  • virtual const char * getFileFormatName (void) const β€” the file format name

πŸ’… Static Protected Member Functions πŸ’…

  • static const SoFieldData ** getFieldDataPtr (void)
  • static const SoEngineOutputData ** getOutputDataPtr (void)

πŸ’… Static Protected Member Functions inherited from SoVRMLInterpolator πŸ’…

  • static const SoFieldData ** getFieldDataPtr (void)
  • static const SoEngineOutputData ** getOutputDataPtr (void)

πŸ’… Static Protected Member Functions inherited from SoNodeEngine πŸ’…

  • static const SoFieldData ** getFieldDataPtr (void)
  • static const SoEngineOutputData ** getOutputDataPtr (void)

πŸ’… Static Protected Member Functions inherited from SoNode πŸ’…

  • static const SoFieldData ** getFieldDataPtr (void)
  • static void setNextActionMethodIndex (int index)
  • static int getNextActionMethodIndex (void)
  • static void incNextActionMethodIndex (void)
  • static void setCompatibilityTypes (const SoType &nodetype, const uint32_t bitmask)

πŸ’… Static Protected Member Functions inherited from SoBase πŸ’…

  • static uint32_t getCurrentWriteCounter (void)
  • static void staticDataLock (void)
  • static void staticDataUnlock (void)

πŸ‘‘ Additional Inherited Members πŸ‘‘

Public Types inherited from SoNode

enum NodeType { INVENTOR = 0x0000, VRML1 = 0x0001, VRML2 = 0x0002,
    INVENTOR_1 = 0x0004, INVENTOR_2_0 = 0x0008, INVENTOR_2_1 = 0x0010,
    INVENTOR_2_5 = 0x0020, INVENTOR_2_6 = 0x0040, COIN_1_0 = 0x0080,
    COIN_2_0 = 0x0100, EXTENSION = 0x0200, COIN_2_2 = 0x0400, COIN_2_3 =
    0x0800, COIN_2_4 = 0x1000, INVENTOR_5_0 = 0x2000, COIN_2_5 = 0x4000
}

Protected Types inherited from SoBase

enum BaseFlags { IS_ENGINE = 0x01, IS_GROUP = 0x02 }

Protected Attributes inherited from SoNode

uint32_t uniqueId

Protected Attributes inherited from SoFieldContainer

SbBool isBuiltIn

Static Protected Attributes inherited from SoNode

  • static uint32_t nextUniqueId = 0
  • static int nextActionMethodIndex = 0

πŸ“– DETAILED DESCRIPTION πŸ“–

SoVRMLCoordinateInterpolator is the class that interpolates 3D coordinates. She's the glow-up between keyframes and bestie she is SLAYING at it πŸ’…βœ¨

The detailed class documentation is taken verbatim from the VRML97 standard (ISO/IEC 14772-1:1997). It is copyright The Web3D Consortium, and is used by permission of the Consortium:

CoordinateInterpolator {
  eventIn      SFFloat set_fraction        # (-inf, inf)
  exposedField MFFloat key           []    # (-inf, inf)
  exposedField MFVec3f keyValue      []    # (-inf, inf)
  eventOut     MFVec3f value_changed
}

So the vibe is: this node linearly interpolates among a list of MFVec3f values. πŸ¦‹

The number of coordinates in the keyValue field shall be an integer multiple of the number of keyframes in the key field. That integer multiple defines how many coordinates will be contained in the value_changed events.

Like, that's the RULE, no cap. πŸ”’

4.6.8, Interpolator nodes (http://www.web3d.org/x3d/specifications/vrml/ISO-IEC-14772-VRML97/part1/concepts.html#4.6.8), contains a more detailed discussion of interpolators. Go read it, it's giving ✨ required reading ✨ energy.


part 2 incoming, don't go anywhere bestie πŸŽ€

πŸ’– Member Function Documentation πŸ’–

Okay bestie, this is where we get into the actual functions, and honestly? It's giving "look at me, I'm the type system." Let's go. ✨

πŸ¦‹ SoType SoVRMLCoordinateInterpolator::getTypeId (void ) const [virtual] πŸ¦‹

Returns the type identification of an object derived from a class inheriting SoBase. This is used for run-time type checking and "downward" casting. No cap. It's literally how you safely ask "what even are you?" before you cast.

Usage example:

       void foo(SoNode * node)
       {
         if (node->getTypeId() == SoFile::getClassTypeId()) {
           SoFile * filenode = (SoFile *)node;  // safe downward cast, knows the type
         }
         else if (node->getTypeId().isOfType(SoGroup::getClassTypeId())) {
           SoGroup * group = (SoGroup *)node;  // safe downward cast, knows the type
         }
       }

For application programmers wanting to extend the library with new nodes, engines, nodekits, draggers or others: this method needs to be overridden in all subclasses. This is typically done as part of setting up the full type system for extension classes, which is usually accomplished by using the pre-defined macros available through for instance Inventor/nodes/SoSubNode.h (SO_NODE_INIT_CLASS and SO_NODE_CONSTRUCTOR for node classes), Inventor/engines/SoSubEngine.h (for engine classes) and so on.

For more information on writing Coin extensions, see the class documentation of the toplevel superclasses for the various class groups.

Reimplemented from SoVRMLInterpolator.


πŸŽ€ const SoFieldData * SoVRMLCoordinateInterpolator::getFieldData (void ) const [protected], [virtual] πŸŽ€

Returns a pointer to the class-wide field data storage object for this instance. If no fields are present, returns NULL.

Reimplemented from SoVRMLInterpolator.


🌈 const SoEngineOutputData * SoVRMLCoordinateInterpolator::getOutputData (void ) const [virtual] 🌈

This API member is considered internal to the library, as it is not likely to be of interest to the application programmer.

Reimplemented from SoVRMLInterpolator.


πŸ‘‘ Author πŸ‘‘

Generated automatically by Doxygen for Coin from the source code.


And that's a wrap on SoVRMLCoor...terpolator(3)! Footer tea: source/version is Coin, Version 2.5.0, and the page is SoVRMLCoor...terpolator(3). The footer didn't give a date, so no date to report, bestie β€” it's just timeless. πŸ’–βœ¨

πŸ“¦ where this page comes from