SOVRMLNORMALINTERPOLATOR(3coin3)

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

πŸ’– SoVRMLNormalInterpolator (3) β€” Library Functions Manual πŸ’–

okay bestie, buckle UP, because we're about to get into the Coin3D lore. This page lives in the Library Functions Manual, and it's giving "niche but iconic." ✨


🌸 NAME 🌸

SoVRMLNormalInterpolator β€” the class that interpolates normals. yes, normals. like surface normals. not people. slay. πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

#include <Inventor/VRMLnodes/SoVRMLNormalInterpolator.h>

Inherits SoVRMLInterpolator. it's a whole family tree, iykyk 🫢

πŸ‘‘ Public Member Functions

  • virtual SoType getTypeId (void) const β€” hands you the type id, and it's virtual so it knows exactly who it is. main character energy fr.
  • virtual const SoEngineOutputData * getOutputData (void) const β€” the receipts for every output this engine has.
  • SoVRMLNormalInterpolator (void) β€” the constructor. the birth. the origin story. 🌱

🌈 Public Member Functions inherited from SoNodeEngine

  • void evaluateWrapper (void) β€” wraps the evaluate call so the engine can do its thing.
  • virtual int getOutputs (SoEngineOutputList &l) const β€” dumps all the outputs into a list for you.
  • SoEngineOutput * getOutput (const SbName &outputname) const β€” grab one output by name.
  • SbBool getOutputName (const SoEngineOutput *output, SbName &outputname) const β€” reverse lookup: output ➑️ name.
  • SbBool isNotifying (void) const β€” are we notifying rn or nah?
  • virtual void notify (SoNotList *nl) β€” sends out the notification, no cap.
  • virtual void writeInstance (SoOutput *out) β€” writes this instance out to the output stream.

🌟 Public Member Functions inherited from SoNode

  • void setOverride (const SbBool state) β€” flips the override flag.
  • SbBool isOverride (void) const β€” checks the override flag.
  • void setNodeType (const NodeType type) β€” sets the node type.
  • NodeType getNodeType (void) const β€” gets the node type.
  • virtual SoNode * copy (SbBool copyconnections=FALSE) const β€” makes a copy. connections optional, default is FALSE.
  • virtual SbBool affectsState (void) const β€” does this node mess with the state? lowkey important.
  • virtual void doAction (SoAction *action) β€” the generic "do the action" entry point.
  • virtual void GLRender (SoGLRenderAction *action) β€” renders it 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) β€” runs a callback action.
  • virtual void getBoundingBox (SoGetBoundingBoxAction *action) β€” computes the bounding box.
  • virtual void getMatrix (SoGetMatrixAction *action) β€” computes the matrix.
  • virtual void handleEvent (SoHandleEventAction *action) β€” handles events.
  • virtual void pick (SoPickAction *action) β€” picking, but the basic kind.
  • virtual void rayPick (SoRayPickAction *action) β€” ray picking, the fancy kind.
  • virtual void search (SoSearchAction *action) β€” search action, go find stuff.
  • virtual void write (SoWriteAction *action) β€” writes the node out.
  • virtual void audioRender (SoAudioRenderAction *action) β€” yes it also does audio rendering. versatile πŸ’…
  • virtual void getPrimitiveCount (SoGetPrimitiveCountAction *action) β€” counts the primitives.
  • virtual void grabEventsSetup (void) β€” sets up event grabbing.
  • virtual void grabEventsCleanup (void) β€” cleans up event grabbing.
  • virtual void startNotify (void) β€” kicks off notification.
  • uint32_t getNodeId (void) const β€” returns the node's id.
  • virtual SoChildList * getChildren (void) const β€” returns the child list.
  • virtual SoNode * addToCopyDict (void) const β€” adds itself to the copy dictionary.
  • virtual void copyContents (const SoFieldContainer *from, SbBool copyconnections) β€” copies the contents over from another container.
  • virtual SoFieldContainer * copyThroughConnection (void) const β€” copies through a connection.

