public class J3DAppearance
extends javax.media.j3d.Appearance
Modifier and Type | Field and Description |
---|---|
static J3DAppearance[] |
axisApps
Appearance for axes
|
static J3DAppearance |
cellApp
cell has a unique appearance
|
static J3DAppearance |
highlightApp
highlight appearance
|
ALLOW_COLORING_ATTRIBUTES_READ, ALLOW_COLORING_ATTRIBUTES_WRITE, ALLOW_LINE_ATTRIBUTES_READ, ALLOW_LINE_ATTRIBUTES_WRITE, ALLOW_MATERIAL_READ, ALLOW_MATERIAL_WRITE, ALLOW_POINT_ATTRIBUTES_READ, ALLOW_POINT_ATTRIBUTES_WRITE, ALLOW_POLYGON_ATTRIBUTES_READ, ALLOW_POLYGON_ATTRIBUTES_WRITE, ALLOW_RENDERING_ATTRIBUTES_READ, ALLOW_RENDERING_ATTRIBUTES_WRITE, ALLOW_TEXGEN_READ, ALLOW_TEXGEN_WRITE, ALLOW_TEXTURE_ATTRIBUTES_READ, ALLOW_TEXTURE_ATTRIBUTES_WRITE, ALLOW_TEXTURE_READ, ALLOW_TEXTURE_UNIT_STATE_READ, ALLOW_TEXTURE_UNIT_STATE_WRITE, ALLOW_TEXTURE_WRITE, ALLOW_TRANSPARENCY_ATTRIBUTES_READ, ALLOW_TRANSPARENCY_ATTRIBUTES_WRITE
Constructor and Description |
---|
J3DAppearance(java.awt.Color color,
float factor)
Constructor to build a J3DAppearance from color/transparency factors.
|
J3DAppearance(Layer layer,
boolean visible)
Constructor to build a J3DAppearance from a Layer.
|
Modifier and Type | Method and Description |
---|---|
Layer |
getLayer() |
void |
set3DColor(java.lang.Object material,
java.awt.Color color)
Method to set color in 3D.
|
void |
set3DVisibility(boolean visible)
Method to set visibility in Appearance objects from external tools
|
static void |
setAxesVisibility(boolean value)
Set visibility of appearance assigned to the axes
|
static void |
setAxisAppearanceValues(java.lang.Object initValue)
Method to access appearance of axes in 3D
|
static void |
setCellAppearanceValues(java.lang.Object initValue)
Method to access appearance for cells in 3D
|
static void |
setCellVisibility(boolean value)
Set visibility of appearance assigned to cell bounding box
|
void |
setGraphics(EGraphics graphics) |
static void |
setHighlightedAppearanceValues(java.lang.Object initValue)
Method to access appearance of highlighted nodes in 3D
|
void |
setTransparencyAndRenderingAttributes(javax.media.j3d.TransparencyAttributes transparencyAttributes,
boolean rendering) |
cloneNodeComponent, duplicateNodeComponent, getColoringAttributes, getLineAttributes, getMaterial, getPointAttributes, getPolygonAttributes, getRenderingAttributes, getTexCoordGeneration, getTexture, getTextureAttributes, getTextureUnitCount, getTextureUnitState, getTextureUnitState, getTransparencyAttributes, setColoringAttributes, setLineAttributes, setMaterial, setPointAttributes, setPolygonAttributes, setRenderingAttributes, setTexCoordGeneration, setTexture, setTextureAttributes, setTextureUnitState, setTextureUnitState, setTransparencyAttributes
cloneNodeComponent, duplicateNodeComponent, getDuplicateOnCloneTree, setDuplicateOnCloneTree
clearCapability, clearCapabilityIsFrequent, duplicateSceneGraphObject, getCapability, getCapabilityIsFrequent, getName, getUserData, isCompiled, isLive, setCapability, setCapabilityIsFrequent, setName, setUserData, toString, updateNodeReferences
public static J3DAppearance cellApp
public static J3DAppearance highlightApp
public static J3DAppearance[] axisApps
public J3DAppearance(Layer layer, boolean visible)
layer
- the Electric Layer to use for appearance.visible
- true to make it visible.public J3DAppearance(java.awt.Color color, float factor)
color
- the Color to render.factor
- transparency, which runs from 0.0 for opaque to 1.0 for transparent.public Layer getLayer()
public void setGraphics(EGraphics graphics)
public static void setCellVisibility(boolean value)
value
- public static void setAxesVisibility(boolean value)
value
- public void setTransparencyAndRenderingAttributes(javax.media.j3d.TransparencyAttributes transparencyAttributes, boolean rendering)
public void set3DVisibility(boolean visible)
visible
- true if visibility is onpublic void set3DColor(java.lang.Object material, java.awt.Color color)
material
- material to change if availablecolor
- public static void setAxisAppearanceValues(java.lang.Object initValue)
initValue
- false if appearance has to be changed according to user valuepublic static void setHighlightedAppearanceValues(java.lang.Object initValue)
initValue
- false if appearance has to be changed according to user valuepublic static void setCellAppearanceValues(java.lang.Object initValue)
initValue
- no null if appearance has to be changed according to user value. Using
this mechanism to avoid the creation of new Boolean() just for the checking