Class VolumeNode
- java.lang.Object
-
- gov.nih.mipav.view.renderer.WildMagic.Render.VolumeObject
-
- gov.nih.mipav.view.renderer.WildMagic.Render.VolumeNode
-
public class VolumeNode extends VolumeObject
-
-
Field Summary
Fields Modifier and Type Field Description private WildMagic.LibGraphics.SceneGraph.Node
m_kNode
-
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 VolumeNode(VolumeImage kImageA, WildMagic.LibFoundation.Mathematics.Vector3f kTranslate, float fX, float fY, float fZ, WildMagic.LibGraphics.SceneGraph.Node kNode)
Create a new VolumeNode with the VolumeImage parameter.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private void
CreateScene()
Creates the scene graph.void
dispose(WildMagic.LibGraphics.Rendering.Renderer kRenderer)
Delete local memory.java.lang.String
GetName()
Return the name of this object.WildMagic.LibGraphics.SceneGraph.Node
GetNode()
Return the scene-graph Node.WildMagic.LibFoundation.Mathematics.Vector3f
GetTranslate()
Return the translation vector.void
Render(WildMagic.LibGraphics.Rendering.Renderer kRenderer, WildMagic.LibGraphics.SceneGraph.Culler kCuller, boolean bPreRender, boolean bSolid)
Render the object.void
Translate(WildMagic.LibFoundation.Mathematics.Vector3f kTranslate)
Add to the object translation vector.-
Methods inherited from class gov.nih.mipav.view.renderer.WildMagic.Render.VolumeObject
Blend, Dropper, Erase, GetBackface, getDepth, GetDisplay, GetMesh, GetPickable, GetPolygonMode, GetScene, getTexCoord, localToScannerCoords, localToVolumeCoords, Paint, PostRender, scale, SetBackface, SetColor, SetDisplay, SetFrontface, setImageB, SetLight, SetPickable, SetPolygonMode, SetTranslate, volumeToLocalCoords
-
-
-
-
Constructor Detail
-
VolumeNode
public VolumeNode(VolumeImage kImageA, WildMagic.LibFoundation.Mathematics.Vector3f kTranslate, float fX, float fY, float fZ, WildMagic.LibGraphics.SceneGraph.Node kNode)
Create a new VolumeNode with the VolumeImage parameter.- 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
-
GetName
public java.lang.String GetName()
Description copied from class:VolumeObject
Return the name of this object.- Overrides:
GetName
in classVolumeObject
- Returns:
- name of this object.
-
GetNode
public WildMagic.LibGraphics.SceneGraph.Node GetNode()
Return the scene-graph Node.- Returns:
- scene-graph Node.
-
GetTranslate
public WildMagic.LibFoundation.Mathematics.Vector3f GetTranslate()
Return the translation vector.- Overrides:
GetTranslate
in classVolumeObject
- Returns:
- translation vector.
-
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.
-
Translate
public void Translate(WildMagic.LibFoundation.Mathematics.Vector3f kTranslate)
Description copied from class:VolumeObject
Add to the object translation vector.- Overrides:
Translate
in classVolumeObject
- Parameters:
kTranslate
- new translation amount.
-
CreateScene
private void CreateScene()
Creates the scene graph.
-
-