SOVRMLNORMALINTERPOLATOR(3coin3)
π 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 isFALSE.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, defaultFALSE.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 anSoInput.void get (SbString &fielddata, SoOutput *out)β gets field data using anSoOutput.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,isfromfielddefaults toFALSE.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 at1.static int nextActionMethodIndex = 0β the next action method index, starts at0.
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
- 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