SoShaderParameter1f(3)
<h1># β¨ NAME β¨</h1>
okay so welcome to the Coin manual, bestie π and today's main character is:
SoShaderParameter1f β the class you use to define a floating point value as a shader parameter π
That's it, that's the whole name section. Short, sweet, iconic, no cap π¦
Like, literally, the entire vibe of this class is: "here is one single float, please hand it to the shader" πΈ One value. One float. One purpose. She's focused, she's committed, she ate and left no crumbs π
iykyk π«Ά
β¨ SYNOPSIS β¨
#include <Inventor/nodes/SoShaderParameter.h>
Inherits SoUniformShaderParameter.
okay so real quick, this class is part of the Coin shader-parameter squad, and it inherits from SoUniformShaderParameter β so it's already got that uniform energy going on. π
Public Member Functions π
virtual SoType getTypeId (void) constβ standard Coin type-id getter, returns theSoTypefor this class. every node has one, it's a whole thing.virtual void updateParameter (SoGLShaderObject *shaderObject)β drops the content of thevaluefield into the OpenGL state as the shader parameter. like, that's literally its job, and it does it well. β¨
Public Member Functions inherited from SoNode
void setOverride (const SbBool state)β sets the override flag.SbBool isOverride (void) constβ tells you if override is on.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 of the node.virtual SbBool affectsState (void) constβ says whether this node affects the traversal state.virtual void doAction (SoAction *action)β runs the given action on this node.virtual void GLRender (SoGLRenderAction *action)β the GL render action entry point.virtual void GLRenderBelowPath (SoGLRenderAction *action)β renders below the path.virtual void GLRenderInPath (SoGLRenderAction *action)β renders in the path.virtual void GLRenderOffPath (SoGLRenderAction *action)β renders off the path.virtual void callback (SoCallbackAction *action)β callback action handler.virtual void getBoundingBox (SoGetBoundingBoxAction *action)β bounding box action handler.virtual void getMatrix (SoGetMatrixAction *action)β matrix action handler.virtual void handleEvent (SoHandleEventAction *action)β event handling action.virtual void pick (SoPickAction *action)β pick action handler.virtual void rayPick (SoRayPickAction *action)β ray pick action handler.virtual void search (SoSearchAction *action)β search action handler.virtual void write (SoWriteAction *action)β write action handler.virtual void audioRender (SoAudioRenderAction *action)β audio render action handler.virtual void getPrimitiveCount (SoGetPrimitiveCountAction *action)β primitive count action.virtual void grabEventsSetup (void)β sets up event grabbing.virtual void grabEventsCleanup (void)β cleans up event grabbing.virtual void startNotify (void)β starts the notification cycle.virtual void notify (SoNotList *l)β notifies the node of a change.SbUniqueId getNodeId (void) constβ returns this node's unique ID.virtual SoChildList * getChildren (void) constβ returns the child list (orNULLif there isn't one).virtual void writeInstance (SoOutput *out)β writes the instance data.virtual SoNode * addToCopyDict (void) constβ adds this node to the copy dictionary.virtual void copyContents (const SoFieldContainer *from, SbBool copyconnections)β copies contents from another container.virtual SoFieldContainer * copyThroughConnection (void) constβ copies through a connection.
Public Member Functions inherited from SoFieldContainer
void setToDefaults (void)β resets all fields to their default values.SbBool hasDefaultValues (void) constβ checks if every field is at its default.SbBool fieldsAreEqual (const SoFieldContainer *container) constβ compares fields with another container.void copyFieldValues (const SoFieldContainer *container, SbBool copyconnections=FALSE)β copies field values from another container.SbBool set (const char *const fielddata)β sets field values from a string.void get (SbString &fielddata)β gets field values as a string.virtual int getFields (SoFieldList &l) constβ fills a list with the fields.virtual int getAllFields (SoFieldList &l) constβ fills a list with all fields, including hidden ones.virtual SoField * getField (const SbName &name) constβ finds a field by name.virtual SoField * getEventIn (const SbName &name) constβ finds an event-in by name.virtual SoField * getEventOut (const SbName &name) constβ finds an event-out by name.SbBool getFieldName (const SoField *const field, SbName &name) constβ gets the name of a given field.SbBool enableNotify (const SbBool flag)β turns notification on or off.SbBool isNotifyEnabled (void) constβ checks if notification is enabled.SbBool set (const char *fielddata, SoInput *input)β sets field values from a string, with anSoInputfor resolving stuff.void get (SbString &fielddata, SoOutput *out)β gets field values as a string, with anSoOutput.virtual SbBool validateNewFieldValue (SoField *field, void *newval)β validates a new field value.virtual void addWriteReference (SoOutput *out, SbBool isfromfield=FALSE)β adds a write reference.SbBool getIsBuiltIn (void) constβ returns whether this is a built-in container.virtual void getFieldsMemorySize (size_t &managed, size_t &unmanaged) constβ reports memory used by fields.void setUserData (void *userdata) constβ attaches user data.void * getUserData (void) constβ retrieves the attached user data.
Public Member Functions inherited from SoBase
void ref (void) constβ increments the reference count.void unref (void) constβ decrements the reference count, deleting if it hits zero.void unrefNoDelete (void) constβ decrements without deleting.int32_t getRefCount (void) constβ returns the current reference count.void touch (void)β marks the object as changed and notifies auditors.SbBool isOfType (SoType type) constβ returnsTRUEif this object's type is either the same as type or inherited from it. basically a class-hierarchy vibe check π¦virtual SbName getName (void) constβ returns the object's name.virtual void setName (const SbName &newname)β sets the object's name.void addAuditor (void *const auditor, const SoNotRec::Type type)β adds an auditor.void removeAuditor (void *const auditor, const SoNotRec::Type type)β removes an auditor.const SoAuditorList & getAuditors (void) constβ returns the list of auditors.SbBool shouldWrite (void)β checks if the object should be written.void assertAlive (void) constβ asserts that the object is still alive.
Static Public Member Functions π
static SoType getClassTypeId (void)β returns theSoTypefor this class.static void initClass ()β sets up initialization for data common to all instances of this class, like submitting necessary information to the Coin type system. iconic housekeeping, no cap β¨
Static Public Member Functions inherited from SoUniformShaderParameter
static SoType getClassTypeId (void)β same deal, returns the class type ID.static void initClass (void)β sets up initialization for data common to all instances of this class, like submitting necessary information to the Coin type system.
Static Public Member Functions inherited from SoShaderParameter
static SoType getClassTypeId (void)β returns the class type ID.static void initClass ()β sets up initialization for data common to all instances of this class, like submitting necessary information to the Coin type system.
Static Public Member Functions inherited from SoNode
static uint32_t getCompatibilityTypes (const SoType &nodetype)β gets compatibility types.static SoType getClassTypeId (void)β returns the class type ID.static SoNode * getByName (const SbName &name)β finds a node by name.static int getByName (const SbName &name, SoNodeList &l)β finds all nodes with a given name and puts them in the list.static void initClass (void)β sets up initialization for data common to all instances of this class, like submitting necessary information to the Coin type system.static void initClasses (void)β initializes all classes.static SbUniqueId getNextNodeId (void)β returns the next unique node ID.static int getActionMethodIndex (const SoType type)β returns the action method index for a type.static void getBoundingBoxS (SoAction *action, SoNode *node)β static bounding box handler.static void GLRenderS (SoAction *action, SoNode *node)β static GL render handler.static void callbackS (SoAction *action, SoNode *node)β static callback handler.static void getMatrixS (SoAction *action, SoNode *node)β static matrix handler.static void handleEventS (SoAction *action, SoNode *node)β static event handler.static void pickS (SoAction *action, SoNode *node)β static pick handler.static void rayPickS (SoAction *action, SoNode *node)β static ray pick handler.static void searchS (SoAction *action, SoNode *node)β static search handler.static void writeS (SoAction *action, SoNode *node)β static write handler.static void audioRenderS (SoAction *action, SoNode *node)β static audio render handler.static void getPrimitiveCountS (SoAction *action, SoNode *node)β static primitive count handler.
Static Public Member Functions inherited from SoFieldContainer
static void initClass (void)β sets up initialization for data common to all instances of this class, like submitting necessary information to the Coin type system.static SoType getClassTypeId (void)β this static method returns theSoTypeobject associated with objects of this class.static void cleanupClass (void)β cleans up the class.static void initCopyDict (void)β initializes the copy dictionary.static void addCopy (const SoFieldContainer *orig, const SoFieldContainer *copy)β adds a copy to the dictionary.static SoFieldContainer * checkCopy (const SoFieldContainer *orig)β checks for a copy.static SoFieldContainer * findCopy (const SoFieldContainer *orig, const SbBool copyconnections)β finds a copy.static void copyDone (void)β signals that copying is done.
Static Public Member Functions inherited from SoBase
static void initClass (void)β sets up initialization for data common to all instances of this class, like submitting necessary information to the Coin type system.static SoType getClassTypeId (void)β this static method returns theSoTypeobject associated with objects of this class.static void addName (SoBase *const base, const char *const name)β adds a name to the name list.static void removeName (SoBase *const base, const char *const name)β removes a name.static void incrementCurrentWriteCounter (void)β bumps the write counter.static void decrementCurrentWriteCounter (void)β lowers the write counter.static SoBase * getNamedBase (const SbName &name, SoType type)β gets a named base.static int getNamedBases (const SbName &name, SoBaseList &baselist, SoType type)β gets named bases into a list.static SbBool read (SoInput *input, SoBase *&base, SoType expectedtype)β reads a base from input.static void setInstancePrefix (const SbString &c)β sets the instance prefix.static void setTraceRefs (SbBool trace)β turns reference tracing on or off.static SbBool getTraceRefs (void)β checks if reference tracing is on.static SbBool connectRoute (SoInput *input, const SbName &fromnodename, const SbName &fromfieldname, const SbName &tonodename, const SbName &tofieldname)β connects a route.static SbBool readRoute (SoInput *input)β reads a route.
Public Attributes π
SoSFFloat valueβ the floating point value that gets passed as the shader parameter. the main character, honestly. π
Public Attributes inherited from SoShaderParameter
SoSFString nameβ the parameter name.SoSFInt32 identifierβ the parameter identifier.
Protected Member Functions
virtual const SoFieldData * getFieldData (void) constβ returns the field data for this class.
Protected Member Functions inherited from SoUniformShaderParameter
SoGLShaderParameter * getGLShaderParameter (const uint32_t cachecontext)β gets the GL shader parameter for a cache context.void ensureParameter (SoGLShaderObject *shader)β makes sure the parameter exists for the shader.
Protected Member Functions inherited from SoShaderParameter
SoShaderParameter ()β constructor.virtual ~SoShaderParameter ()β destructor.
Protected Member Functions inherited from SoNode
SoNode (void)β constructor.virtual ~SoNode ()β destructor.virtual SbBool readInstance (SoInput *in, unsigned short flags)β reads an instance.
Protected Member Functions inherited from SoFieldContainer
SoFieldContainer (void)β constructor.virtual ~SoFieldContainer ()β destructor.
Protected Member Functions inherited from SoBase
SoBase (void)β constructor.virtual ~SoBase ()β destructor.virtual void destroy (void)β destroys the object.SbBool hasMultipleWriteRefs (void) constβ checks for multiple write references.SbBool writeHeader (SoOutput *out, SbBool isgroup, SbBool isengine) constβ writes a header.void writeFooter (SoOutput *out) constβ writes a footer.virtual const char * getFileFormatName (void) constβ gets the file format name.virtual SoNotRec createNotRec (void)β creates a notification record.
Static Protected Member Functions
static const SoFieldData ** getFieldDataPtr (void)β returns a pointer to the field data pointer.
Static Protected Member Functions inherited from SoUniformShaderParameter
static const SoFieldData ** getFieldDataPtr (void)β same, returns the field data pointer.
Static Protected Member Functions inherited from SoShaderParameter
static const SoFieldData ** getFieldDataPtr (void)β returns the field data pointer.
Static Protected Member Functions inherited from SoNode
static const SoFieldData ** getFieldDataPtr (void)β returns the field data pointer.static void setNextActionMethodIndex (int index)β sets the next action method index.static int getNextActionMethodIndex (void)β gets the next action method index.static void incNextActionMethodIndex (void)β increments the next action method index.static void setCompatibilityTypes (const SoType &nodetype, const uint32_t bitmask)β sets compatibility types for a node type.
Static Protected Member Functions inherited from SoBase
static uint32_t getCurrentWriteCounter (void)β gets the current write counter.static void staticDataLock (void)β locks static data.static void staticDataUnlock (void)β unlocks static data.
Additional Inherited Members
Public Types inherited from SoNode
enum NodeTypeβ the node type bitmask enum. values are:
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, COIN_4_0 = 0x20000 }
Protected Types inherited from SoBase
enum BaseFlagsβ flags for base objects:
enum BaseFlags { IS_ENGINE = 0x01, IS_GROUP = 0x02 }
Protected Attributes inherited from SoNode
SbUniqueId uniqueIdβ the unique ID for this node.
Protected Attributes inherited from SoFieldContainer
SbBool isBuiltInβ whether this field container is built-in.
Static Protected Attributes inherited from SoNode
static SbUniqueId nextUniqueId = 1β the next unique ID to hand out.static int nextActionMethodIndex = 0β the next action method index.
Detailed Description
The SoShaderParameter1f class is used to define a floating point value as shader parameter. like, you literally use it to hand a float over to your shader as a parameter β that's the whole plot. πΈ
π Member Function Documentation π
β¨ SoType SoShaderParameter1f::getClassTypeId (void ) [static]
Bestie. This static method hands you back the SoType object that's associated with objects of this class. That's it, that's the whole job, and it does it flawlessly. π
π¦ SoType SoShaderParameter1f::getTypeId (void ) const [virtual]
Returns the type identification of an object derived from a class inheriting SoBase. What's that for, you ask? Runtime type checking and "downward" casting, periodt. π
Heads up: this one is reimplemented from SoUniformShaderParameter, so don't come for me, come for the inheritance chain. π
π const SoFieldData ** SoShaderParameter1f::getFieldDataPtr (void ) [static], [protected]
Okay so, real talk β this API member is considered internal to the library, because it's not likely to be of interest to the application programmer. So if you're just vibing and writing app code, this is not your girl. π
It returns the SoFieldData class which holds information about fields in this node. Slay. β¨
πΈ const SoFieldData * SoShaderParameter1f::getFieldData (void ) const [protected], [virtual]
Gives you a pointer to the class-wide field data storage object for this instance. And if there are literally no fields present? It returns NULL. Iconic behaviour honestly. π«Ά
Also reimplemented from SoUniformShaderParameter β again, it's giving very much "family tree". π³
π« void SoShaderParameter1f::updateParameter (SoGLShaderObject * shaderObject) [virtual]
The main character. β¨ This one updates the shader parameter in the OpenGL state using the content of the value field. Like, it takes your value and puts it where it belongs. Obsessed. π
Implements SoUniformShaderParameter β so yes, it's keeping that contract, no cap. π
π Member Data Documentation π
π SoSFFloat SoShaderParameter1f::value
The shader parameter value. That's the tea. The whole point. The moment. π
π Author π
Generated automatically by Doxygen for Coin from the source code. (Not a human, not a girlie, just a documentation generator doing its little thing. Respect. π)
And that's a wrap on SoShaderParameter1f(3), bestie!! This edition is Version 4.0.10, dated Thu Jun 25 2026 00:00:00 β so yes, she's timestamped, she's official, and she ate. πβ¨π
Go forth and parameterise your shaders, you absolute legend. π¦π
π¦ 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