πŸŽ€ Public Member Functions inherited from SoFieldContainer

  • void setToDefaults (void) β€” resets everything to defaults.
  • SbBool hasDefaultValues (void) const β€” are all the values still default? checking bestie.
  • SbBool fieldsAreEqual (const SoFieldContainer *container) const β€” compares fields with another container.
  • void copyFieldValues (const SoFieldContainer *container, SbBool copyconnections=FALSE) β€” copies field values over, connections optional, default FALSE.
  • SbBool set (const char *const fielddata) β€” sets from a field data string.
  • void get (SbString &fielddata) β€” gets the field data as a string.
  • virtual int getFields (SoFieldList &l) const β€” fills the list with fields.
  • virtual int getAllFields (SoFieldList &l) const β€” fills the list with ALL the fields.
  • virtual SoField * getField (const SbName &name) const β€” grabs a field by name.
  • virtual SoField * getEventIn (const SbName &name) const β€” grabs an event-in by name.
  • virtual SoField * getEventOut (const SbName &name) const β€” grabs an event-out by name.
  • SbBool getFieldName (const SoField *const field, SbName &name) const β€” reverse lookup: field ➑️ name.
  • SbBool enableNotify (const SbBool flag) β€” turns notification on or off.
  • SbBool isNotifyEnabled (void) const β€” is notification enabled?
  • SbBool set (const char *fielddata, SoInput *input) β€” sets from field data with an SoInput.
  • void get (SbString &fielddata, SoOutput *out) β€” gets field data using an SoOutput.
  • virtual SbBool validateNewFieldValue (SoField *field, void *newval) β€” validates a new field value. the vibe check 🫣
  • virtual void addWriteReference (SoOutput *out, SbBool isfromfield=FALSE) β€” adds a write reference, isfromfield defaults to FALSE.
  • SbBool getIsBuiltIn (void) const β€” is this thing built in?
  • virtual void getFieldsMemorySize (size_t &managed, size_t &unmanaged) const β€” reports memory sizes, split into managed and unmanaged.
  • void setUserData (void *userdata) const β€” attaches your own user data.
  • void * getUserData (void) const β€” gets your user data back out.

πŸ’œ Public Member Functions inherited from SoBase

  • void ref (void) const β€” bumps the ref count.
  • void unref (void) const β€” drops the ref count.
  • void unrefNoDelete (void) const β€” unrefs without deleting. spicy 🌢️
  • int32_t getRefCount (void) const β€” tells you the current ref count.
  • void touch (void) β€” touches it, triggers notification.
  • SbBool isOfType (SoType type) const β€” type check.
  • virtual SbName getName (void) const β€” gets the name.
  • virtual void setName (const SbName &newname) β€” sets the name.
  • void addAuditor (void *const auditor, const SoNotRec::Type type) β€” adds an auditor of a given type.
  • void removeAuditor (void *const auditor, const SoNotRec::Type type) β€” removes that auditor.
  • const SoAuditorList & getAuditors (void) const β€” returns the whole auditor list.
  • SbBool shouldWrite (void) β€” should this be written out?
  • void assertAlive (void) const β€” asserts it's still alive. not me being dramatic about it πŸ’€

✨ Static Public Member Functions

  • static SoType getClassTypeId (void) β€” the class type id, static style.
  • static void * createInstance (void) β€” makes an instance for you.
  • static void initClass (void) β€” initializes 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 cleanupClass (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 *input, SoBase *&base, SoType expectedtype)
  • static void setInstancePrefix (const SbString &c)
  • static void setTraceRefs (SbBool trace)
  • static SbBool getTraceRefs (void)
  • static SbBool connectRoute (SoInput *input, const SbName &fromnodename, const SbName &fromfieldname, const SbName &tonodename, const SbName &tofieldname)
  • static SbBool readRoute (SoInput *input)

πŸ’– Public Attributes

  • SoMFVec3f keyValue β€” the multi-field of key values. the actual normal data lives here.
  • SoEngineOutput value_changed β€” the engine output that fires when the value changes. periodt.

πŸŽ€ Public Attributes inherited from SoVRMLInterpolator

  • SoMFFloat key β€” the key floats.
  • SoSFFloat set_fraction β€” the single float that sets the fraction you're interpolating at.

πŸ™ˆ Protected Member Functions

  • virtual const SoFieldData * getFieldData (void) const β€” internal field data accessor.
  • virtual ~SoVRMLNormalInterpolator () β€” the destructor. the end of an era 😭

🌈 Protected Member Functions inherited from SoVRMLInterpolator

  • int getKeyValueIndex (float &interp) β€” figures out the key/value index and hands back the interpolation factor.

πŸ’… Protected Member Functions inherited from SoNodeEngine

  • SoNodeEngine (void) β€” protected constructor.
  • virtual ~SoNodeEngine (void) β€” protected destructor.
  • virtual SbBool readInstance (SoInput *in, unsigned short flags) β€” reads an instance in.
  • virtual void inputChanged (SoField *which) β€” called when an input changes.
  • void writeOutputTypes (SoOutput *out) β€” writes the output types out.

🌟 Protected Member Functions inherited from SoNode

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

