Class VolumeBoundingBox
- java.lang.Object
-
- gov.nih.mipav.view.renderer.WildMagic.Render.VolumeObject
-
- gov.nih.mipav.view.renderer.WildMagic.Render.VolumeBoundingBox
-
public class VolumeBoundingBox extends VolumeObject
Displays the BoundingBox frame around the volume data in the VolumeViewer.- See Also:
VolumeObject.java
,GPUVolumeRender.java
-
-
Field Summary
Fields Modifier and Type Field Description private WildMagic.LibGraphics.SceneGraph.TriMesh[]
m_akBoundingBox
The bounding box Polyline array.private BoundingBoxEffect[]
m_akBoundingBoxEffect
The ShaderEffect for the bounding box.private WildMagic.LibGraphics.Effects.VertexColor3Effect
m_kVertexColor3Shader
The Pre - ShaderEffect for the bounding box.-
Fields inherited from class gov.nih.mipav.view.renderer.WildMagic.Render.VolumeObject
m_bDisplay, m_bPickable, m_bTransparent, m_fVolumeDiv, m_fVolumeMult, m_fX, m_fY, m_fZ, m_kAlpha, m_kAlphaTransparency, m_kCull, m_kDeleteList, m_kLightShader, m_kLocalScale, m_kPolygonOffset, m_kResolutions, m_kScene, m_kTranslate, m_kVolumeImageA, m_kVolumeImageB, m_kVolumeScale, m_kVolumeTrans, m_kWireframe, m_kZBuffer, m_kZBufferTransparency
-
-
Constructor Summary
Constructors Constructor Description VolumeBoundingBox(VolumeImage kImageA, WildMagic.LibFoundation.Mathematics.Vector3f kTranslate, float fX, float fY, float fZ)
Creates a new bounding box object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private void
CreateBox()
Creates the bounding box Polylines.void
dispose(WildMagic.LibGraphics.Rendering.Renderer kRenderer)
Delete local memory.void
Render(WildMagic.LibGraphics.Rendering.Renderer kRenderer, WildMagic.LibGraphics.SceneGraph.Culler kCuller, boolean bPreRender, boolean bSolid)
Render the object.void
SetBackgroundColor(WildMagic.LibFoundation.Mathematics.ColorRGBA kColor)
Sets the background color.void
SetBoundingBoxColor(WildMagic.LibFoundation.Mathematics.ColorRGB kColor)
Called from JPanelDisplay.-
Methods inherited from class gov.nih.mipav.view.renderer.WildMagic.Render.VolumeObject
Blend, Dropper, Erase, GetBackface, getDepth, GetDisplay, GetMesh, GetName, GetPickable, GetPolygonMode, GetScene, getTexCoord, GetTranslate, localToScannerCoords, localToVolumeCoords, Paint, PostRender, scale, SetBackface, SetColor, SetDisplay, SetFrontface, setImageB, SetLight, SetPickable, SetPolygonMode, SetTranslate, Translate, volumeToLocalCoords
-
-
-
-
Field Detail
-
m_akBoundingBox
private WildMagic.LibGraphics.SceneGraph.TriMesh[] m_akBoundingBox
The bounding box Polyline array.
-
m_kVertexColor3Shader
private WildMagic.LibGraphics.Effects.VertexColor3Effect m_kVertexColor3Shader
The Pre - ShaderEffect for the bounding box.
-
m_akBoundingBoxEffect
private BoundingBoxEffect[] m_akBoundingBoxEffect
The ShaderEffect for the bounding box.
-
-
Constructor Detail
-
VolumeBoundingBox
public VolumeBoundingBox(VolumeImage kImageA, WildMagic.LibFoundation.Mathematics.Vector3f kTranslate, float fX, float fY, float fZ)
Creates a new bounding box object.- Parameters:
kImageA
- the VolumeImage containing shared data and textures for rendering.kTranslate
- translation in the scene-graph for this object.fX
- the size of the volume in the x-dimension (extent * resolutions)fY
- the size of the volume in the y-dimension (extent * resolutions)fZ
- the size of the volume in the z-dimension (extent * resolutions)
-
-
Method Detail
-
dispose
public void dispose(WildMagic.LibGraphics.Rendering.Renderer kRenderer)
Delete local memory.- Overrides:
dispose
in classVolumeObject
-
Render
public void Render(WildMagic.LibGraphics.Rendering.Renderer kRenderer, WildMagic.LibGraphics.SceneGraph.Culler kCuller, boolean bPreRender, boolean bSolid)
Description copied from class:VolumeObject
Render the object.- Specified by:
Render
in classVolumeObject
- Parameters:
kRenderer
- the OpenGLRenderer object.kCuller
- the Culler object.
-
SetBoundingBoxColor
public void SetBoundingBoxColor(WildMagic.LibFoundation.Mathematics.ColorRGB kColor)
Called from JPanelDisplay. Sets the bounding box color.- Parameters:
kColor
- bounding box color.
-
SetBackgroundColor
public void SetBackgroundColor(WildMagic.LibFoundation.Mathematics.ColorRGBA kColor)
Sets the background color.- Parameters:
kColor
- new background color.
-
CreateBox
private void CreateBox()
Creates the bounding box Polylines.
-
-