Class VolumeOrientationCube

java.lang.Object
gov.nih.mipav.view.renderer.WildMagic.Render.VolumeObject
gov.nih.mipav.view.renderer.WildMagic.Render.VolumeOrientationCube

public class VolumeOrientationCube extends VolumeObject
Displays the Orientation Cube in the VolumeViewer.
See Also:
  • invalid reference
    VolumeObject.java
  • invalid reference
    GPUVolumeRender.java
  • Field Details

    • m_akOrientationCube

      private WildMagic.LibGraphics.SceneGraph.TriMesh[] m_akOrientationCube
      Orientation cube geometry:
    • m_aakAxisFiles

      private String[] m_aakAxisFiles
      Orientation cube texture names:
    • m_kCubeTranslate

      private WildMagic.LibFoundation.Mathematics.Vector3f m_kCubeTranslate
      Orientation cube translation offset:
  • Constructor Details

    • VolumeOrientationCube

      public VolumeOrientationCube(VolumeImage kImageA, WildMagic.LibFoundation.Mathematics.Vector3f kTranslate, float fX, float fY, float fZ)
      Creates a new VolumeOrientationCube 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 Details

    • dispose

      public void dispose(WildMagic.LibGraphics.Rendering.Renderer kRenderer)
      Delete local memory.
      Overrides:
      dispose in class VolumeObject
    • 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 class VolumeObject
      Parameters:
      kRenderer - the OpenGLRenderer object.
      kCuller - the Culler object.
    • CreateCube

      private void CreateCube()
      Creates the orientation cube.
    • InitCubicTextures

      private void InitCubicTextures()
      Create the rotation control cubic box. A cube representing the image orientation, with labels painted on the cube faces showing which axis corresponds to which axis in patient coordinates.