Package gov.nih.mipav.view.renderer
Class SceneState
- java.lang.Object
-
- gov.nih.mipav.view.renderer.SceneState
-
- All Implemented Interfaces:
java.io.Serializable
public class SceneState extends java.lang.Object implements java.io.SerializableCollectiing the current virtualization toolbox values for both volume and slices render dialogs. This class is used by mouse recorder to save values instantly.- Author:
- Neva Cherniavsky
- See Also:
JDialogBase, Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description booleanaClipVisibleBoolean visibility values for x, y, z, arbitrary clipping slider frames.floataxisAngleSave the current.floataxisXSave the current.floataxisYSave the current.floataxisZSave the current.intclipSliceAClipping slider values for the triplanar clipping slider x, y, z, arbitrary.intclipSliceXClipping slider values for the triplanar clipping slider x, y, z, arbitrary.intclipSliceXNegClipping slider values for the triplanar clipping slider x, y, z negative.intclipSliceYClipping slider values for the triplanar clipping slider x, y, z, arbitrary.intclipSliceYNegClipping slider values for the triplanar clipping slider x, y, z negative.intclipSliceZClipping slider values for the triplanar clipping slider x, y, z, arbitrary.intclipSliceZNegClipping slider values for the triplanar clipping slider x, y, z negative.booleanis6PlaneClippingBoolean flag to indicate if the 6 plane clipping mode is active.booleanisClipArbiPickedBoolean flag to indicate if the arbitary clipping mode is active.booleanisVolOpacityChangedBoolean indicator for volume opacity changed.booleanisVolumeDisplayMode3DBoolean indicator for the current diaplay mode, volume render mode or slice render mode.private static longserialVersionUIDUse serialVersionUID for interoperability.intsurfaceOpacitySurface opacity slider value of the surface dialog.float[]transformCurrent sceneRoot transform.TransferFunctiontransformFuncCurrrent tranform function of the volume render look up table.intwhichCompCurrent active volume opacity control of the volume render.intxx, y, z triplanar slider values.booleanxClipVisibleBoolean visibility values for x, y, z, arbitrary clipping slider frames.booleanxNegClipVisibleBoolean visibility values for x, y, z negative clipping slider frames.intxOpacityx, y, z triplanar opacity slider values.booleanxVisibleBoolean visibility values for x, y, z triplanar.intyx, y, z triplanar slider values.booleanyClipVisibleBoolean visibility values for x, y, z, arbitrary clipping slider frames.booleanyNegClipVisibleBoolean visibility values for x, y, z negative clipping slider frames.intyOpacityx, y, z triplanar opacity slider values.booleanyVisibleBoolean visibility values for x, y, z triplanar.intzx, y, z triplanar slider values.booleanzClipVisibleBoolean visibility values for x, y, z, arbitrary clipping slider frames.booleanzNegClipVisibleBoolean visibility values for x, y, z negative clipping slider frames.intzOpacityx, y, z triplanar opacity slider values.booleanzVisibleBoolean visibility values for x, y, z triplanar.
-
Constructor Summary
Constructors Constructor Description SceneState(int x, int y, int z, int xOp, int yOp, int zOp, boolean xVisible, boolean yVisible, boolean zVisible, int surfaceOpacity, int clipA, int clipX, int clipY, int clipZ, int clipXNeg, int clipYNeg, int clipZNeg, boolean aClipV, boolean xClipV, boolean yClipV, boolean zClipV, boolean xNegClipV, boolean yNegClipV, boolean zNegClipV, int _whichComp, TransferFunction _transformFunc, boolean _isVolOpacityChanged, boolean _isVolumeDisplayMode3D, boolean _is6PlaneClipping, float _axisX, float _axisY, float _axisZ, float _axisAngle, boolean _isClipArbiPicked)Construct the SceneState object associate with the current visualization toobox values.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidactionPerformed(java.awt.event.ActionEvent event)Stub method for classes that extend this Object.java.lang.StringtoString()Print out the present screen state.
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
Use serialVersionUID for interoperability.- See Also:
- Constant Field Values
-
axisX
public float axisX
Save the current.
-
axisY
public float axisY
Save the current.
-
axisZ
public float axisZ
Save the current.
-
axisAngle
public float axisAngle
Save the current.
-
clipSliceX
public int clipSliceX
Clipping slider values for the triplanar clipping slider x, y, z, arbitrary.
-
clipSliceY
public int clipSliceY
Clipping slider values for the triplanar clipping slider x, y, z, arbitrary.
-
clipSliceZ
public int clipSliceZ
Clipping slider values for the triplanar clipping slider x, y, z, arbitrary.
-
clipSliceA
public int clipSliceA
Clipping slider values for the triplanar clipping slider x, y, z, arbitrary.
-
clipSliceXNeg
public int clipSliceXNeg
Clipping slider values for the triplanar clipping slider x, y, z negative.
-
clipSliceYNeg
public int clipSliceYNeg
Clipping slider values for the triplanar clipping slider x, y, z negative.
-
clipSliceZNeg
public int clipSliceZNeg
Clipping slider values for the triplanar clipping slider x, y, z negative.
-
is6PlaneClipping
public boolean is6PlaneClipping
Boolean flag to indicate if the 6 plane clipping mode is active.
-
isClipArbiPicked
public boolean isClipArbiPicked
Boolean flag to indicate if the arbitary clipping mode is active.
-
isVolOpacityChanged
public boolean isVolOpacityChanged
Boolean indicator for volume opacity changed.
-
isVolumeDisplayMode3D
public boolean isVolumeDisplayMode3D
Boolean indicator for the current diaplay mode, volume render mode or slice render mode.
-
surfaceOpacity
public int surfaceOpacity
Surface opacity slider value of the surface dialog.
-
transform
public float[] transform
Current sceneRoot transform.
-
transformFunc
public TransferFunction transformFunc
Currrent tranform function of the volume render look up table.
-
whichComp
public int whichComp
Current active volume opacity control of the volume render.
-
x
public int x
x, y, z triplanar slider values.
-
y
public int y
x, y, z triplanar slider values.
-
z
public int z
x, y, z triplanar slider values.
-
xClipVisible
public boolean xClipVisible
Boolean visibility values for x, y, z, arbitrary clipping slider frames.
-
yClipVisible
public boolean yClipVisible
Boolean visibility values for x, y, z, arbitrary clipping slider frames.
-
zClipVisible
public boolean zClipVisible
Boolean visibility values for x, y, z, arbitrary clipping slider frames.
-
aClipVisible
public boolean aClipVisible
Boolean visibility values for x, y, z, arbitrary clipping slider frames.
-
xNegClipVisible
public boolean xNegClipVisible
Boolean visibility values for x, y, z negative clipping slider frames.
-
yNegClipVisible
public boolean yNegClipVisible
Boolean visibility values for x, y, z negative clipping slider frames.
-
zNegClipVisible
public boolean zNegClipVisible
Boolean visibility values for x, y, z negative clipping slider frames.
-
xOpacity
public int xOpacity
x, y, z triplanar opacity slider values.
-
yOpacity
public int yOpacity
x, y, z triplanar opacity slider values.
-
zOpacity
public int zOpacity
x, y, z triplanar opacity slider values.
-
xVisible
public boolean xVisible
Boolean visibility values for x, y, z triplanar.
-
yVisible
public boolean yVisible
Boolean visibility values for x, y, z triplanar.
-
zVisible
public boolean zVisible
Boolean visibility values for x, y, z triplanar.
-
-
Constructor Detail
-
SceneState
public SceneState(int x, int y, int z, int xOp, int yOp, int zOp, boolean xVisible, boolean yVisible, boolean zVisible, int surfaceOpacity, int clipA, int clipX, int clipY, int clipZ, int clipXNeg, int clipYNeg, int clipZNeg, boolean aClipV, boolean xClipV, boolean yClipV, boolean zClipV, boolean xNegClipV, boolean yNegClipV, boolean zNegClipV, int _whichComp, TransferFunction _transformFunc, boolean _isVolOpacityChanged, boolean _isVolumeDisplayMode3D, boolean _is6PlaneClipping, float _axisX, float _axisY, float _axisZ, float _axisAngle, boolean _isClipArbiPicked)Construct the SceneState object associate with the current visualization toobox values.- Parameters:
x- triplanar x slider value.y- triplanar y slider value.z- triplanar z slider value.xOp- triplaner x opacity slider value.yOp- triplaner y opacity slider value.zOp- triplaner z opacity slider value.xVisible- boolean for the triplanar x slider frame visibility value.yVisible- boolean for the triplanar y slider frame visibility value.zVisible- boolean for the triplanar z slider frame visibility value.surfaceOpacity- surface opacity slider value for the surface dialog.clipA- clip slider arbitrary value.clipX- clip slider x value.clipY- clip slider y value.clipZ- clip slider z value.clipXNeg- clip slider x negative value.clipYNeg- clip slider y negative value.clipZNeg- clip slider z negative value.aClipV- clip slider arbitrary visibility value.xClipV- clip slider x boolean visibility value.yClipV- clip slider y boolean visibility value.zClipV- clip slider z boolean visibility value.xNegClipV- clip slider x negative boolean visiblity value.yNegClipV- clip slider y negative boolean visiblity value.zNegClipV- clip slider z negative boolean visiblity value._whichComp- volume control current active component._transformFunc- volume control instant tranfer function._isVolOpacityChanged- boolean indicator for volume control opacity changed._isVolumeDisplayMode3D- current diaplay mode, volume render or slice render._is6PlaneClipping- If clipping is 6-plane clipped, choose true._axisX- Location of the X-axis?_axisY- Location of the Y-axis?_axisZ- Location of the Z-axis?_axisAngle- Angle the clipping plane makes with the X-Y plane?_isClipArbiPicked- If clipping is arbitrarily picked, choose true.
-
-
Method Detail
-
actionPerformed
public void actionPerformed(java.awt.event.ActionEvent event)
Stub method for classes that extend this Object.- Parameters:
event- DOCUMENT ME!
-
toString
public java.lang.String toString()
Print out the present screen state.- Overrides:
toStringin classjava.lang.Object- Returns:
- DOCUMENT ME!
-
-