Class: OpacityMapVolumeStyle

X3DOM
Component: VolumeRendering

.nodeTypes. OpacityMapVolumeStyle

HTML Encoding and Default Values

<OpacityMapVolumeStyle enabled='true' lightFactor='1.2' metadata='X3DMetadataObject' opacityFactor='6.0' surfaceNormals='x3dom.nodeTypes.Texture' transferFunction='x3dom.nodeTypes.Texture' type='"simple"' ></OpacityMapVolumeStyle>

Inheritance


Constructor

OpacityMapVolumeStyle(ctx)

Constructor for OpacityMapVolumeStyle

Parameters:
Name Type Argument Default Description
ctx Object <optional>
null context object, containing initial settings like namespace The OpacityMapVolumeStyle node specifies that the associated volume data is going to be rendered using a transfer function. The original opacity is mapped to a color with a function stored as a texture (transfer function).

Fields

These are the X3D / X3DOM fields of this node. Values should usually be received / set as strings via DOM functions (i.e., using setAttribute("myFieldName", "myFieldValue") and getAttribute("myFieldName")).
Name Type Default Value Range Inheritance Standard Description
enabled SFBool true X3DVolumeRenderStyleNode Specifies whether the render style is enabled or disabled.
lightFactor SFFloat 1.2 The lightFactor field is a factor to specify the amount of global light to be considered on each sampled point along the ray traversal.
metadata SFNode X3DMetadataObject X3DNode Field to add metadata information
opacityFactor SFFloat 6.0 The opacityFactor field is a factor to specify the amount of opacity to be considered on each sampled point along the ray traversal.
surfaceNormals SFNode Texture X3DComposableVolumeRenderStyleNode The surfaceNormals field allows to provide the normals of the volume data. It takes an ImageTextureAtlas of the same dimensions of the volume data. If it is not provided, it is computed on the fly.
transferFunction SFNode Texture The transferFunction field is a texture that is going to be used to map each voxel value to a specific color output.
type SFString "simple" NYI!!