shape.
Figure 13.6. Polygon image map
This allows your browser to keep track of the pointer location in the image map and highlight a particular region whenever you enter it. By default, highlighting is on and can be disabled if necessary.
C++ :
C# :
Java :
The current highlighting value can be retrieved by:
C++ :
C# :
Java :
The apply() method is inherited from the SoAction base class. Apply the action to the group where you want traversal to start. If you want to generate an image map of the whole scene graph, apply the action to the root of the scene graph.
C++ :
C# :
Java :
Applying the action will automatically generate the “.html” file and the image file. The “.html” file will include the MAP tag with definitions of the regions and the IMG tag with the URL of the image file. For example, the previous figure showing a RECTANGLE border shape could have the following HTML file:
Example : HTML file and image map
the openHTMLFile() method:
C++ :
C# :
Java :
The example:$OIVHOME/src/Inventor/examples/Features/IvToHTMLAction/IvToHTMLAction.cxx puts into practice the previously described steps.