public class AppearanceCreator extends Object implements AxisConstants
| Constructor and Description |
|---|
AppearanceCreator(VoltexVolume volume)
Constructor.
|
AppearanceCreator(VoltexVolume volume,
Color3f color,
float transparency)
Initializes this AppearanceCreator with the given image data, color and
transparency values.
|
| Modifier and Type | Method and Description |
|---|---|
Appearance |
getAppearance(int direction,
int index)
Returns the Appearance object for the specified direction and index.
|
boolean |
getOpaqueTextures()
Returns whether the created textures are supposed to be opaque.
|
Texture2D |
getTexture(int axis,
int index)
Returns the texture for the specified axis and slice
|
Texture2D |
getTexture(int axis,
int index,
VoltexVolume vol)
Returns the texture for the specified axis and slice
|
TexCoordGeneration |
getTg(int direction)
Get the TextureGeneration of the specified direction.
|
void |
release()
Release all stored data.
|
void |
setColor(Color3f c)
Set the color for all the textures that were loaded by this
AppearanceCreator.
|
void |
setOpaqueTextures(boolean opaque)
This flag indicates whether textures are opaque or not.
|
void |
setThreshold(float f)
Set the threshold for all the textures that were loaded by this
AppearanceCreator.
|
void |
setTransparency(float f)
Set the transparency for all the textures that were loaded by this
AppearanceCreator.
|
void |
setVolume(VoltexVolume v)
Change the image data of this AppearanceCreator
|
void |
updateTextureMode()
Update the texture mode, after the volume has changed.
|
public AppearanceCreator(VoltexVolume volume)
volume - public AppearanceCreator(VoltexVolume volume, Color3f color, float transparency)
volume - color - transparency - public void release()
public void setVolume(VoltexVolume v)
v - public boolean getOpaqueTextures()
public void setOpaqueTextures(boolean opaque)
public void updateTextureMode()
public Appearance getAppearance(int direction, int index)
direction - index - public void setTransparency(float f)
f - public void setThreshold(float f)
f - public void setColor(Color3f c)
c - public Texture2D getTexture(int axis, int index)
axis - index - public Texture2D getTexture(int axis, int index, VoltexVolume vol)
axis - index - vol - public TexCoordGeneration getTg(int direction)
direction - Copyright © 2015–2021 Fiji. All rights reserved.