SoVRMLTextureCoordinate(3)
โจ SoVRMLTextureCoordinate โจ
okay bestie, welcome to the SoVRMLTextureCoordinate(3) page from Coin ๐ this is part 1 of 2 so don't go anywhere, there's more coming. she's the class that binds texture coordinates to vertex-based geometry, and honestly? iconic behaviour. matchmaking vertices to textures like it's her whole job ๐ฆ
๐ NAME ๐
SoVRMLTextureCoordinate โ binds texture coordinates to vertex-based geometry. literally the wingwoman of your VRML geometry, no cap ๐
๐ SYNOPSIS ๐
#include <Inventor/VRMLnodes/SoVRMLTextureCoordinate.h>
Inherits SoNode. periodt ๐ธ
๐ Public Member Functions ๐
virtual SoType getTypeId (void) constโ hands you back theSoTypefor this class, the classic "who am I" check ๐ชSoVRMLTextureCoordinate (void)โ the constructor, she's right there ready to build you a fresh one โจvirtual void doAction (SoAction *action)โ the general "do the thing with thisSoAction" entry point ๐ฅvirtual void callback (SoCallbackAction *action)โ runs the callback action, she's on it ๐ซvirtual void GLRender (SoGLRenderAction *action)โ the render pass, this is where she shows up forSoGLRenderAction๐virtual void pick (SoPickAction *action)โ handles picking withSoPickAction, for when you need to know what's under the cursor ๐ฏvirtual void getPrimitiveCount (SoGetPrimitiveCountAction *action)โ answers theSoGetPrimitiveCountActionroll call ๐ข
๐ Public Member Functions inherited from SoNode ๐
void setOverride (const SbBool state)โ sets the override state ๐SbBool isOverride (void) constโ asks whether override is on ๐void setNodeType (const NodeType type)โ sets the node type ๐ท๏ธNodeType getNodeType (void) constโ reads back the node type ๐virtual SoNode * copy (SbBool copyconnections=FALSE) constโ copies the node, withcopyconnectionsdefaulting toFALSE๐virtual SbBool affectsState (void) constโ whether this node messes with state ๐ซงvirtual void GLRenderBelowPath (SoGLRenderAction *action)โ render, below-path flavour ๐virtual void GLRenderInPath (SoGLRenderAction *action)โ render, in-path flavour ๐ค๏ธvirtual void GLRenderOffPath (SoGLRenderAction *action)โ render, off-path flavour ๐ซvirtual void getBoundingBox (SoGetBoundingBoxAction *action)โ bounding box time ๐ฆvirtual void getMatrix (SoGetMatrixAction *action)โ matrix time ๐งฎvirtual void handleEvent (SoHandleEventAction *action)โ event handling ๐ชvirtual void rayPick (SoRayPickAction *action)โ ray picking ๐น๏ธvirtual void search (SoSearchAction *action)โ search ๐virtual void write (SoWriteAction *action)โ write โ๏ธvirtual void audioRender (SoAudioRenderAction *action)โ audio render ๐virtual void grabEventsSetup (void)โ sets up event grabbing ๐ซดvirtual void grabEventsCleanup (void)โ cleans up event grabbing ๐งนvirtual void startNotify (void)โ kicks off notification ๐ฃvirtual void notify (SoNotList *l)โ notifies ๐๏ธSbUniqueId getNodeId (void) constโ the node's unique id ๐virtual SoChildList * getChildren (void) constโ the children list ๐ถvirtual void writeInstance (SoOutput *out)โ writes the instance ๐คvirtual SoNode * addToCopyDict (void) constโ adds to the copy dictionary ๐๏ธvirtual void copyContents (const SoFieldContainer *from, SbBool copyconnections)โ copies contents over,copyconnectionsand all ๐ฅvirtual SoFieldContainer * copyThroughConnection (void) constโ copies through a connection ๐
๐ Public Member Functions inherited from SoFieldContainer ๐
void setToDefaults (void)โ back to defaults, reset era ๐งผSbBool hasDefaultValues (void) constโ are we at default values? ๐คSbBool fieldsAreEqual (const SoFieldContainer *container) constโ field-by-field comparison withcontainerโ๏ธvoid copyFieldValues (const SoFieldContainer *container, SbBool copyconnections=FALSE)โ copies field values fromcontainer,copyconnectionsdefaults toFALSE๐SbBool set (const char *const fielddata)โ sets from afielddatastring ๐งตvoid get (SbString &fielddata)โ reads out intofielddata๐virtual int getFields (SoFieldList &l) constโ grabs the fields intol๐๏ธvirtual int getAllFields (SoFieldList &l) constโ grabs all the fields intol, yes all of them ๐ฏvirtual SoField * getField (const SbName &name) constโ looks up a field byname๐ท๏ธvirtual SoField * getEventIn (const SbName &name) constโ looks up an event-in byname๐จvirtual SoField * getEventOut (const SbName &name) constโ looks up an event-out byname๐ฎSbBool getFieldName (const SoField *const field, SbName &name) constโ gets the name offieldintoname๐SbBool enableNotify (const SbBool flag)โ toggles notification withflag๐SbBool isNotifyEnabled (void) constโ is notification enabled? ๐งSbBool set (const char *fielddata, SoInput *input)โ sets fromfielddatausing anSoInput๐ฅvoid get (SbString &fielddata, SoOutput *out)โ reads out intofielddatausing anSoOutput๐คvirtual SbBool validateNewFieldValue (SoField *field, void *newval)โ validates a new value forfieldโvirtual void addWriteReference (SoOutput *out, SbBool isfromfield=FALSE)โ adds a write reference,isfromfielddefaults toFALSE๐๏ธSbBool getIsBuiltIn (void) constโ is it built in? ๐virtual void getFieldsMemorySize (size_t &managed, size_t &unmanaged) constโ reports memory size intomanagedandunmanaged๐งvoid setUserData (void *userdata) constโ stashes youruserdata๐void * getUserData (void) constโ gets youruserdataback ๐
๐ Public Member Functions inherited from SoBase ๐
void ref (void) constโ refs her up, refcount goes brrr โฌ๏ธvoid unref (void) constโ unrefs, and may delete ๐๏ธvoid unrefNoDelete (void) constโ unrefs but doesn't delete, the polite version ๐int32_t getRefCount (void) constโ how many refs we got ๐ขvoid touch (void)โ touch her, wake the notification chain up โกSbBool isOfType (SoType type) constโ ReturnsTRUEif the type of this object is either of the same type or inherited fromtype. ๐virtual SbName getName (void) constโ the name ๐ท๏ธvirtual void setName (const SbName &newname)โ sets the name tonewnameโ๏ธ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โ the auditor list ๐SbBool shouldWrite (void)โ should she write? ๐คทvoid assertAlive (void) constโ asserts she's alive, dramatic but necessary ๐
๐ซ Static Public Member Functions ๐ซ
static SoType getClassTypeId (void)โ the staticSoTypefor this class ๐static void initClass (void)โ sets up the class, the whole "hey Coin type system, we exist" moment โจ
๐ Static Public Member Functions inherited from SoNode ๐
static uint32_t getCompatibilityTypes (const SoType &nodetype)โ compatibility types fornodetype๐งฉstatic SoType getClassTypeId (void)โ the classSoType๐static SoNode * getByName (const SbName &name)โ look a node up byname๐static int getByName (const SbName &name, SoNodeList &l)โ look nodes up bynameintol๐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)โ inits all the classes, plural, she's doing overtime ๐ญstatic SbUniqueId getNextNodeId (void)โ the next node id, coming right up ๐ขstatic int getActionMethodIndex (const SoType type)โ the action method index fortype๐static void getBoundingBoxS (SoAction *action, SoNode *node)โ static bounding box helper ๐ฆstatic void GLRenderS (SoAction *action, SoNode *node)โ static GL render helper ๐จstatic void callbackS (SoAction *action, SoNode *node)โ static callback helper ๐static void getMatrixS (SoAction *action, SoNode *node)โ static matrix helper ๐งฎstatic void handleEventS (SoAction *action, SoNode *node)โ static event helper ๐ชstatic void pickS (SoAction *action, SoNode *node)โ static pick helper ๐ฏstatic void rayPickS (SoAction *action, SoNode *node)โ static ray pick helper ๐น๏ธstatic void searchS (SoAction *action, SoNode *node)โ static search helper ๐static void writeS (SoAction *action, SoNode *node)โ static write helper โ๏ธstatic void audioRenderS (SoAction *action, SoNode *node)โ static audio render helper ๐static void getPrimitiveCountS (SoAction *action, SoNode *node)โ static primitive count helper ๐ข
๐ 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)โ cleanup duty ๐งฝstatic void initCopyDict (void)โ sets up the copy dictionary ๐๏ธstatic void addCopy (const SoFieldContainer *orig, const SoFieldContainer *copy)โ registerscopyas the copy oforig๐static SoFieldContainer * checkCopy (const SoFieldContainer *orig)โ checks the copy fororig๐static SoFieldContainer * findCopy (const SoFieldContainer *orig, const SbBool copyconnections)โ finds the copy oforig, withcopyconnectionsin the mix ๐งญstatic void copyDone (void)โ copying is done, wrap it up ๐ฌ
๐ 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)โ addsnameforbase๐ท๏ธstatic void removeName (SoBase *const base, const char *const name)โ removesnamefrombaseโstatic void incrementCurrentWriteCounter (void)โ bump the write counter โฌ๏ธstatic void decrementCurrentWriteCounter (void)โ drop the write counter โฌ๏ธstatic SoBase * getNamedBase (const SbName &name, SoType type)โ get the base namednameoftype๐static int getNamedBases (const SbName &name, SoBaseList &baselist, SoType type)โ get all the bases namednameoftypeintobaselist๐static SbBool read (SoInput *input, SoBase *&base, SoType expectedtype)โ reads intobase, expectingexpectedtype๐static void setInstancePrefix (const SbString &c)โ sets the instance prefix toc๐คstatic void setTraceRefs (SbBool trace)โ toggles ref tracing withtrace๐static SbBool getTraceRefs (void)โ reads the ref-tracing setting ๐static SbBool connectRoute (SoInput *input, const SbName &fromnodename, const SbName &fromfieldname, const SbName &tonodename, const SbName &tofieldname)โ wires a route fromfromnodename.fromfieldnametotonodename.tofieldname๐static SbBool readRoute (SoInput *input)โ reads a route ๐ฅ
๐ Public Attributes ๐
SoMFVec2f pointโ the multi-field of 2D vectors holding the points. she's the main character here, honestly ๐
๐ง Protected Member Functions ๐ง
virtual const SoFieldData * getFieldData (void) constโ the field data ๐๏ธvirtual ~SoVRMLTextureCoordinate ()โ the destructor, protected, so don't just delete her directly ๐
๐ Protected Member Functions inherited from SoNode ๐
SoNode (void)โ theSoNodeconstructor ๐๏ธvirtual ~SoNode ()โ theSoNodedestructor โฐ๏ธvirtual SbBool readInstance (SoInput *in, unsigned short flags)โ reads an instance frominwithflags๐ฅ
๐ Protected Member Functions inherited from SoFieldContainer ๐
SoFieldContainer (void)โ theSoFieldContainerconstructor ๐๏ธvirtual ~SoFieldContainer ()โ theSoFieldContainerdestructor โฐ๏ธ
๐ Protected Member Functions inherited from SoBase ๐
SoBase (void)โ theSoBaseconstructor ๐๏ธvirtual ~SoBase ()โ theSoBasedestructor โฐ๏ธvirtual void destroy (void)โ destroys her ๐ฅSbBool hasMultipleWriteRefs (void) constโ got multiple write refs? ๐๏ธSbBool writeHeader (SoOutput *out, SbBool isgroup, SbBool isengine) constโ writes the header withisgroupandisengine๐ท๏ธvoid writeFooter (SoOutput *out) constโ writes the footer ๐ปvirtual const char * getFileFormatName (void) constโ the file format name ๐virtual SoNotRec createNotRec (void)โ creates a notification record ๐
๐ฆ Static Protected Member Functions ๐ฆ
static const SoFieldData ** getFieldDataPtr (void)โ the field data pointer ๐๏ธ
๐ Static Protected Member Functions inherited from SoNode ๐
static const SoFieldData ** getFieldDataPtr (void)โ the field data pointer ๐๏ธstatic void setNextActionMethodIndex (int index)โ sets the next action method index toindex๐static int getNextActionMethodIndex (void)โ reads the next action method index ๐static void incNextActionMethodIndex (void)โ bumps the next action method index โฌ๏ธstatic void setCompatibilityTypes (const SoType &nodetype, const uint32_t bitmask)โ sets compatibility types fornodetypewithbitmask๐งฉ
๐ Static Protected Member Functions inherited from SoBase ๐
static uint32_t getCurrentWriteCounter (void)โ reads the current write counter ๐ขstatic void staticDataLock (void)โ locks the static data ๐static void staticDataUnlock (void)โ unlocks the static data ๐
๐ 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, COIN_3_0 = 0x8000, INVENTOR_6_0 = 0x10000, COIN_4_0 = 0x20000 }โ the whole node-type roster, every flag present and accounted for ๐
๐ Protected Types inherited from SoBase ๐
enum BaseFlags { IS_ENGINE = 0x01, IS_GROUP = 0x02 }โ the base flags ๐ฉ
๐ Protected Attributes inherited from SoNode ๐
SbUniqueId uniqueIdโ the unique id ๐
๐ Protected Attributes inherited from SoFieldContainer ๐
SbBool isBuiltInโ the built-in flag ๐
๐ Static Protected Attributes inherited from SoNode ๐
static SbUniqueId nextUniqueId = 1โ next unique id starts at1โจstatic int nextActionMethodIndex = 0โ next action method index starts at0โจ
๐ that's the end of part 1, bestie โ stay tuned, there's more ๐
โจ DETAILED DESCRIPTION โจ
The SoVRMLTextureCoordinate class binds texture coordinates to vertex-based geometry. bestie that's literally its whole job and it does it flawlessly ๐
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:
TextureCoordinate {
exposedField MFVec2f point [] # (-inf, inf)
}
The TextureCoordinate node specifies a set of 2D texture coordinates used by vertex-based geometry nodes (e.g., SoVRMLIndexedFaceSet and SoVRMLElevationGrid) to map textures to vertices. Textures are two dimensional colour functions that, given an (s, t) coordinate, return a colour value colour(s, t). Texture map values (SoVRMLImageTexture, SoVRMLMovieTexture, and SoVRMLPixelTexture) range from [0.0, 1.0] along the S-axis and T-axis. However, TextureCoordinate values, specified by the point field, may be in the range (-inf,inf). Texture coordinates identify a location (and thus a colour value) in the texture map. The horizontal coordinate s is specified first, followed by the vertical coordinate t.
If the texture map is repeated in a given direction (S-axis or T-axis), a texture coordinate C (s or t) is mapped into a texture map that has N pixels in the given direction as follows:
Texture map location = (C - floor(C)) ร N
If the texture map is not repeated, the texture coordinates are clamped to the 0.0 to 1.0 range as follows:
Texture map location = N, if C > 1.0,
= 0.0, if C < 0.0,
= C ร N, if 0.0 <= C <= 1.0.
Details on repeating textures are specific to texture map node types described in SoVRMLImageTexture, SoVRMLMovieTexture, and SoVRMLPixelTexture.
๐ CONSTRUCTOR & DESTRUCTOR DOCUMENTATION ๐
SoVRMLTextureCoordinate::SoVRMLTextureCoordinate (void )
Constructor. it's giving new-beginning energy โจ
SoVRMLTextureCoordinate::~SoVRMLTextureCoordinate () [protected], [virtual]
Destructor. bye bestie ๐ฆ
๐ MEMBER FUNCTION DOCUMENTATION ๐
SoType SoVRMLTextureCoordinate::getClassTypeId (void ) [static]
This static method returns the SoType object associated with objects of this class.
SoType SoVRMLTextureCoordinate::getTypeId (void ) const [virtual]
Returns the type identification of an object derived from a class inheriting SoBase. This is used for runtime type checking and "downward" casting.
Implements SoBase.
const SoFieldData ** SoVRMLTextureCoordinate::getFieldDataPtr (void ) [static], [protected]
This API member is considered internal to the library, as it is not likely to be of interest to the application programmer. iykyk ๐
Returns the SoFieldData class which holds information about fields in this node.
const SoFieldData * SoVRMLTextureCoordinate::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 SoFieldContainer.
void SoVRMLTextureCoordinate::initClass (void ) [static]
void SoVRMLTextureCoordinate::doAction (SoAction * action) [virtual]
This function performs the typical operation of a node for any action.
Reimplemented from SoNode.
void SoVRMLTextureCoordinate::callback (SoCallbackAction * action) [virtual]
Action method for SoCallbackAction.
Simply updates the state according to how the node behaves for the render action, so the application programmer can use the SoCallbackAction for extracting information about the scene graph.
Reimplemented from SoNode.
void SoVRMLTextureCoordinate::GLRender (SoGLRenderAction * action) [virtual]
Action method for the SoGLRenderAction.
This is called during rendering traversals. Nodes influencing the rendering state in any way or want to throw geometry primitives at OpenGL override this method.
Reimplemented from SoNode.
void SoVRMLTextureCoordinate::pick (SoPickAction * action) [virtual]
Action method for SoPickAction.
Does common processing for SoPickAction action instances.
Reimplemented from SoNode.
void SoVRMLTextureCoordinate::getPrimitiveCount (SoGetPrimitiveCountAction * action) [virtual]
Action method for the SoGetPrimitiveCountAction.
Calculates the number of triangle, line segment and point primitives for the node and adds these to the counters of the action.
Nodes influencing how geometry nodes calculate their primitive count also override this method to change the relevant state variables.
Reimplemented from SoNode.
๐ MEMBER DATA DOCUMENTATION ๐
SoMFVec2f SoVRMLTextureCoordinate::point
The texture coordinates. Empty by default.
๐ AUTHOR ๐
Generated automatically by Doxygen for Coin from the source code.
okay that's the whole page, bestie, you made it to the end ๐ซถ this was Coin Version 4.0.10, dated Thu Jun 25 2026 00:00:00 โ so yeah, SoVRMLTextureCoordinate(3) is officially a wrap. go map some textures, you absolute icon ๐
โจ
๐ฆ 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