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
or SoVRMLAnchor
group node.
The HTML file generated contains, in the following order:
SoWWWAnchor
or SoVRMLAnchor
group node. SoWWWAnchor
or SoVRMLAnchor
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
Modifier and Type | Field and Description |
---|---|
static int |
BMP_FORMAT
Deprecated.
Use
SoToHTMLAction.ImageFormats.BMP_FORMAT instead. |
static int |
CIRCLE
Deprecated.
Use
SoToHTMLAction.ShapeTypes.CIRCLE instead. |
static int |
JPEG_FORMAT
Deprecated.
Use
SoToHTMLAction.ImageFormats.JPEG_FORMAT instead. |
static int |
LUMINANCE
Deprecated.
Use
SoToHTMLAction.Components.LUMINANCE instead. |
static int |
LUMINANCE_TRANSPARENCY
Deprecated.
Use
SoToHTMLAction.Components.LUMINANCE_TRANSPARENCY instead. |
static int |
NONE
Deprecated.
Use
SoToHTMLAction.ShapeTypes.NONE instead. |
static int |
POLYGON
Deprecated.
Use
SoToHTMLAction.ShapeTypes.POLYGON instead. |
static int |
RECTANGLE
Deprecated.
Use
SoToHTMLAction.ShapeTypes.RECTANGLE instead. |
static int |
RGB
Deprecated.
Use
SoToHTMLAction.Components.RGB instead. |
static int |
RGB_TRANSPARENCY
Deprecated.
Use
SoToHTMLAction.Components.RGB_TRANSPARENCY instead. |
ALL, BELOW_PATH, CLUSTER_ONLY, IN_PATH, LOCAL_ONLY, NO_PATH, NODE, OFF_PATH, PATH, PATH_LIST
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, 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, getAddress, getNativeResourceHandle, startInternalThreads, stopInternalThreads
@Deprecated public static final int NONE
SoToHTMLAction.ShapeTypes.NONE
instead.@Deprecated public static final int RECTANGLE
SoToHTMLAction.ShapeTypes.RECTANGLE
instead.@Deprecated public static final int CIRCLE
SoToHTMLAction.ShapeTypes.CIRCLE
instead.@Deprecated public static final int POLYGON
SoToHTMLAction.ShapeTypes.POLYGON
instead.@Deprecated public static final int LUMINANCE
SoToHTMLAction.Components.LUMINANCE
instead.@Deprecated public static final int LUMINANCE_TRANSPARENCY
SoToHTMLAction.Components.LUMINANCE_TRANSPARENCY
instead.@Deprecated public static final int RGB
SoToHTMLAction.Components.RGB
instead.@Deprecated public static final int RGB_TRANSPARENCY
SoToHTMLAction.Components.RGB_TRANSPARENCY
instead.@Deprecated public static final int BMP_FORMAT
SoToHTMLAction.ImageFormats.BMP_FORMAT
instead.@Deprecated public static final int JPEG_FORMAT
SoToHTMLAction.ImageFormats.JPEG_FORMAT
instead.public boolean openHTMLFile(java.lang.String filename)
public void closeHTMLFile()
public void setImageQuality(float quality)
public SbColor getImageBackgroundColor()
public void setImageFormat(SoToHTMLAction.ImageFormats format)
public void setImageComponents(SoToHTMLAction.Components components)
public SoToHTMLAction.Components getImageComponents()
public SoToHTMLAction.ImageFormats getImageFormat()
public void setMapHighlight(boolean onOff)
public SoToHTMLAction.ShapeTypes getRegionShapeType()
public SbViewportRegion getViewportRegion()
public void setRegionShapeType(SoToHTMLAction.ShapeTypes type)
public static void enableElement(java.lang.Class<? extends Inventor> t, int stkIndex)
public boolean isMapHighlight()
public void setImageBackgroundColor(SbColor c)
SbColor(0,0,0)
by default.public void resetHTMLBuffer()
public float getImageQuality()
public java.lang.String getImageURLName()
public void setViewportRegion(SbViewportRegion region)
public void setImageURLName(java.lang.String name)
Generated on January 23, 2025, Copyright © Thermo Fisher Scientific. All rights reserved. http://www.openinventor.com