Class RegularProbe
java.lang.Object
gov.nih.mipav.view.renderer.J3D.surfaceview.rfaview.RegularProbe
Title: RegualorProbe
Description: Regular probe has its own geometry and type of burning. This class builds the geometry shape of the regular probe.
- Author:
- Ruida Cheng
-
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 regular probe.private javax.media.j3d.TransformGroupThe probe tip cone geometry shape.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 regular 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 regular probe pickable.private javax.media.j3d.TransformGroupThe root transform group the the regular probe.private javax.media.j3d.BranchGroupRegular probe branch group.(package private) javax.vecmath.Color3fDOCUMENT ME!private javax.media.j3d.SwitchThe switch group that switch between regular probe and indicator probe.(package private) javax.vecmath.Color3fThe regular 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 regular probe.protected voidinit()Initialize the regular 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 regular 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 regular 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 regular probe. -
coneTipTG
private javax.media.j3d.TransformGroup coneTipTGThe probe tip cone geometry shape. -
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 regular probe. -
cylinderTipTG
private javax.media.j3d.TransformGroup cylinderTipTGThe probe tip cylinder geometry shape. -
indicatorProbeBG
private javax.media.j3d.BranchGroup indicatorProbeBGIndicator probe branch group. -
regularProbe
private javax.media.j3d.TransformGroup regularProbeThe root transform group the the regular probe. -
regularProbeBG
private javax.media.j3d.BranchGroup regularProbeBGRegular probe branch group. -
switchGroup
private javax.media.j3d.Switch switchGroupThe switch group that switch between regular probe and indicator probe. -
yOrigin
private float yOriginY original coordinate value.
-
-
Constructor Details
-
RegularProbe
public RegularProbe()Constructor to build the regular 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 regular probe.- Returns:
- TransformGroup the root of the regular 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 regular 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.
-