Class VolumeTriPlanarRender
java.lang.Object
WildMagic.LibApplications.OpenGLApplication.Application
WildMagic.LibApplications.OpenGLApplication.JavaApplication
WildMagic.LibApplications.OpenGLApplication.JavaApplication3D
gov.nih.mipav.view.renderer.WildMagic.GPURenderBase
gov.nih.mipav.view.renderer.WildMagic.VolumeTriPlanarRenderBase
gov.nih.mipav.view.renderer.WildMagic.VolumeTriPlanarRender
- All Implemented Interfaces:
com.jogamp.opengl.GLEventListener,SpaceNavigatorListener,NavigationBehavior.Callback,KeyListener,MouseListener,MouseMotionListener,MouseWheelListener,Serializable,EventListener,ChangeListener
- Direct Known Subclasses:
VolumeTriPlanerRenderDTI
public class VolumeTriPlanarRender
extends VolumeTriPlanarRenderBase
implements com.jogamp.opengl.GLEventListener, KeyListener, MouseMotionListener, MouseListener, NavigationBehavior.Callback
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleanprivate intprivate JPanelAnnotationAnimationprivate String[]private VOIVectorprivate HashMap<String, VolumeSurface> private intprotected RendererListenerprotected VolumeTriPlanarInterfaceParent user-interface and display frame.private VOILatticeManagerInterfaceprivate HashMap<String, VolumeSurface[]> protected booleanprivate static final longprotected booleanprivate floatFields inherited from class gov.nih.mipav.view.renderer.WildMagic.VolumeTriPlanarRenderBase
animateSlice, annotatePtsCounter, annotatePtsList, caps, fSample_mouseDragged, fSample_mouseReleased, gl_height, gl_width, glp, init, isAnnotateEnabled, isMouseControlEnabled, isNavigationEnabled, isPathPlanningEnabled, kGeometryBranchPath, kPoly, kPolyNode, latticeClip, latticeClipAxes, latticeClipBox, latticeClipExtents, latticeClipPos, m_afArbEquation, m_afArbEquationInv, m_akSceneTarget, m_akSlicesColor, m_bArbClipOn, m_bCrop, m_bDisplay, m_bDisplaySecond, m_bDropper, m_bErase, m_bFirstDisplay, m_bFirstRender, m_bGeodesicEnabled, m_bPaint, m_bPaintCan, m_bPaintEnabled, m_bPickCorrespondence, m_bPlay4D, m_bPlay4DVOIs, m_bResetImages, m_bUpdateCenterOnDisplay, m_bWriteImage, m_fAnimateRate, m_iAnimateCount, m_iBrushSize, m_iExtractLevel, m_iStereo, m_kArbitraryClip, m_kArbitraryClipInv, m_kDTIDisplay, m_kFBO, m_kFlyPathGraphCurve, m_kNewCenter, m_kNormalColorPathUnvisited, m_kPaintColor, m_kSculptor, m_kSlices, m_kVolumeBox, m_kVolumeClip, m_kVolumeCube, m_kVolumeRayCast, m_pkPlane, m_pkScreenCamera, m_spkPlaneEffect, ms_akLUTTexture, ms_NumHistogramLUTs, navigationBehavior, profile, sharedDrawable, sharedRenderer, sliceDir, sphereClip, sphereRadiusFields inherited from class gov.nih.mipav.view.renderer.WildMagic.GPURenderBase
currentLocation, defaultVelocityRotational, defaultVelocityTranslational, dpiScale, hyperstack, hyperstackColormap, isSpaceNavCodeRunning, m_akLights, m_bDispose, m_bDoClip, m_bExtract, m_bFirstDrag, m_bInit, m_bModified, m_bMouseDrag, m_bPickPending, m_bShared, m_bSnapshot, m_bSurfaceMaskUpdate, m_bSurfaceUpdate, m_bTestFrameRate, m_bVisible, m_fMax, m_fX, m_fY, m_fZ, m_iCaptureFPS, m_iScreenCaptureCounter, m_iXPick, m_iYPick, m_kAnimator, m_kCuller, m_kDeleteList, m_kDisplayList, m_kPicker, m_kSceneToWorld, m_kTranslate, m_kVolumeImageA, m_kVolumeImageA_New, m_kVolumeImageA_Old, m_kVolumeImageB, m_kVolumeImageB_New, m_kVolumeImageB_Old, m_kWinLevel, m_kXRotate, m_kYRotate, m_kZRotate, m_spkCull, m_spkScene, mouseRot, nearPlane, rotPower, rotScalar, transPower, transScalar, updateBoundingCube, zVector, ZXDistanceStep, ZYDistanceStep, ZZDistanceStepFields inherited from class WildMagic.LibApplications.OpenGLApplication.JavaApplication3D
cameraParams, m_akWorldAxis, m_bCameraMoveable, m_bDArrowPressed, m_bEndPressed, m_bHomePressed, m_bLArrowPressed, m_bLInsertPressed, m_bObjectZoomed, m_bPgDnPressed, m_bPgUpPressed, m_bRArrowPressed, m_bRDeletePressed, m_bTrackBallDown, m_bUArrowPressed, m_bUseTrackBall, m_dAccumulatedTime, m_dFrameRate, m_dLastTime, m_fRotSpeed, m_fRotSpeedFactor, m_fTrnSpeed, m_fTrnSpeedFactor, m_fXDrag0, m_fXTrack0, m_fXTrack1, m_fYDrag0, m_fYTrack0, m_fYTrack1, m_fZoomSpeed, m_iAccumulatedFrameCount, m_iDoPitch, m_iDoRoll, m_iDoYaw, m_iFrameCount, m_iMaxTimer, m_iMouseButton, m_iTimer, m_kSaveRotate, m_mouseRotSpeed, m_spkCamera, m_spkMotionObject, pitchRotationAngle, rollRotationAngle, xCameraMove, xCameraTurn, yawRotationAngle, yCameraMove, yCameraTurn, zCameraMoveFields inherited from class WildMagic.LibApplications.OpenGLApplication.JavaApplication
m_acWindowTitle, m_eBuffering, m_eDepth, m_eFormat, m_eMultisampling, m_eStencil, m_iHeight, m_iWidth, m_iXPosition, m_iYPosition, m_kBackgroundColor, m_pkRenderer -
Constructor Summary
ConstructorsConstructorDescriptionVolumeTriPlanarRender(VolumeImage[] images, WildMagic.LibGraphics.Rendering.Texture colormap) VolumeTriPlanarRender(VolumeTriPlanarInterface kParent, com.jogamp.opengl.util.Animator kAnimator, VolumeImage kVolumeImageA, VolumeImage kVolumeImageB) Construct the Volume/Surface/Tri-Planar renderer.VolumeTriPlanarRender(VolumeTriPlanarInterface kParent, VolumeImage kVolumeImageA, VolumeImage kVolumeImageB) Construct the Volume/Surface/Tri-Planar renderer.VolumeTriPlanarRender(VolumeTriPlanarRender kShared, com.jogamp.opengl.awt.GLCanvas kCanvas, VolumeTriPlanarInterface kParent, VolumeImage kVolumeImageA, VolumeImage kVolumeImageB) Construct the Volume/Surface/Tri-Planar renderer. -
Method Summary
Modifier and TypeMethodDescriptionvoidadd3DMarker(VOI textVOI, boolean automaticLabel, boolean multiSelect) voidadd3DMarker(VOI textVOI, boolean automaticLabel, boolean multiSelect, boolean isShift) voidaddAnimationVOIs(VOIVector vois, JPanelAnnotationAnimation annotationAnimationPanel) voidaddAnnotationPoint(WildMagic.LibFoundation.Mathematics.Vector3f point, WildMagic.LibFoundation.Mathematics.Vector3f scannerPt) Add the annotation pointvoidaddConfiguredListener(RendererListener listener) voidaddNeurite(String neuriteName, String[] names, WildMagic.LibFoundation.Mathematics.ColorRGB color) private voidaddSphere(WildMagic.LibFoundation.Mathematics.Vector3f center, int index) voidaddSphereVOIs(VOI annotations) private voidvoidannotationVOIsUpdate(int value) booleanapplySculpt(boolean bAll) Apply the sculpt region to the volume.voidvoidClear the annotated pathprivate voidcreateAnnotatePoint(WildMagic.LibFoundation.Mathematics.Vector3f kPosition) Create a new Annotation point at the position specified.private WildMagic.LibGraphics.SceneGraph.PolylinecreateBranchPathGeometryScaled(int iBranch) Translate the path points from image coordinate to view volume coordinate.private WildMagic.LibGraphics.SceneGraph.TriMeshcreateNeuriteSurface(VOIContour neurite, WildMagic.LibFoundation.Mathematics.ColorRGB color, float radius) protected voidCalled by the init() function.private WildMagic.LibGraphics.Surfaces.TubeSurfacecreateTube(VOIContour neurite) voidvoiddisplay(com.jogamp.opengl.GLAutoDrawable arg0) private booleandisplayedNeurite(String neuriteName) voiddisplayNeurite(String neuriteName, boolean display) voiddispose(com.jogamp.opengl.GLAutoDrawable kDrawable) memory cleanup.booleanvoidGenerate the path planning path.voidgetAnnotationInfo(String name, boolean[] display, Color[] color, float[] diameter, boolean[] displayLabel, Color[] labelColor) WildMagic.LibFoundation.Mathematics.Vector3fgetPositionScaled(WildMagic.LibFoundation.Mathematics.Vector3f kPoint) Scaled coordinates for the current position along the path for viewing.getSelectedVOI(String name) booleanbooleanbooleanvoidPart of the KeyListener interface.voidbooleanmodify3DMarker(WildMagic.LibFoundation.Mathematics.Vector3f startPt, WildMagic.LibFoundation.Mathematics.Vector3f endPt, WildMagic.LibFoundation.Mathematics.Vector3f pt) voidRotates the object with a virtual trackball:voidRotates the object with a virtual trackball:voidRotates the object with a virtual trackball:voidmoveSelectedPoint(WildMagic.LibFoundation.Mathematics.Vector3f direction) protected voidPick()Picking.private booleanPickSlice3D(WildMagic.LibFoundation.Mathematics.Vector3f kPos, WildMagic.LibFoundation.Mathematics.Vector3f kDir, WildMagic.LibFoundation.Mathematics.Vector3f maxPt) private voidPickVolume3D(WildMagic.LibFoundation.Mathematics.Vector3f kPos, WildMagic.LibFoundation.Mathematics.Vector3f kDir, WildMagic.LibFoundation.Mathematics.Vector3f maxPt) voidplay4DVOIs(boolean bOn) private voidprocessRightMouseDrag(MouseEvent kEvent) If the right mouse button is pressed and dragged. processRightMouseDrag updates the HistoLUT window and level (contrast and brightness)voidreCreateScene(VolumeImage image) Called by the init() function.booleanselect3DMarker(WildMagic.LibFoundation.Mathematics.Vector3f startPt, WildMagic.LibFoundation.Mathematics.Vector3f endPt, WildMagic.LibFoundation.Mathematics.Vector3f pt, boolean rightMouse, boolean multiSelect) voidsetAnnotationDiameter(String name, float diameter) voidsetAnnotationMode(boolean _isAnnotateEnabled) voidsetAnnotationVOIColor(String name, WildMagic.LibFoundation.Mathematics.ColorRGB color) voidsetCameraCenter(WildMagic.LibFoundation.Mathematics.Vector3f kCenter) Update the camera in 3D view window.voidsetCameraViewRotationDegree(int degree) Set camera view rotation degreevoidvoidsetDisplayAnnotation(String name, boolean display) voidsetDisplayAnnotationLabel(String name, boolean display) voidsetMouseControlFlythru(boolean _isMouseControl) voidsetNeuriteColor(String neuriteName, WildMagic.LibFoundation.Mathematics.ColorRGB color) voidsetPathPlanningFlythru(boolean _isPathPlanning) voidSetup the Navigation scene graph view for debugging purposevoidsetVOILatticeManager(VOILatticeManagerInterface newVOIInterface) private voidsetWindowLevel(float fX, float fY, boolean first) private WildMagic.LibFoundation.Curves.NaturalSpline3smoothCurve(VOIContour curve, float[] time) voidtoggleNavigation(boolean _isNavigationEnabled) Toggle Navigation mode.voidundoSculpt(boolean bAll) Undo applying the sculpt region to the volume.protected voidupdate4D(boolean bForward) protected voidupdate4DVOIs(boolean bForward) private voidupdateContour(VOIContour contour, VOI positions, String[] names) private voidupdateNeurite(String neuriteName, String[] names, WildMagic.LibFoundation.Mathematics.ColorRGB color) voidupdateSceneNodePoint(String name, WildMagic.LibFoundation.Mathematics.Vector3f position) Currently only being used to update the picking pointprotected voidUpdates the displayed objects based on any user mouse rotation.voidupdateSlicesCenter(WildMagic.LibFoundation.Mathematics.Vector3f loc) Update the bottom 3 planar view centervoidprotected voidupdateVOIs(VOIVector kVOIs) voidviewChanged(NavigationBehavior behavior, int iEvent) Navigation behavior callback handlerbooleanWrites a the frame buffer as a .jpg image to disk.Methods inherited from class gov.nih.mipav.view.renderer.WildMagic.VolumeTriPlanarRenderBase
addAnimationLattice, addAnimationVOIs, addGeodesic, addSurface, addSurface, addSurface, addTract, addVolumeVOI, applyClipFilter, blend, clearSculpt, clipAnnotations, CMPMode, CreateRenderTarget, cropClipVolume, deleteVOIs, displayArbitraryClipPlane, displayBoundingBox, displayClipPlane, displayClipPlane, displayNode, displayOrientationCube, displaySurface, displayVOIs, displayVolumeRaycast, displayVolumeSlices, disposeShared, doClip, drawVOI, DRRMode, enableArbitraryClipPlane, enableClipPlane, enableEyeClipPlane, enableEyeInvClipPlane, enableGeodesic, enablePaint, enableSculpt, eraseAllPaint, extractMeshFromVolume, getABBlend, getArbitratyClip, getArbitratyClipOn, getClip, getClipAEEnable, getClipColor, getClipDisplay, getClipEnable, getClipInv, getClipInvDisplay, getClipInvEnable, getContainingPanel, getDPIScale, getGradientMagnitude, getGroupColor, getHistogramLUTTexture, getHistogramLUTTextureIndex, getIPD, getMaterial, getOpacity, getPolylines, getSculpt, getSculptEnabled, getSurface, getSurfaceArea, getSurfaceAreaString, getSurfaceCenter, getSurfaceVolume, getSurfaceVolumeString, getTranslateSurface, getVolumeSurface, init, init, initClass, initShared, invertSculpt, MIPMode, mouseClicked, Move, MULTIHISTOMode, newSharedCanvas, NormalKernel, pickCorrespondence, play4D, play4DVOIs, reCreateScene, redrawSurfaceTexture, releaseShared, reloadShaders, removeAll, removeAllGeodesic, removeAllSurfaces, removeGeodesic, removePolyline, removeSurface, Render, replaceGeodesic, resetView, reshape, rollbackToCenter, save, saveCroppedImage, selfShadow, setABBlend, setAnimationSpeed, setAnimationSpeed, setArbColor, setArbitraryClipPlane, setArbitratyClip, setArbitratyClip, setBackface, setBackgroundColor, setBoundingBoxColor, setBoundingBoxColor, setCenter, setClipping, setClipPlane, setClipPlaneColor, setColor, SetCustomBlend, setDisplayAllGlyphs, setDisplayArrows, setDisplayCylinders, setDisplayEllipsoids, setDisplayTubes, setDrawingShape, setDTIImage, setEllipseMod, setEyeClipPlane, setEyeColor, setEyeInvClipPlane, setEyeInvColor, setGradientMagnitude, setHyperStack, setImageB, setImageNew, setImageOn, setImages, setIntenstityLevel, setIPD, setLatticeClip, setLUTNew, setMaterial, setMouseRotationSpeed, setMouseTranslationSpeed, setMouseZoomSpeed, setPickable, setPlaneConstant, setPolygonMode, setPolylineColor, setRGBTA, setRGBTB, setSliceOpacity, setStereo, setSurfaceTexture, setView, setVolumeBlend, setVolumeColor, setVolumeSamplesMouseDragged, setVolumeSamplesMouseReleased, showBoundingBox, showSlice, smoothMesh, smoothThree, smoothTwo, startRecording, startStopVOIAnimation, stateChanged, SURFASTMode, SURMode, toggleDisplaySurface, toggleDisplayVOI, toggleDisplayVolume, toggleDisplayVolumeSlices, toggleGeodesicPathDisplay, translateSurface, updateCenterOnDisplay, updateData, updateLevWidgetState, updateSphereMethods inherited from class gov.nih.mipav.view.renderer.WildMagic.GPURenderBase
AddNode, checkIfSpaceNavNeedsCalibration, dispose, drawText, fineMovement, GetCanvas, getCounter, getDisplayList, getImage, GetLights, getNearPlane, GetNode, getNormalizedXDim, getNormalizedYDim, getNormalizedZDim, getRotationCutoffValue, getRotationScaleFactor, GetSceneRotation, getSceneToWorldMatrix, getTranslate, getTranslationCutoffValue, getTranslationScaleFactor, getVolumeImage, getVolumeImageB, invertRX, invertRY, invertRZ, invertTX, invertTY, invertTZ, isUseMouseRotationCutoffs, isUseMouseTranslationCutoffs, isVisible, normalMovement, pauseAnimator, processSpaceNavEvent, processSpaceNavEvent, record, reInitialize, RemoveNode, RenderFrameRate, resetAxis, resetAxisX, resetAxisXInv, resetAxisY, saveAVIMovie, saveQuickTimeMovie, setCameraNearPlane, setDefaultLighting, setOrthographicProjection, setPerspectiveProjection, setRotationCutoffValue, setRotationScaleFactor, SetSceneRotation, setTranslationCutoffValue, setTranslationScaleFactor, setUseMouseRotationCutoffs, setUseMouseTranslationCutoffs, setVisible, startAnimator, updateImageFromRotation, updateLightingMethods inherited from class WildMagic.LibApplications.OpenGLApplication.JavaApplication3D
DrawFrameRate, getCameraLocation, getCameraParameters, getObjectParameters, getObjectRotation, InitializeCameraMotion, InitializeCameraMotion, InitializeObjectMotion, keyTyped, LookDown, LookUp, MeasureTime, mouseEntered, mouseExited, mouseMoved, mouseWheelMoved, MoveBackward, MoveCamera, MoveDown, MoveForward, MoveLeft, MoveObject, MoveRight, MoveUp, OnDisplay, OnInitialize, OnTerminate, ResetTime, RotateTrackBall, setCameraLocation, setCameraParameters, setObjectParameters, setObjectRotation, TurnLeft, TurnRight, UpdateCameraRotationSpeed, UpdateCameraTranslationSpeed, UpdateCameraZoomSpeed, UpdateFrameCount, UpdateMouseRotationSpeedMethods inherited from class WildMagic.LibApplications.OpenGLApplication.JavaApplication
GetAspectRatio, GetHeight, GetRenderer, GetWidth, GetWindowTitle, GetXPosition, GetYPosition, OnIdle, OnMove, OnPrecreate, OnResize, SetRendererMethods inherited from class WildMagic.LibApplications.OpenGLApplication.Application
TestStreamingMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.jogamp.opengl.GLEventListener
init, reshapeMethods inherited from interface java.awt.event.KeyListener
keyTypedMethods inherited from interface java.awt.event.MouseListener
mouseClicked, mouseEntered, mouseExitedMethods inherited from interface java.awt.event.MouseMotionListener
mouseMoved
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
m_kParent
Parent user-interface and display frame. -
configuredListener
-
rightMousePressed
protected boolean rightMousePressed -
altPressed
protected boolean altPressed -
shiftPressed
protected boolean shiftPressed -
m_kVOIInterface
-
animateStep
private int animateStep -
annotationPositions
-
annotationDiameters
-
annotationSpheres
-
annotationSpheresDisplay
-
annotationSpheresIndex
private int annotationSpheresIndex -
annotationVOIs
-
neuriteVOIs
-
neuriteSurfaces
-
neuriteDisplay
-
annotationSpheresColors
-
annotationAnimationPanel
-
annotationLabelsDisplay
-
annotationNames
-
sphereScale
private float sphereScale -
neuriteNames
-
-
Constructor Details
-
VolumeTriPlanarRender
public VolumeTriPlanarRender(VolumeTriPlanarInterface kParent, com.jogamp.opengl.util.Animator kAnimator, VolumeImage kVolumeImageA, VolumeImage kVolumeImageB) Construct the Volume/Surface/Tri-Planar renderer.- Parameters:
kParent- parent user-interface and frame.kAnimator- animator used to display the canvas.kVolumeImageA- volume data and textures for ModelImage A.kVolumeImageB- volume data and textures for ModelImage B.
-
VolumeTriPlanarRender
public VolumeTriPlanarRender(VolumeTriPlanarRender kShared, com.jogamp.opengl.awt.GLCanvas kCanvas, VolumeTriPlanarInterface kParent, VolumeImage kVolumeImageA, VolumeImage kVolumeImageB) Construct the Volume/Surface/Tri-Planar renderer.- Parameters:
kParent- parent user-interface and frame.kVolumeImageA- volume data and textures for ModelImage A.kVolumeImageB- volume data and textures for ModelImage B.kAnimator- animator used to display the canvas.
-
VolumeTriPlanarRender
public VolumeTriPlanarRender(VolumeTriPlanarInterface kParent, VolumeImage kVolumeImageA, VolumeImage kVolumeImageB) Construct the Volume/Surface/Tri-Planar renderer.- Parameters:
kVolumeImageA- volume data and textures for ModelImage A.kVolumeImageB- volume data and textures for ModelImage B.
-
VolumeTriPlanarRender
public VolumeTriPlanarRender(VolumeImage[] images, WildMagic.LibGraphics.Rendering.Texture colormap)
-
-
Method Details
-
applySculpt
public boolean applySculpt(boolean bAll) Apply the sculpt region to the volume.- Overrides:
applySculptin classVolumeTriPlanarRenderBase
-
display
public void display(com.jogamp.opengl.GLAutoDrawable arg0) - Specified by:
displayin interfacecom.jogamp.opengl.GLEventListener- Overrides:
displayin classVolumeTriPlanarRenderBase
-
addConfiguredListener
-
dispose
public void dispose(com.jogamp.opengl.GLAutoDrawable kDrawable) Description copied from class:GPURenderBasememory cleanup.- Specified by:
disposein interfacecom.jogamp.opengl.GLEventListener- Overrides:
disposein classVolumeTriPlanarRenderBase
-
setVOILatticeManager
-
clear3DSelection
public void clear3DSelection() -
annotationPrefix
-
doAutomaticLabels
public boolean doAutomaticLabels() -
is3DSelectionEnabled
public boolean is3DSelectionEnabled() -
isEditAnnotations
public boolean isEditAnnotations() -
deleteSelectedPoint
public void deleteSelectedPoint() -
moveSelectedPoint
public void moveSelectedPoint(WildMagic.LibFoundation.Mathematics.Vector3f direction) -
hasSelectedPoint
public boolean hasSelectedPoint() -
keyPressed
Part of the KeyListener interface. Pressing 'b' toggles displaying the proxy-geometry versus the ray-traced volume.- Specified by:
keyPressedin interfaceKeyListener- Overrides:
keyPressedin classVolumeTriPlanarRenderBase- Parameters:
e- the key event.
-
keyReleased
- Specified by:
keyReleasedin interfaceKeyListener- Overrides:
keyReleasedin classWildMagic.LibApplications.OpenGLApplication.JavaApplication3D
-
mousePressed
Description copied from class:VolumeTriPlanarRenderBaseRotates the object with a virtual trackball:- Specified by:
mousePressedin interfaceMouseListener- Overrides:
mousePressedin classVolumeTriPlanarRenderBase- Parameters:
e- the MouseEvent
-
mouseReleased
Description copied from class:VolumeTriPlanarRenderBaseRotates the object with a virtual trackball:- Specified by:
mouseReleasedin interfaceMouseListener- Overrides:
mouseReleasedin classVolumeTriPlanarRenderBase- Parameters:
e- the MouseEvent
-
setDefaultCursor
public void setDefaultCursor() -
select3DMarker
public boolean select3DMarker(WildMagic.LibFoundation.Mathematics.Vector3f startPt, WildMagic.LibFoundation.Mathematics.Vector3f endPt, WildMagic.LibFoundation.Mathematics.Vector3f pt, boolean rightMouse, boolean multiSelect) -
modify3DMarker
public boolean modify3DMarker(WildMagic.LibFoundation.Mathematics.Vector3f startPt, WildMagic.LibFoundation.Mathematics.Vector3f endPt, WildMagic.LibFoundation.Mathematics.Vector3f pt) -
add3DMarker
-
add3DMarker
-
mouseDragged
Rotates the object with a virtual trackball:- Specified by:
mouseDraggedin interfaceMouseMotionListener- Overrides:
mouseDraggedin classVolumeTriPlanarRenderBase- Parameters:
e- the MouseEvent
-
processRightMouseDrag
If the right mouse button is pressed and dragged. processRightMouseDrag updates the HistoLUT window and level (contrast and brightness)- Parameters:
kEvent- the mouse event generated by a mouse drag
-
setWindowLevel
private void setWindowLevel(float fX, float fY, boolean first) -
undoSculpt
public void undoSculpt(boolean bAll) Undo applying the sculpt region to the volume.- Overrides:
undoSculptin classVolumeTriPlanarRenderBase
-
CreateScene
protected void CreateScene()Called by the init() function. Creates and initialized the scene-graph.- Overrides:
CreateScenein classVolumeTriPlanarRenderBase
-
reCreateScene
Description copied from class:VolumeTriPlanarRenderBaseCalled by the init() function. Creates and initialized the scene-graph.- Overrides:
reCreateScenein classVolumeTriPlanarRenderBase
-
Pick
protected void Pick()Picking. If a display list object has picking enabled, find the picked polygon based on the mouse position.- Overrides:
Pickin classVolumeTriPlanarRenderBase
-
PickVolume3D
private void PickVolume3D(WildMagic.LibFoundation.Mathematics.Vector3f kPos, WildMagic.LibFoundation.Mathematics.Vector3f kDir, WildMagic.LibFoundation.Mathematics.Vector3f maxPt) -
PickSlice3D
private boolean PickSlice3D(WildMagic.LibFoundation.Mathematics.Vector3f kPos, WildMagic.LibFoundation.Mathematics.Vector3f kDir, WildMagic.LibFoundation.Mathematics.Vector3f maxPt) -
update4D
protected void update4D(boolean bForward) - Overrides:
update4Din classVolumeTriPlanarRenderBase
-
updateVOIs
public void updateVOIs() -
updateVOIs
- Overrides:
updateVOIsin classVolumeTriPlanarRenderBase
-
addSphere
private void addSphere(WildMagic.LibFoundation.Mathematics.Vector3f center, int index) -
setPathPlanningFlythru
public void setPathPlanningFlythru(boolean _isPathPlanning) -
setMouseControlFlythru
public void setMouseControlFlythru(boolean _isMouseControl) -
setAnnotationMode
public void setAnnotationMode(boolean _isAnnotateEnabled) -
getPositionScaled
public WildMagic.LibFoundation.Mathematics.Vector3f getPositionScaled(WildMagic.LibFoundation.Mathematics.Vector3f kPoint) Scaled coordinates for the current position along the path for viewing.- Parameters:
Point- in normalized path coordinates.- Returns:
- Point3f A new instance created which contains the path position coordinates, scaled to match the TriMesh in JPanelSurface.
-
update4DVOIs
protected void update4DVOIs(boolean bForward) - Overrides:
update4DVOIsin classVolumeTriPlanarRenderBase
-
animateAlgorithm
private void animateAlgorithm() -
addAnimationVOIs
-
addSphereVOIs
- Overrides:
addSphereVOIsin classVolumeTriPlanarRenderBase
-
displayedNeurite
-
updateNeurite
-
updateContour
-
displayNeurite
-
setNeuriteColor
-
addNeurite
-
setAnnotationVOIColor
- Overrides:
setAnnotationVOIColorin classVolumeTriPlanarRenderBase
-
setDisplayAnnotation
-
getAnnotationInfo
-
setAnnotationDiameter
-
getSelectedVOI
-
setDisplayAnnotationLabel
-
smoothCurve
-
createTube
-
createNeuriteSurface
private WildMagic.LibGraphics.SceneGraph.TriMesh createNeuriteSurface(VOIContour neurite, WildMagic.LibFoundation.Mathematics.ColorRGB color, float radius) -
play4DVOIs
public void play4DVOIs(boolean bOn) - Overrides:
play4DVOIsin classVolumeTriPlanarRenderBase
-
writeImage
public boolean writeImage()Description copied from class:GPURenderBaseWrites a the frame buffer as a .jpg image to disk. The file name is captureImage + the image number.- Overrides:
writeImagein classGPURenderBase- Returns:
- true on successful write.
-
annotationVOIsUpdate
public void annotationVOIsUpdate(int value) -
UpdateSceneRotation
protected void UpdateSceneRotation()Description copied from class:GPURenderBaseUpdates the displayed objects based on any user mouse rotation.- Overrides:
UpdateSceneRotationin classVolumeTriPlanarRenderBase
-
updateSceneNodePoint
public void updateSceneNodePoint(String name, WildMagic.LibFoundation.Mathematics.Vector3f position) Currently only being used to update the picking point- Parameters:
name- surface nameposition- surface location
-
updateSlicesCenter
public void updateSlicesCenter(WildMagic.LibFoundation.Mathematics.Vector3f loc) Update the bottom 3 planar view center -
setCameraCenter
public void setCameraCenter(WildMagic.LibFoundation.Mathematics.Vector3f kCenter) Update the camera in 3D view window.- Parameters:
kCenter- center in image space
-
addAnnotationPoint
public void addAnnotationPoint(WildMagic.LibFoundation.Mathematics.Vector3f point, WildMagic.LibFoundation.Mathematics.Vector3f scannerPt) Add the annotation point- Parameters:
point-
-
setCameraViewRotationDegree
public void setCameraViewRotationDegree(int degree) Set camera view rotation degree- Parameters:
degree-
-
generatePath
public void generatePath()Generate the path planning path. -
clearPath
public void clearPath()Clear the annotated path -
createBranchPathGeometryScaled
private WildMagic.LibGraphics.SceneGraph.Polyline createBranchPathGeometryScaled(int iBranch) Translate the path points from image coordinate to view volume coordinate.- Parameters:
iBranch-- Returns:
-
createAnnotatePoint
private void createAnnotatePoint(WildMagic.LibFoundation.Mathematics.Vector3f kPosition) Create a new Annotation point at the position specified.- Parameters:
kPosition- position of new annotation point.
-