πŸ¦‹ Protected Member Functions inherited from SoFieldContainer

  • SoFieldContainer (void) β€” protected constructor.
  • virtual ~SoFieldContainer () β€” protected destructor.

πŸ’œ Protected Member Functions inherited from SoBase

  • SoBase (void) β€” protected constructor.
  • virtual ~SoBase () β€” protected destructor.
  • SbBool hasMultipleWriteRefs (void) const β€” checks for multiple write refs.
  • SbBool writeHeader (SoOutput *out, SbBool isgroup, SbBool isengine) const β€” writes the header.
  • void writeFooter (SoOutput *out) const β€” writes the footer.
  • virtual const char * getFileFormatName (void) const β€” returns 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

the enum, in all its glory:

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,
    COIN_3_0 = 0x8000,
    INVENTOR_6_0 = 0x10000
}

πŸ¦‹ Protected Types inherited from SoBase

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

πŸ’œ Protected Attributes inherited from SoNode

  • uint32_t uniqueId β€” the node's very own unique id.

🌈 Protected Attributes inherited from SoFieldContainer

  • SbBool isBuiltIn β€” is it built in or not.

⭐ Static Protected Attributes inherited from SoNode

  • static uint32_t nextUniqueId = 1 β€” the next unique id to hand out, starts at 1.
  • static int nextActionMethodIndex = 0 β€” the next action method index, starts at 0.

okay and that's part 1, bestie β€” there's more where this came from 🫢

πŸ’– DETAILED DESCRIPTION πŸ’–

okay so bestie, listen β€” the SoVRMLNormalInterpolator class is literally here to interpolate normals. that's its whole thing. its moment. its era. ✨

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. give them their flowers πŸ’

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

The NormalInterpolator node interpolates among a list of normal vector sets specified by the keyValue field. The output vector, value_changed, shall be a set of normalized vectors. Values in the keyValue field shall be of unit length. The number of normals in the keyValue field shall be an integer multiple of the number of keyframes in the key field. That integer multiple defines how many normals will be contained in the value_changed events. Normal interpolation shall be performed on the surface of the unit sphere. That is, the output values for a linear interpolation from a point P on the unit sphere to a point Q also on the unit sphere shall lie along the shortest arc (on the unit sphere) connecting points P and Q. Also, equally spaced input fractions shall result in arcs of equal length. The results are undefined if P and Q are diagonally opposite. A more detailed discussion of interpolators is provided in 4.6.8, Interpolator nodes (http://www.web3d.org/x3d/specifications/vrml/ISO-IEC-14772-VRML97/part1/concepts.html#4.6.8).

fr fr if P and Q are diagonally opposite it's giving chaos, results are undefined, do not do it bestie 😭

πŸŽ€ CONSTRUCTOR & DESTRUCTOR DOCUMENTATION πŸŽ€

πŸ¦‹ SoVRMLNormalInterpolator::SoVRMLNormalInterpolator (void )

Constructor. that's it, that's the job πŸ’…

🌸 SoVRMLNormalInterpolator::~SoVRMLNormalInterpolator () [protected], [virtual]

Destructor. it's protected, it's virtual, it's saying goodbye with main character energy 🫢


✨ MEMBER FUNCTION DOCUMENTATION ✨

πŸ’œ SoType SoVRMLNormalInterpolator::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.

Usage example:

void foo(SoNode * node)
{
  if (node->getTypeId() == SoFile::getClassTypeId()) {
    SoFile * filenode = (SoFile *)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.

the way that you literally have to override this in every single subclass... it's giving commitment, it's giving type system setup, periodt πŸ‘‘

🌈 const SoFieldData * SoVRMLNormalInterpolator::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 * SoVRMLNormalInterpolator::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.

lowkey not for you bestie, it's internal, the library handles it πŸ™ˆ

πŸ“ MEMBER DATA DOCUMENTATION πŸ“

πŸ’– SoMFVec3f SoVRMLNormalInterpolator::keyValue

The keyValue vector.

🧚 SoEngineOutput SoVRMLNormalInterpolator::value_changed

The eventOut which is sent every time the interpolator has calculated a new value.

not me getting emotional over an eventOut that fires every time a new value drops πŸ₯Ή it's literally doing so much for us

πŸ‘‘ AUTHOR πŸ‘‘

Generated automatically by Doxygen for Coin from the source code. yes bestie, a robot wrote this and it ATE πŸ’…


and that's the whole page babes 🫢 this was SoVRMLNormalInterpolator(3) from Coin, Version 3.1.3, dated the day it was generated β€” slay, iconic, no cap. go interpolate some normals, you've got this πŸ’–βœ¨πŸŽ€

πŸ“¦ where this page comes from