#include <Inventor/nodes/SoWWWAnchor.h>
Inheritance diagram for SoWWWAnchor:
Public Types | |
enum | Mapping { NONE, POINT } |
Public Member Functions | |
SoWWWAnchor (void) | |
void | setFullURLName (const SbString &url) |
const SbString & | getFullURLName (void) |
virtual void | handleEvent (SoHandleEventAction *action) |
Static Public Member Functions | |
void | initClass (void) |
void | setFetchURLCallBack (SoWWWAnchorCB *f, void *userData) |
void | setHighlightURLCallBack (SoWWWAnchorCB *f, void *userData) |
Public Attributes | |
SoSFString | name |
SoSFString | description |
SoSFEnum | map |
Protected Member Functions | |
virtual | ~SoWWWAnchor () |
virtual void | redrawHighlighted (SoAction *act, SbBool isNowHighlighting) |
In addition to highlighting geometry under the cursor, the application programmer can set callbacks. It is possible to set one callback for picking, the fetch callback, and one callback for highlighting.
#Inventor V2.1 ascii WWWAnchor { name "http://www.coin3d.org/Coin/egg.iv" description "Easter Egg" Separator { Transform { scaleFactor 0.8 1.2 0.8 } Sphere { } } }
|
|
Constructor. |
|
Destructor. |
|
Sets up initialization for data common to all instances of this class, like submitting necessary information to the Coin type system. Reimplemented from SoLocateHighlight. |
|
Sets the full URL to url. If this is set, this URL will be used in callbacks instead of the URL set in SoWWWAnchor::name.
|
|
Returns the full URL if it's set by SoWWWAnchor::setFullURLName(). Otherwise the contents of SoWWWAnchor::name is returned.
|
|
Action method for SoHandleEventAction. Inspects the event data from action, and processes it if it is something which this node should react to. Nodes influencing relevant state variables for how event handling is done also overrides this method. Reimplemented from SoLocateHighlight. |
|
Sets the callback function f that is called when a SoWWWAnchor node is clicked on. This callback can among other things be used to provide a browser with the URL of this node. The callback will be called with the URL, userData and a pointer to this node as arguments. |
|
Sets the callback function f that is called when a SoWWWAnchor node is highlighted. This callback can among other things be used to provide the user with a visual clue on which URL the node points to, for example by showing the URL as a string. The callback will be called with the URL, userData and a pointer to this node as arguments. |
|
Calls the highlight callback set up with SoWWWAnchor::setHighlightURLCallBack(). Reimplemented from SoLocateHighlight. |
|
The name of the URL which the anchor points to. |
|
The description of the URL. |
|
Enum describing how a node's position should be mapped to the URL. |