SoWWWAnchor(3)

πŸ“¦
version 4.0.10 Β· 4 versions
, in fedora 43, fedora 44

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) const
  • SoWWWAnchor (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) const
  • virtual int findChild (const SoNode *node) const
  • virtual int getNumChildren (void) const
  • virtual 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) const
  • virtual void addWriteReference (SoOutput *out, SbBool isfromfield=FALSE)

πŸ¦‹ Public Member Functions inherited from SoNode πŸ¦‹

  • void setOverride (const SbBool state)
  • SbBool isOverride (void) const
  • void setNodeType (const NodeType type)
  • NodeType getNodeType (void) const
  • virtual SoNode * copy (SbBool copyconnections=FALSE) const
  • virtual void grabEventsSetup (void)
  • virtual void grabEventsCleanup (void)
  • virtual void startNotify (void)
  • SbUniqueId getNodeId (void) const
  • virtual void writeInstance (SoOutput *out)
  • virtual SoNode * addToCopyDict (void) const
  • virtual SoFieldContainer * copyThroughConnection (void) const

πŸ’œ Public Member Functions inherited from SoFieldContainer πŸ’œ

  • void setToDefaults (void)
  • SbBool hasDefaultValues (void) const
  • SbBool fieldsAreEqual (const SoFieldContainer *container) const
  • void copyFieldValues (const SoFieldContainer *container, SbBool copyconnections=FALSE)
  • SbBool set (const char *const fielddata)
  • void get (SbString &fielddata)
  • virtual int getFields (SoFieldList &l) const
  • virtual int getAllFields (SoFieldList &l) const
  • virtual SoField * getField (const SbName &name) const
  • virtual SoField * getEventIn (const SbName &name) const
  • virtual SoField * getEventOut (const SbName &name) const
  • SbBool getFieldName (const SoField *const field, SbName &name) const
  • SbBool enableNotify (const SbBool flag)
  • SbBool isNotifyEnabled (void) const
  • SbBool set (const char *fielddata, SoInput *input)
  • void get (SbString &fielddata, SoOutput *out)
  • virtual SbBool validateNewFieldValue (SoField *field, void *newval)
  • SbBool getIsBuiltIn (void) const
  • virtual void getFieldsMemorySize (size_t &managed, size_t &unmanaged) const
  • void setUserData (void *userdata) const
  • void * getUserData (void) const

🌟 Public Member Functions inherited from SoBase 🌟

  • void ref (void) const
  • void unref (void) const
  • void unrefNoDelete (void) const
  • int32_t getRefCount (void) const
  • void touch (void)
  • SbBool isOfType (SoType type) const β€” bestie, this one hands you back TRUE if the type of this object is either the exact same type or inherited from type. no cap.
  • virtual SbName getName (void) const
  • virtual 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) const
  • SbBool 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 the SoType object 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 the SoType object 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 name
  • SoSFString description
  • SoSFEnum map

πŸŽ€ Public Attributes inherited from SoLocateHighlight πŸŽ€

  • SoSFColor color
  • SoSFEnum style
  • SoSFEnum mode

πŸ¦‹ Public Attributes inherited from SoSeparator πŸ¦‹

  • SoSFEnum renderCaching
  • SoSFEnum boundingBoxCaching
  • SoSFEnum renderCulling
  • SoSFEnum 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 era
  • virtual SbBool readChildren(SoInput *in) β€” reads the children in
  • virtual void copyContents(const SoFieldContainer *from, SbBool copyconnections) β€” copies all the contents across, and yeah it cares whether you're copying connections too
  • virtual SoNotRec createNotRec(void) β€” builds a notification record
  • void setOperation(const SoNotRec::OperationType opType=SoNotRec::UNSPECIFIED, const SoNode *cc=NULL, const SoNode *pc=NULL, const int ci=-1) β€” sets the operation, with opType defaulting to SoNotRec::UNSPECIFIED, cc to NULL, pc to NULL and ci to -1

🧚 Protected Member Functions (inherited from SoNode)

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

🌸 Protected Member Functions (inherited from SoFieldContainer)

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

πŸ’œ Protected Member Functions (inherited from SoBase)

  • SoBase(void) β€” the constructor
  • virtual ~SoBase() β€” the destructor
  • virtual void destroy(void) β€” does the destroying
  • SbBool hasMultipleWriteRefs(void) const β€” tells you if there are multiple write refs
  • SbBool writeHeader(SoOutput *out, SbBool isgroup, SbBool isengine) const β€” writes the header out
  • void writeFooter(SoOutput *out) const β€” writes the footer out
  • virtual 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 from SoLocateHighlight

πŸ¦‹ Static Protected Member Functions (inherited from SoSeparator)

  • static const SoFieldData **getFieldDataPtr(void) β€” inherited from SoSeparator

🌈 Static Protected Member Functions (inherited from SoGroup)

  • static const SoFieldData **getFieldDataPtr(void) β€” inherited from SoGroup

πŸ‘‘ Static Protected Member Functions (inherited from SoNode)

  • static const SoFieldData **getFieldDataPtr(void) β€” inherited from SoNode
  • 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 nodetype with a bitmask

πŸ’… Static Protected Member Functions (inherited from SoBase)

  • static uint32_t getCurrentWriteCounter(void) β€” gets the current write counter
  • static void staticDataLock(void) β€” locks the static data
  • static 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, with IS_ENGINE being 0x01 and IS_GROUP being 0x02

πŸ—‚οΈ 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 at 1, no cap
  • static int nextActionMethodIndex = 0 β€” starts at 0

✨ 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 of sim.wrl resided at https://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 to
  • SoSFString SoWWWAnchor::description β€” the description of the URL
  • SoSFEnum 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