Public Member Functions | Public Attributes

mitk::GPUVolumeMapper3D::LocalStorage Class Reference

#include <mitkGPUVolumeMapper3D.h>

Inheritance diagram for mitk::GPUVolumeMapper3D::LocalStorage:
Inheritance graph
[legend]
Collaboration diagram for mitk::GPUVolumeMapper3D::LocalStorage:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 LocalStorage ()
 ~LocalStorage ()

Public Attributes

bool m_cpuInitialized
vtkVolume * m_VolumeCPU
vtkFixedPointVolumeRayCastMapper * m_MapperCPU
vtkVolumeProperty * m_VolumePropertyCPU
bool m_gpuSupported
bool m_gpuInitialized
vtkVolume * m_VolumeGPU
vtkMitkVolumeTextureMapper3Dm_MapperGPU
vtkVolumeProperty * m_VolumePropertyGPU

Detailed Description

Definition at line 123 of file mitkGPUVolumeMapper3D.h.


Constructor & Destructor Documentation

mitk::GPUVolumeMapper3D::LocalStorage::LocalStorage (  ) [inline]

Definition at line 149 of file mitkGPUVolumeMapper3D.h.

    {
      m_cpuInitialized = false;
      
      m_gpuInitialized = false;
      m_gpuSupported = true;    // assume initially gpu slicing is supported

// Only with VTK 5.6 or above
#if ((VTK_MAJOR_VERSION > 5) || ((VTK_MAJOR_VERSION==5) && (VTK_MINOR_VERSION>=6) ))
      m_rayInitialized = false;
      m_raySupported = true;    // assume initially gpu raycasting is supported
#endif
    }
mitk::GPUVolumeMapper3D::LocalStorage::~LocalStorage (  ) [inline]

Definition at line 163 of file mitkGPUVolumeMapper3D.h.

    {
      if(m_cpuInitialized)
      {
        m_VolumeCPU->Delete();
        m_MapperCPU->Delete();
        m_VolumePropertyCPU->Delete();
        m_cpuInitialized=false;
      }

      if(m_gpuInitialized)
      {
        m_VolumeGPU->Delete();
        m_MapperGPU->Delete();
        m_VolumePropertyGPU->Delete();
        m_gpuInitialized=false;
      }

// Only with VTK 5.6 or above
#if ((VTK_MAJOR_VERSION > 5) || ((VTK_MAJOR_VERSION==5) && (VTK_MINOR_VERSION>=6) ))

      if(m_rayInitialized)
      {
        m_VolumeRAY->Delete();
        m_MapperRAY->Delete();
        m_VolumePropertyRAY->Delete();
        m_rayInitialized=false;
      }

#endif

    }

Member Data Documentation

vtkFixedPointVolumeRayCastMapper* mitk::GPUVolumeMapper3D::LocalStorage::m_MapperCPU

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines