|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectvisualize.RayCasting
public class RayCasting
The Class RayCasting
is used for computing the 3-D view using RayCasting or Maximum-Intensity-Projection.
Field Summary | |
---|---|
static int |
FBO_BACK
|
static int |
FBO_FRONT
|
static int |
FBO_TEXTURE_BACK
|
static int |
FBO_TEXTURE_FRONT
|
static int |
GRADIENT_TEX
|
static int |
T_COLORS
|
static int |
VOLUME_TEX
|
static int |
X_DIR
|
static int |
Y_DIR
|
static int |
Z_DIR
|
Constructor Summary | |
---|---|
RayCasting(javax.media.opengl.glu.GLU glu)
Creates a new RayCasting-object. |
Method Summary | |
---|---|
static void |
checkLogInfo(javax.media.opengl.GL gl,
int shader)
Prints out the Info-Log of the shader passed in. |
void |
createFBO(javax.media.opengl.GL gl)
For raycasting the coordinates of the rays are needed. |
void |
initShader(javax.media.opengl.GL gl)
Loads the vertex-shader from raycasting.vsh and the fragment-shader from raycasting.fsh. |
void |
render(javax.media.opengl.GL gl)
Is called continuously when the raycasting tab in the MainForm is activated and renders the 3-D Scene to the screen. |
static void |
setShader(boolean mip)
Defines if raycasting or Maximum-Intensity-Projection is used in the fragment-shader. |
static void |
setStepSize(int stepS)
Sets the step-size for computing the 3-D scene |
void |
setTexSize(float[] texSize)
Sets the size of the volume-texture. |
static void |
setTransferFunctionChanged(boolean transColors)
Called when the transfer-function is changed by the user. |
void |
setVolumeTex(int[] volumeTex)
Sets the volume-texture |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int X_DIR
public static final int Y_DIR
public static final int Z_DIR
public static final int FBO_TEXTURE_FRONT
public static final int FBO_FRONT
public static final int FBO_TEXTURE_BACK
public static final int FBO_BACK
public static final int T_COLORS
public static final int VOLUME_TEX
public static final int GRADIENT_TEX
Constructor Detail |
---|
public RayCasting(javax.media.opengl.glu.GLU glu)
glu
- provides access to the OpenGL Utility Library (GLU).Method Detail |
---|
public void initShader(javax.media.opengl.GL gl)
gl
- public static void checkLogInfo(javax.media.opengl.GL gl, int shader)
gl
- basic interface to OpenGLshader
- shader which is going to be checkedpublic void createFBO(javax.media.opengl.GL gl)
gl
- basic interface to OpenGLpublic void render(javax.media.opengl.GL gl)
gl
- basic interface to OpenGLpublic void setTexSize(float[] texSize)
texSize
- texture-size in Float-array form.public void setVolumeTex(int[] volumeTex)
volumeTex
- volume-texture in integer-array form.public static void setShader(boolean mip)
mip
- Boolean describing if Maximum-Intensity-Projection is used or not.public static void setStepSize(int stepS)
stepS
- step-size in integer form.public static void setTransferFunctionChanged(boolean transColors)
transColors
- If this boolean is true the content of the GradientColorPanel has changed. Otherwise the LineDrawPanel-content has changed.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |