Class CoolTipProbe
java.lang.Object
gov.nih.mipav.view.renderer.J3D.surfaceview.rfaview.CoolTipProbe
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
FieldsModifier and TypeFieldDescription(package private) javax.vecmath.Color3fAttenuation lighting setup.private javax.media.j3d.AppearanceDOCUMENT ME!private com.sun.j3d.utils.geometry.ConeIndicator probe cone shape.private javax.media.j3d.TransformGroupTranformgroup of the indicator cone shape.private com.sun.j3d.utils.geometry.ConeCone geometry shape part of the CoolTip probe.private javax.media.j3d.TransformGroupThe probe tip cone geometry shape.private javax.media.j3d.TransformGroupThe root transform group the the CoolTip probe.private javax.media.j3d.BranchGroupCoolTip probe branch group.private com.sun.j3d.utils.geometry.CylinderIndicator probe cylinder shape.private javax.media.j3d.TransformGroupTransformgroup of the indicator cylinder shape.private com.sun.j3d.utils.geometry.CylinderCylinder geometry shape part of the CoolTip probe.private javax.media.j3d.TransformGroupThe probe tip cylinder geometry shape.(package private) javax.vecmath.Color3fDOCUMENT ME!(package private) javax.vecmath.Color3fDOCUMENT ME!(package private) javax.vecmath.Color3fThe indicator probe's green color.private javax.media.j3d.BranchGroupIndicator probe branch group.protected com.sun.j3d.utils.picking.PickCanvasAgent to set the CoolTip probe pickable.(package private) javax.vecmath.Color3fDOCUMENT ME!private javax.media.j3d.SwitchThe switch group that switch between CoolTip probe and indicator probe.(package private) javax.vecmath.Color3fThe CoolTip probe's gray color.private floatY original coordinate value. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidenableEntryPointRotation(boolean flag) Enable the probe to rotate around the entry point.protected booleanfindProbe(javax.media.j3d.Shape3D pickedShape) Check whether the probe being picked or not.javax.media.j3d.TransformGroupgetProbe()Get the root transform group of the CoolTip probe.protected voidinit()Initialize the CoolTip probe geometry shape.protected voidsetProbeCoordinate(float value) Set the probe translation in the local coordinate system.protected voidsetProbeGreenColor(boolean flag) Switch the default probe between color cyan and color green.
-
Field Details
-
pickCanvas
protected com.sun.j3d.utils.picking.PickCanvas pickCanvasAgent to set the CoolTip probe pickable. -
ambientColor
javax.vecmath.Color3f ambientColorAttenuation lighting setup. -
diffuseColor
javax.vecmath.Color3f diffuseColorDOCUMENT ME! -
emissiveColor
javax.vecmath.Color3f emissiveColorDOCUMENT ME! -
green
javax.vecmath.Color3f greenThe indicator probe's green color. -
sepcualarColor
javax.vecmath.Color3f sepcualarColorDOCUMENT ME! -
yellow
javax.vecmath.Color3f yellowThe CoolTip probe's gray color. -
appTip
private javax.media.j3d.Appearance appTipDOCUMENT ME! -
coneIndicator
private com.sun.j3d.utils.geometry.Cone coneIndicatorIndicator probe cone shape. -
coneIndicatorTG
private javax.media.j3d.TransformGroup coneIndicatorTGTranformgroup of the indicator cone shape. -
coneTip
private com.sun.j3d.utils.geometry.Cone coneTipCone geometry shape part of the CoolTip probe. -
coneTipTG
private javax.media.j3d.TransformGroup coneTipTGThe probe tip cone geometry shape. -
coolTipProbe
private javax.media.j3d.TransformGroup coolTipProbeThe root transform group the the CoolTip probe. -
coolTipProbeBG
private javax.media.j3d.BranchGroup coolTipProbeBGCoolTip probe branch group. -
cylinderIndicator
private com.sun.j3d.utils.geometry.Cylinder cylinderIndicatorIndicator probe cylinder shape. -
cylinderIndicatorTG
private javax.media.j3d.TransformGroup cylinderIndicatorTGTransformgroup of the indicator cylinder shape. -
cylinderTip
private com.sun.j3d.utils.geometry.Cylinder cylinderTipCylinder geometry shape part of the CoolTip probe. -
cylinderTipTG
private javax.media.j3d.TransformGroup cylinderTipTGThe probe tip cylinder geometry shape. -
indicatorProbeBG
private javax.media.j3d.BranchGroup indicatorProbeBGIndicator probe branch group. -
switchGroup
private javax.media.j3d.Switch switchGroupThe switch group that switch between CoolTip probe and indicator probe. -
yOrigin
private float yOriginY original coordinate value.
-
-
Constructor Details
-
CoolTipProbe
public CoolTipProbe()Constructor to build the CoolTip probe geometry shape.
-
-
Method Details
-
enableEntryPointRotation
public void enableEntryPointRotation(boolean flag) Enable the probe to rotate around the entry point.- Parameters:
flag- booleantruemeans around the entry point,falsearound 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
trueprobe picked,falseprobe 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- booleantruegreen color,falsegray color.
-