SoWWWAnchor(3)
okay bestie, welcome to the SoWWWAnchor(3) manual page β part 1, and it's giving main character energy. this class? obsessed. it's literally about adding URL callbacks to your highlighted geometry. let's get into it π
β¨
πΈ NAME πΈ
SoWWWAnchor β bestie, this class is the moment. it adds URL callbacks to the highlighted geometry, periodt. no cap.
π¦ SYNOPSIS π¦
#include <Inventor/nodes/SoWWWAnchor.h>
Inherits SoLocateHighlight, so it's got that highlight DNA, iykyk.
β¨ Public Types β¨
enum Mapping { NONE, POINT }
π Public Types inherited from SoLocateHighlight π
enum Modes { AUTO, ON, OFF }
enum Styles { EMISSIVE, EMISSIVE_DIFFUSE }
π¦ Public Types inherited from SoSeparator π¦
enum CacheEnabled { OFF, ON, AUTO }
π 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 }
π Public Member Functions π
virtual SoType getTypeId (void) constSoWWWAnchor (void)void setFullURLName (const SbString &url)const SbString & getFullURLName (void)virtual void handleEvent (SoHandleEventAction *action)
π Public Member Functions inherited from SoLocateHighlight π
SoLocateHighlight (void)virtual void GLRenderBelowPath (SoGLRenderAction *action)virtual void GLRenderInPath (SoGLRenderAction *action)
π Public Member Functions inherited from SoSeparator π
SoSeparator (void)SoSeparator (const int nchildren)virtual void doAction (SoAction *action)virtual void GLRender (SoGLRenderAction *action)virtual void GLRenderOffPath (SoGLRenderAction *action)virtual void callback (SoCallbackAction *action)virtual void getBoundingBox (SoGetBoundingBoxAction *action)virtual void getMatrix (SoGetMatrixAction *action)virtual void rayPick (SoRayPickAction *action)virtual void search (SoSearchAction *action)virtual void getPrimitiveCount (SoGetPrimitiveCountAction *action)virtual void audioRender (SoAudioRenderAction *action)virtual void notify (SoNotList *nl)virtual SbBool affectsState (void) const
πΈ Public Member Functions inherited from SoGroup πΈ
SoGroup (void)SoGroup (int nchildren)virtual void addChild (SoNode *node)virtual void insertChild (SoNode *child, int newchildindex)virtual SoNode * getChild (int index) constvirtual int findChild (const SoNode *node) constvirtual int getNumChildren (void) constvirtual void removeChild (int childindex)virtual void removeChild (SoNode *child)virtual void removeAllChildren (void)virtual void replaceChild (int index, SoNode *newchild)virtual void replaceChild (SoNode *oldchild, SoNode *newchild)virtual void pick (SoPickAction *action)virtual void write (SoWriteAction *action)virtual SoChildList * getChildren (void) constvirtual void addWriteReference (SoOutput *out, SbBool isfromfield=FALSE)
π¦ Public Member Functions inherited from SoNode π¦
void setOverride (const SbBool state)SbBool isOverride (void) constvoid setNodeType (const NodeType type)NodeType getNodeType (void) constvirtual SoNode * copy (SbBool copyconnections=FALSE) constvirtual void grabEventsSetup (void)virtual void grabEventsCleanup (void)virtual void startNotify (void)SbUniqueId getNodeId (void) constvirtual void writeInstance (SoOutput *out)virtual SoNode * addToCopyDict (void) constvirtual SoFieldContainer * copyThroughConnection (void) const
π Public Member Functions inherited from SoFieldContainer π
void setToDefaults (void)SbBool hasDefaultValues (void) constSbBool fieldsAreEqual (const SoFieldContainer *container) constvoid copyFieldValues (const SoFieldContainer *container, SbBool copyconnections=FALSE)SbBool set (const char *const fielddata)void get (SbString &fielddata)virtual int getFields (SoFieldList &l) constvirtual int getAllFields (SoFieldList &l) constvirtual SoField * getField (const SbName &name) constvirtual SoField * getEventIn (const SbName &name) constvirtual SoField * getEventOut (const SbName &name) constSbBool getFieldName (const SoField *const field, SbName &name) constSbBool enableNotify (const SbBool flag)SbBool isNotifyEnabled (void) constSbBool set (const char *fielddata, SoInput *input)void get (SbString &fielddata, SoOutput *out)virtual SbBool validateNewFieldValue (SoField *field, void *newval)SbBool getIsBuiltIn (void) constvirtual void getFieldsMemorySize (size_t &managed, size_t &unmanaged) constvoid setUserData (void *userdata) constvoid * getUserData (void) const
π Public Member Functions inherited from SoBase π
void ref (void) constvoid unref (void) constvoid unrefNoDelete (void) constint32_t getRefCount (void) constvoid touch (void)SbBool isOfType (SoType type) constβ bestie, this one hands you backTRUEif the type of this object is either the exact same type or inherited from type. no cap.virtual SbName getName (void) constvirtual void setName (const SbName &newname)void addAuditor (void *const auditor, const SoNotRec::Type type)void removeAuditor (void *const auditor, const SoNotRec::Type type)const SoAuditorList & getAuditors (void) constSbBool shouldWrite (void)void assertAlive (void) const
β¨ Static Public Member Functions β¨
static SoType getClassTypeId (void)static void initClass (void)β this is the init glow-up, bestie. it sets up initialization for data common to all instances of this class, like submitting necessary information to the Coin type system. iconic.static void setFetchURLCallBack (SoWWWAnchorCB *f, void *userData)static void setHighlightURLCallBack (SoWWWAnchorCB *f, void *userData)
π Static Public Member Functions inherited from SoLocateHighlight π
static SoType getClassTypeId (void)static void initClass (void)β same init energy: sets up initialization for data common to all instances of this class, like submitting necessary information to the Coin type system.static void turnOffCurrentHighlight (SoGLRenderAction *action)
π¦ Static Public Member Functions inherited from SoSeparator π¦
static SoType getClassTypeId (void)static void initClass (void)β again, sets up initialization for data common to all instances of this class, like submitting necessary information to the Coin type system.static void setNumRenderCaches (const int howmany)static int getNumRenderCaches (void)
πΈ Static Public Member Functions inherited from SoGroup πΈ
static SoType getClassTypeId (void)static void initClass (void)β you guessed it: 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)static SoType getClassTypeId (void)static SoNode * getByName (const SbName &name)static int getByName (const SbName &name, SoNodeList &l)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)static SbUniqueId 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)β 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. periodt.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)β 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)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 π
SoSFString nameSoSFString descriptionSoSFEnum map
π Public Attributes inherited from SoLocateHighlight π
SoSFColor colorSoSFEnum styleSoSFEnum mode
π¦ Public Attributes inherited from SoSeparator π¦
SoSFEnum renderCachingSoSFEnum boundingBoxCachingSoSFEnum renderCullingSoSFEnum pickCulling
okay bestie, that's part 1! part 2 is gonna have the protected member functions and the rest, so don't go anywhere π β¨
π«Ά Protected Member Functions (inherited from SoGroup)
these come bundled with the whole group situation, bestie, you don't write them yourself but they're yours:
virtual ~SoGroup()β the destructor, living its little teardown eravirtual SbBool readChildren(SoInput *in)β reads the children invirtual void copyContents(const SoFieldContainer *from, SbBool copyconnections)β copies all the contents across, and yeah it cares whether you're copying connections toovirtual SoNotRec createNotRec(void)β builds a notification recordvoid setOperation(const SoNotRec::OperationType opType=SoNotRec::UNSPECIFIED, const SoNode *cc=NULL, const SoNode *pc=NULL, const int ci=-1)β sets the operation, withopTypedefaulting toSoNotRec::UNSPECIFIED,cctoNULL,pctoNULLandcito-1
π§ Protected Member Functions (inherited from SoNode)
SoNode(void)β the constructorvirtual ~SoNode()β the destructor
πΈ Protected Member Functions (inherited from SoFieldContainer)
SoFieldContainer(void)β constructor behaviorvirtual ~SoFieldContainer()β destructor behavior
π Protected Member Functions (inherited from SoBase)
SoBase(void)β the constructorvirtual ~SoBase()β the destructorvirtual void destroy(void)β does the destroyingSbBool hasMultipleWriteRefs(void) constβ tells you if there are multiple write refsSbBool writeHeader(SoOutput *out, SbBool isgroup, SbBool isengine) constβ writes the header outvoid writeFooter(SoOutput *out) constβ writes the footer outvirtual const char *getFileFormatName(void) constβ hands you the file format name
β Static Protected Member Functions
static const SoFieldData **getFieldDataPtr(void)β the field data pointer, static style
π Static Protected Member Functions (inherited from SoLocateHighlight)
static const SoFieldData **getFieldDataPtr(void)β same deal, inherited fromSoLocateHighlight
π¦ Static Protected Member Functions (inherited from SoSeparator)
static const SoFieldData **getFieldDataPtr(void)β inherited fromSoSeparator
π Static Protected Member Functions (inherited from SoGroup)
static const SoFieldData **getFieldDataPtr(void)β inherited fromSoGroup
π Static Protected Member Functions (inherited from SoNode)
static const SoFieldData **getFieldDataPtr(void)β inherited fromSoNodestatic void setNextActionMethodIndex(int index)β sets the next action method indexstatic int getNextActionMethodIndex(void)β gets the next action method indexstatic void incNextActionMethodIndex(void)β increments the next action method indexstatic void setCompatibilityTypes(const SoType &nodetype, const uint32_t bitmask)β sets compatibility types fornodetypewith abitmask
π
Static Protected Member Functions (inherited from SoBase)
static uint32_t getCurrentWriteCounter(void)β gets the current write counterstatic void staticDataLock(void)β locks the static datastatic void staticDataUnlock(void)β unlocks it again, we love symmetry
π Additional Inherited Members
π Protected Types (inherited from SoBase)
enum BaseFlags { IS_ENGINE = 0x01, IS_GROUP = 0x02 }β the flag situation, withIS_ENGINEbeing0x01andIS_GROUPbeing0x02
ποΈ Protected Attributes (inherited from SoGroup)
SoChildList * childrenβ the children, literally right there
ποΈ Protected Attributes (inherited from SoNode)
SbUniqueId uniqueIdβ the unique id, iconic
ποΈ Protected Attributes (inherited from SoFieldContainer)
SbBool isBuiltInβ whether it's built in
π Static Protected Attributes (inherited from SoNode)
static SbUniqueId nextUniqueId = 1β starts at1, no capstatic int nextActionMethodIndex = 0β starts at0
β¨ Detailed Description β¨
okay so the whole vibe of SoWWWAnchor? it adds URL callbacks to the highlighted geometry. that's the moment.
so on top of highlighting the geometry sitting under the cursor, the application programmer can set callbacks. and it's not just one β you can set one callback for picking (that's the fetch callback) and one callback for highlighting. two whole moments.
#Inventor V2.1 ascii
WWWAnchor {
name "https://github.com/coin3d/coin/egg.iv"
description "Easter Egg"
Separator {
Transform { scaleFactor 0.8 1.2 0.8 }
Sphere { }
}
}
and here's the FILE FORMAT/DEFAULTS, bestie, all the default values laid out for you:
WWWAnchor {
renderCaching AUTO
boundingBoxCaching AUTO
renderCulling AUTO
pickCulling AUTO
color 0.3 0.3 0.3
style EMISSIVE
mode AUTO
name "<Undefined URL>"
description ""
map NONE
}
π Since
SGI Inventor 2.1 β she's been around, she's a legacy icon π
πΈ Member Enumeration Documentation πΈ
πΊοΈ enum SoWWWAnchor::Mapping
this enum literally says how a picked node's position should get mapped to the URL. that's its whole job.
Enumerators
NONEβ the position of the picked node is not mapped to the URL. nothing happens. no map. we rest.POINTβ the position of the picked node is mapped to the URL, as object space coordinates, by adding a parameter string onto the end of the URL. and listen, to make sure the URL works with all browsers, the coordinates get divided by commas that are sent as the hex representation. cute, right? okay here's the actual example: if a model by the name ofsim.wrlresided athttps://github.com/coin3d/and the picked point had the coordinates[1.5, 10, 6.77], the resulting URL would be"https://github.com/coin3d/sim.wrl?1.5%2c10%2c6.77". slay.
π Constructor & Destructor Documentation π
SoWWWAnchor::SoWWWAnchor(void)
Constructor. that's it, that's the note. β¨
SoWWWAnchor::~SoWWWAnchor() β [protected], [virtual]
Destructor. protected and virtual, the whole package.
π Member Function Documentation π
SoType SoWWWAnchor::getClassTypeId(void) β [static]
this static method hands you the SoType object that's associated with objects of this class. classic.
SoType SoWWWAnchor::getTypeId(void) const β [virtual]
returns the type identification of an object derived from a class that inherits SoBase. and what's it for? runtime type checking and "downward" casting, bestie. that's the point.
Reimplemented from SoLocateHighlight.
const SoFieldData **SoWWWAnchor::getFieldDataPtr(void) β [static], [protected]
ngl this API member is considered internal to the library, since it's 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 *SoWWWAnchor::getFieldData(void) const β [protected], [virtual]
returns a pointer to the class-wide field data storage object for this instance. and if there are no fields present? it returns NULL. periodt.
Reimplemented from SoLocateHighlight.
void SoWWWAnchor::setFullURLName(const SbString &url)
sets the full URL to url. and here's the important bit β if this is set, this URL will be used in callbacks instead of the URL set in SoWWWAnchor::name.
See also: SoWWWAnchor::getFullURLName()
const SbString &SoWWWAnchor::getFullURLName(void)
returns the full URL if it's been set by SoWWWAnchor::setFullURLName(). otherwise? it hands you back the contents of SoWWWAnchor::name. that's the fallback.
See also: SoWWWAnchor::setFullURLName()
void SoWWWAnchor::handleEvent(SoHandleEventAction *action) β [virtual]
the action method for SoHandleEventAction.
it inspects the event data coming from action, and processes it if it's something this node should actually react to.
and heads up β nodes that influence the relevant state variables for how event handling gets done also override this method.
Reimplemented from SoLocateHighlight.
void SoWWWAnchor::setFetchURLCallBack(SoWWWAnchorCB *f, void *userData) β [static]
sets the callback function f that gets called when a SoWWWAnchor node is clicked on. and this callback can, among other things, be used to provide a browser with the URL of this node. iconic.
the callback will be called with the URL, userData and a pointer to this node as arguments.
void SoWWWAnchor::setHighlightURLCallBack(SoWWWAnchorCB *f, void *userData) β [static]
sets the callback function f that gets called when a SoWWWAnchor node is highlighted. this callback can, among other things, be used to give the user a visual clue about which URL the node points to β for example by showing the URL as a string. main character behavior, honestly.
the callback will be called with the URL, userData and a pointer to this node as arguments.
void SoWWWAnchor::redrawHighlighted(SoAction *act, SbBool isNowHighlighting) β [protected], [virtual]
calls the highlight callback that you set up with SoWWWAnchor::setHighlightURLCallBack().
Reimplemented from SoLocateHighlight.
π¦ Member Data Documentation π¦
SoSFString SoWWWAnchor::nameβ the name of the URL which the anchor points toSoSFString SoWWWAnchor::descriptionβ the description of the URLSoSFEnum SoWWWAnchor::mapβ the enum describing how a node's position should be mapped to the URL
π Author
Generated automatically by Doxygen for Coin from the source code. (not a human author, just the doc machine doing its thing π )
and that's a wrap on SoWWWAnchor(3), bestie!! this one's version 4.0.10 and it's dated Thu Jun 25 2026 00:00:00 β go forth and anchor your URLs, 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