Class BurnBase
java.lang.Object
gov.nih.mipav.view.renderer.J3D.surfaceview.rfaview.BurnBase
Title: BurnBase
Description: This class defined the basic bunring point image sence graph structure.
- Author:
- Ruida Cheng
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected intCurrent burning point index.private javax.media.j3d.BranchGroupThe root branch group of the burning point.private intBurning type flag, default to the default burning point type.private BurnCoolTipViewCoolTip burning point reference that represents the CoolTip probe ablation type.static intDefine the CoolTip burn type value.private BurnBaseViewDefault burning point reference that represents the default probe ablation type.static intDefine the default burn type value.(package private) intimage extents.(package private) intimage extents.(package private) intimage extents.private BurnHeatViewHeat burning point reference that represents the thermal probe ablation type.static intDefine the heat burn type value.private VectorMask burning center attribute.private BurnRegularViewRegular burning point reference that represents the regular probe ablation type.static intDefine the regular burn type value.private SurfaceRenderSurface renderer reference.private BitSetburning point volume mask. -
Constructor Summary
ConstructorsConstructorDescriptionBurnBase(SurfaceRender _surfaceRender, JPanelProbe _probePanel) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionvoidactiveBurn(int type) Active the current burning point type.floatcalcVolume(SurfaceAttributes surface, TreatmentInformation treatment) Calculate the current burning point volume.private voidBuild the root of the burning point branch group, and attached the root to the parent scene root transform group.voiddispose()Dispose memory.voidenableBurnLabels(boolean flag) Attach or detach burn labels.intfindBurnPoint(javax.media.j3d.Shape3D pickedShape) Check whether the burning sphere is picked or not.javax.media.j3d.BranchGroupGet the root of the burning point.javax.vecmath.Color4fgetColor()Get the current burning point color.floatGet the volume difference btw the tumor surface and burning sphere packings.getMask()Get the burning sphere or ellipsoid mask.javax.vecmath.Point3fGet the burning sphere radius as a point format ( semiX, Y, Z ).javax.media.j3d.Shape3DgetShape(javax.media.j3d.BranchGroup root) Get the shape of the burning point surface.javax.media.j3d.BranchGroupThe the burning point geometry sphere branch group.javax.vecmath.Vector3fGet the burning point center coordinates.floatGet the burning point volume.private voidinit()Setup the initial image scene graph structure.voidRemove all the burning point centers.voidremoveBurnCenter(int index) Remove the burning center element.voidstartBurn(float tipLen, float time) Show the the burning procedure.
-
Field Details
-
DEFAULTBURN
public static int DEFAULTBURNDefine the default burn type value. -
HEATBURN
public static int HEATBURNDefine the heat burn type value. -
REGULARBURN
public static int REGULARBURNDefine the regular burn type value. -
COOLTIPBURN
public static int COOLTIPBURNDefine the CoolTip burn type value. -
burnIndex
protected int burnIndexCurrent burning point index. -
extentX
int extentXimage extents. -
extentY
int extentYimage extents. -
extentZ
int extentZimage extents. -
burnRootParentBG
private javax.media.j3d.BranchGroup burnRootParentBGThe root branch group of the burning point. -
burnType
private int burnTypeBurning type flag, default to the default burning point type. -
coolTipBurn
CoolTip burning point reference that represents the CoolTip probe ablation type. -
defaultBurn
Default burning point reference that represents the default probe ablation type. -
heatBurn
Heat burning point reference that represents the thermal probe ablation type. -
maskBurnVector
Mask burning center attribute. -
regularBurn
Regular burning point reference that represents the regular probe ablation type. -
surfaceRender
Surface renderer reference. -
volumeMask
burning point volume mask.
-
-
Constructor Details
-
BurnBase
Constructor. Initializes the burning point image scene graph structure and builds three types of burning point.- Parameters:
_surfaceRender- Surface Renderer reference._probePanel- JPanelProbe reference.
-
-
Method Details
-
activeBurn
public void activeBurn(int type) Active the current burning point type.- Parameters:
type- burning point type value.
-
calcVolume
Calculate the current burning point volume.- Parameters:
surface- DOCUMENT ME!treatment- DOCUMENT ME!- Returns:
- float burning point volume in voxels.
-
dispose
public void dispose()Dispose memory. -
enableBurnLabels
public void enableBurnLabels(boolean flag) Attach or detach burn labels.- Parameters:
flag-trueattach burn label,falsenot attach burn label.
-
findBurnPoint
public int findBurnPoint(javax.media.j3d.Shape3D pickedShape) Check whether the burning sphere is picked or not.- Parameters:
pickedShape- sphere burning shape.- Returns:
- int burning point index
-
getBurnRootParentBG
public javax.media.j3d.BranchGroup getBurnRootParentBG()Get the root of the burning point.- Returns:
- BranchGroup The root burning point branch group.
-
getColor
public javax.vecmath.Color4f getColor()Get the current burning point color.- Returns:
- Color4f burning point surface color appearance.
-
getDiffVolume
public float getDiffVolume()Get the volume difference btw the tumor surface and burning sphere packings.- Returns:
- volume volume difference in mm^3.
-
getMask
Get the burning sphere or ellipsoid mask.- Returns:
- BitSet mask burning point mask.
-
getRadius
public javax.vecmath.Point3f getRadius()Get the burning sphere radius as a point format ( semiX, Y, Z ).- Returns:
- Point3f sphere radius.
-
getShape
public javax.media.j3d.Shape3D getShape(javax.media.j3d.BranchGroup root) Get the shape of the burning point surface.- Parameters:
root- BranchGroup- Returns:
- Shape3D
-
getSphereBG
public javax.media.j3d.BranchGroup getSphereBG()The the burning point geometry sphere branch group.- Returns:
- BranchGroup branch group of the sphere.
-
getTranslate
public javax.vecmath.Vector3f getTranslate()Get the burning point center coordinates. Called by the probe control panel to show the current burning point center.- Returns:
- Vector3f burning point center coordinate.
-
getVolume
public float getVolume()Get the burning point volume.- Returns:
- volume burning point volume.
-
removeAllBurnCenters
public void removeAllBurnCenters()Remove all the burning point centers. -
removeBurnCenter
public void removeBurnCenter(int index) Remove the burning center element.- Parameters:
index- removed burning center index
-
startBurn
public void startBurn(float tipLen, float time) Show the the burning procedure.- Parameters:
tipLen- the length of the probe tip in cmtime- burning procedure time duration.
-
createImageSceneGraph
private void createImageSceneGraph()Build the root of the burning point branch group, and attached the root to the parent scene root transform group. -
init
private void init()Setup the initial image scene graph structure.
-