Class CoolTipProbe
- java.lang.Object
-
- gov.nih.mipav.view.renderer.J3D.surfaceview.rfaview.CoolTipProbe
-
public class CoolTipProbe extends java.lang.Object
The CoolTip probe has its own geometry and type of burning. This class builds the geometry shape of the CoolTip probe.- Author:
- Evan McCreedy
-
-
Field Summary
Fields Modifier and Type Field Description (package private) javax.vecmath.Color3f
ambientColor
Attenuation lighting setup.private javax.media.j3d.Appearance
appTip
DOCUMENT ME!private com.sun.j3d.utils.geometry.Cone
coneIndicator
Indicator probe cone shape.private javax.media.j3d.TransformGroup
coneIndicatorTG
Tranformgroup of the indicator cone shape.private com.sun.j3d.utils.geometry.Cone
coneTip
Cone geometry shape part of the CoolTip probe.private javax.media.j3d.TransformGroup
coneTipTG
The probe tip cone geometry shape.private javax.media.j3d.TransformGroup
coolTipProbe
The root transform group the the CoolTip probe.private javax.media.j3d.BranchGroup
coolTipProbeBG
CoolTip probe branch group.private com.sun.j3d.utils.geometry.Cylinder
cylinderIndicator
Indicator probe cylinder shape.private javax.media.j3d.TransformGroup
cylinderIndicatorTG
Transformgroup of the indicator cylinder shape.private com.sun.j3d.utils.geometry.Cylinder
cylinderTip
Cylinder geometry shape part of the CoolTip probe.private javax.media.j3d.TransformGroup
cylinderTipTG
The probe tip cylinder geometry shape.(package private) javax.vecmath.Color3f
diffuseColor
DOCUMENT ME!(package private) javax.vecmath.Color3f
emissiveColor
DOCUMENT ME!(package private) javax.vecmath.Color3f
green
The indicator probe's green color.private javax.media.j3d.BranchGroup
indicatorProbeBG
Indicator probe branch group.protected com.sun.j3d.utils.picking.PickCanvas
pickCanvas
Agent to set the CoolTip probe pickable.(package private) javax.vecmath.Color3f
sepcualarColor
DOCUMENT ME!private javax.media.j3d.Switch
switchGroup
The switch group that switch between CoolTip probe and indicator probe.(package private) javax.vecmath.Color3f
yellow
The CoolTip probe's gray color.private float
yOrigin
Y original coordinate value.
-
Constructor Summary
Constructors Constructor Description CoolTipProbe()
Constructor to build the CoolTip probe geometry shape.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
enableEntryPointRotation(boolean flag)
Enable the probe to rotate around the entry point.protected boolean
findProbe(javax.media.j3d.Shape3D pickedShape)
Check whether the probe being picked or not.javax.media.j3d.TransformGroup
getProbe()
Get the root transform group of the CoolTip probe.protected void
init()
Initialize the CoolTip probe geometry shape.protected void
setProbeCoordinate(float value)
Set the probe translation in the local coordinate system.protected void
setProbeGreenColor(boolean flag)
Switch the default probe between color cyan and color green.
-
-
-
Field Detail
-
pickCanvas
protected com.sun.j3d.utils.picking.PickCanvas pickCanvas
Agent to set the CoolTip probe pickable.
-
ambientColor
javax.vecmath.Color3f ambientColor
Attenuation lighting setup.
-
diffuseColor
javax.vecmath.Color3f diffuseColor
DOCUMENT ME!
-
emissiveColor
javax.vecmath.Color3f emissiveColor
DOCUMENT ME!
-
green
javax.vecmath.Color3f green
The indicator probe's green color.
-
sepcualarColor
javax.vecmath.Color3f sepcualarColor
DOCUMENT ME!
-
yellow
javax.vecmath.Color3f yellow
The CoolTip probe's gray color.
-
appTip
private javax.media.j3d.Appearance appTip
DOCUMENT ME!
-
coneIndicator
private com.sun.j3d.utils.geometry.Cone coneIndicator
Indicator probe cone shape.
-
coneIndicatorTG
private javax.media.j3d.TransformGroup coneIndicatorTG
Tranformgroup of the indicator cone shape.
-
coneTip
private com.sun.j3d.utils.geometry.Cone coneTip
Cone geometry shape part of the CoolTip probe.
-
coneTipTG
private javax.media.j3d.TransformGroup coneTipTG
The probe tip cone geometry shape.
-
coolTipProbe
private javax.media.j3d.TransformGroup coolTipProbe
The root transform group the the CoolTip probe.
-
coolTipProbeBG
private javax.media.j3d.BranchGroup coolTipProbeBG
CoolTip probe branch group.
-
cylinderIndicator
private com.sun.j3d.utils.geometry.Cylinder cylinderIndicator
Indicator probe cylinder shape.
-
cylinderIndicatorTG
private javax.media.j3d.TransformGroup cylinderIndicatorTG
Transformgroup of the indicator cylinder shape.
-
cylinderTip
private com.sun.j3d.utils.geometry.Cylinder cylinderTip
Cylinder geometry shape part of the CoolTip probe.
-
cylinderTipTG
private javax.media.j3d.TransformGroup cylinderTipTG
The probe tip cylinder geometry shape.
-
indicatorProbeBG
private javax.media.j3d.BranchGroup indicatorProbeBG
Indicator probe branch group.
-
switchGroup
private javax.media.j3d.Switch switchGroup
The switch group that switch between CoolTip probe and indicator probe.
-
yOrigin
private float yOrigin
Y original coordinate value.
-
-
Method Detail
-
enableEntryPointRotation
public void enableEntryPointRotation(boolean flag)
Enable the probe to rotate around the entry point.- Parameters:
flag
- booleantrue
means around the entry point,false
around the origin.
-
getProbe
public javax.media.j3d.TransformGroup getProbe()
Get the root transform group of the CoolTip probe.- Returns:
- TransformGroup the root of the CoolTip probe.
-
findProbe
protected boolean findProbe(javax.media.j3d.Shape3D pickedShape)
Check whether the probe being picked or not.- Parameters:
pickedShape
- picked geometry shape.- Returns:
- boolean
true
probe picked,false
probe not picked.
-
init
protected void init()
Initialize the CoolTip probe geometry shape.
-
setProbeCoordinate
protected void setProbeCoordinate(float value)
Set the probe translation in the local coordinate system.- Parameters:
value
- y coordinate value of the local coordinate system.
-
setProbeGreenColor
protected void setProbeGreenColor(boolean flag)
Switch the default probe between color cyan and color green.- Parameters:
flag
- booleantrue
green color,false
gray color.
-
-