Class RegularProbe
- java.lang.Object
-
- gov.nih.mipav.view.renderer.J3D.surfaceview.rfaview.RegularProbe
-
public class RegularProbe extends java.lang.ObjectTitle: 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
Fields Modifier and Type Field Description (package private) javax.vecmath.Color3fambientColorAttenuation lighting setup.private javax.media.j3d.AppearanceappTipDOCUMENT ME!private com.sun.j3d.utils.geometry.ConeconeIndicatorIndicator probe cone shape.private javax.media.j3d.TransformGroupconeIndicatorTGTranformgroup of the indicator cone shape.private com.sun.j3d.utils.geometry.ConeconeTipCone geometry shape part of the regular probe.private javax.media.j3d.TransformGroupconeTipTGThe probe tip cone geometry shape.private com.sun.j3d.utils.geometry.CylindercylinderIndicatorIndicator probe cylinder shape.private javax.media.j3d.TransformGroupcylinderIndicatorTGTransformgroup of the indicator cylinder shape.private com.sun.j3d.utils.geometry.CylindercylinderTipCylinder geometry shape part of the regular probe.private javax.media.j3d.TransformGroupcylinderTipTGThe probe tip cylinder geometry shape.(package private) javax.vecmath.Color3fdiffuseColorDOCUMENT ME!(package private) javax.vecmath.Color3femissiveColorDOCUMENT ME!(package private) javax.vecmath.Color3fgreenThe indicator probe's green color.private javax.media.j3d.BranchGroupindicatorProbeBGIndicator probe branch group.protected com.sun.j3d.utils.picking.PickCanvaspickCanvasAgent to set the regular probe pickable.private javax.media.j3d.TransformGroupregularProbeThe root transform group the the regular probe.private javax.media.j3d.BranchGroupregularProbeBGRegular probe branch group.(package private) javax.vecmath.Color3fsepcualarColorDOCUMENT ME!private javax.media.j3d.SwitchswitchGroupThe switch group that switch between regular probe and indicator probe.(package private) javax.vecmath.Color3fyellowThe regular probe's gray color.private floatyOriginY original coordinate value.
-
Constructor Summary
Constructors Constructor Description RegularProbe()Constructor to build the regular probe geometry shape.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidenableEntryPointRotation(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 Detail
-
pickCanvas
protected com.sun.j3d.utils.picking.PickCanvas pickCanvas
Agent to set the regular 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 regular 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 regular probe.
-
coneTipTG
private javax.media.j3d.TransformGroup coneTipTG
The probe tip cone geometry shape.
-
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 regular 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.
-
regularProbe
private javax.media.j3d.TransformGroup regularProbe
The root transform group the the regular probe.
-
regularProbeBG
private javax.media.j3d.BranchGroup regularProbeBG
Regular probe branch group.
-
switchGroup
private javax.media.j3d.Switch switchGroup
The switch group that switch between regular 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- 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.
-
-