public class SoToHTMLAction extends SoAction
With HTML, image maps allow to specify regions of an image and assign a specific action to each region (a link can be associated to each map). When the region is activated by the user, the action is executed.
Each region of the image is determined by a subgraph which is under an SoWWWAnchor
group node.
The HTML file generated contains, in the following order:
SoWWWAnchor
group node.
For each region, the associated link is the URL defined either by the SoWWWAnchor
node.
SoToHTMLAction
.
See also:
Modifier and Type | Class and Description |
---|---|
static class |
SoToHTMLAction.Components
Components used to generate the image.
|
static class |
SoToHTMLAction.ImageFormats
Defines the format of the image.
|
static class |
SoToHTMLAction.ShapeTypes
Defines the different shape type for maps.
|
SoAction.AppliedCodes, SoAction.DistribModes, SoAction.PathCodes, SoAction.PathIndices
Inventor.ConstructorCommand
VERBOSE_LEVEL, ZeroHandle
Constructor and Description |
---|
SoToHTMLAction()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
closeHTMLFile()
Closes the HTML output file.
|
static void |
enableElement(java.lang.Class<? extends Inventor> t,
int stkIndex) |
SbColor |
getImageBackgroundColor()
Returns the image background color.
|
SoToHTMLAction.Components |
getImageComponents()
Returns the components of image.
|
SoToHTMLAction.ImageFormats |
getImageFormat()
Returns the image format.
|
float |
getImageQuality()
Returns the image quality.
|
java.lang.String |
getImageURLName()
Returns the URL name of image in the HTML file.
|
SoToHTMLAction.ShapeTypes |
getRegionShapeType()
Returns the region shape type.
|
SbViewportRegion |
getViewportRegion()
Returns viewport region for the image.
|
boolean |
isMapHighlight()
Returns anchor highlighting.
|
boolean |
openHTMLFile(java.lang.String filename)
Opens named file.
|
void |
resetHTMLBuffer()
Resets buffer of the HTML output for output again.
|
void |
setImageBackgroundColor(SbColor c)
Sets the image background color.
|
void |
setImageComponents(SoToHTMLAction.Components components)
Sets the components of image.
|
void |
setImageFormat(SoToHTMLAction.ImageFormats format)
Sets the image format.
|
void |
setImageQuality(float quality)
Sets the image quality.
|
void |
setImageURLName(java.lang.String name)
Sets the URL name of image in the HTML file, ("image.jpg" by default).
|
void |
setMapHighlight(boolean onOff)
Sets anchor highlighting.
|
void |
setRegionShapeType(SoToHTMLAction.ShapeTypes type)
Sets the region shape type.
|
void |
setViewportRegion(SbViewportRegion region)
Specifies viewport region for the image.
|
apply, apply, clearApplyResult, forwardTraversal, getContinueActionInBranchFlag, getCurPath, getDistribMode, getNodeAppliedTo, getOriginalPathListAppliedTo, getPathAppliedTo, getPathCode, getPathListAppliedTo, getPipeId, getSceneManager, getState, getWhatAppliedTo, hasTerminated, invalidateState, isBeingApplied, isLastPathListAppliedTo, isUsingAlternateRep, nullAction, postDelayedTraversal, preDelayedTraversal, resetContinueActionInBranchFlag, setPipeId, setSceneManager, setUpState, stopActionInBranch, traverse, useAlternateRep
dispose, getNativeResourceHandle
public void setImageURLName(java.lang.String name)
public java.lang.String getImageURLName()
public boolean openHTMLFile(java.lang.String filename)
public SbViewportRegion getViewportRegion()
public void closeHTMLFile()
public void resetHTMLBuffer()
public void setImageQuality(float quality)
public static void enableElement(java.lang.Class<? extends Inventor> t, int stkIndex)
public SoToHTMLAction.ImageFormats getImageFormat()
public float getImageQuality()
public void setViewportRegion(SbViewportRegion region)
public void setMapHighlight(boolean onOff)
public boolean isMapHighlight()
public void setImageBackgroundColor(SbColor c)
SbColor(0,0,0)
by default.public SoToHTMLAction.ShapeTypes getRegionShapeType()
public void setRegionShapeType(SoToHTMLAction.ShapeTypes type)
public SbColor getImageBackgroundColor()
public void setImageFormat(SoToHTMLAction.ImageFormats format)
public SoToHTMLAction.Components getImageComponents()
public void setImageComponents(SoToHTMLAction.Components components)
Generated on July 31, 2019, Copyright © Thermo Fisher Scientific. All rights reserved. http://www.openinventor.com