Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
vtkMitkOpenGLVolumeTextureMapper3D Class Reference

#include <vtkMitkOpenGLVolumeTextureMapper3D.h>

Inheritance diagram for vtkMitkOpenGLVolumeTextureMapper3D:
Collaboration diagram for vtkMitkOpenGLVolumeTextureMapper3D:

Public Member Functions

 vtkTypeMacro (vtkMitkOpenGLVolumeTextureMapper3D, vtkMitkVolumeTextureMapper3D)
 
void PrintSelf (ostream &os, vtkIndent indent) override
 
int IsRenderSupported (vtkRenderer *ren, vtkVolumeProperty *) override
 
virtual void Render (vtkRenderer *ren, vtkVolume *vol) override
 
 vtkGetMacro (Initialized, int)
 
void ReleaseGraphicsResources (vtkWindow *) override
 
void ReleaseGraphicsResources (mitk::BaseRenderer *renderer)
 
- Public Member Functions inherited from vtkMitkVolumeTextureMapper3D
 vtkTypeMacro (vtkMitkVolumeTextureMapper3D, vtkVolumeMapper)
 
void PrintSelf (ostream &os, vtkIndent indent) override
 
 vtkSetMacro (SampleDistance, float)
 
 vtkGetMacro (SampleDistance, float)
 
 vtkGetVectorMacro (VolumeDimensions, int, 3)
 
 vtkGetVectorMacro (VolumeSpacing, float, 3)
 
 vtkGetMacro (NumberOfPolygons, int)
 
 vtkGetMacro (ActualSampleDistance, float)
 
 vtkSetMacro (UseCompressedTexture, bool)
 
 vtkGetMacro (UseCompressedTexture, bool)
 
void UpdateMTime ()
 

Static Public Member Functions

static vtkMitkOpenGLVolumeTextureMapper3DNew ()
 

Protected Member Functions

 vtkMitkOpenGLVolumeTextureMapper3D ()
 
 ~vtkMitkOpenGLVolumeTextureMapper3D ()
 
void GetLightInformation (vtkRenderer *ren, vtkVolume *vol, GLfloat lightDirection[2][4], GLfloat lightDiffuseColor[2][4], GLfloat lightSpecularColor[2][4], GLfloat halfwayVector[2][4], GLfloat *ambient)
 
void Initialize (vtkRenderer *r)
 
virtual void RenderFP (vtkRenderer *ren, vtkVolume *vol)
 
void SetupOneIndependentTextures (vtkRenderer *ren, vtkVolume *vol)
 
void RenderOneIndependentShadeFP (vtkRenderer *ren, vtkVolume *vol)
 
void SetupRGBATextures (vtkRenderer *ren, vtkVolume *vol)
 
void RenderRGBAShadeFP (vtkRenderer *ren, vtkVolume *vol)
 
void DeleteTextureIndex (GLuint *index)
 
void CreateTextureIndex (GLuint *index)
 
void RenderPolygons (vtkRenderer *ren, vtkVolume *vol, int stages[4])
 
void SetupProgramLocalsForShadingFP (vtkRenderer *ren, vtkVolume *vol)
 
void Setup3DTextureParameters (bool linear)
 
void ComputeVolumeDimensions ()
 
bool UpdateVolumes (vtkVolume *)
 
bool UpdateVolumesRGBA (vtkVolume *)
 
- Protected Member Functions inherited from vtkMitkVolumeTextureMapper3D
 vtkMitkVolumeTextureMapper3D ()
 
 ~vtkMitkVolumeTextureMapper3D ()
 
void ComputePolygons (vtkRenderer *ren, vtkVolume *vol, double bounds[6])
 
int UpdateColorLookup (vtkVolume *)
 
virtual int IsTextureSizeSupported (int vtkNotUsed(size)[3], int vtkNotUsed(components))
 

Protected Attributes

bool RenderPossible
 
int Initialized
 
GLuint Volume1Index
 
GLuint Volume2Index
 
GLuint Volume3Index
 
GLuint ColorLookupIndex
 
GLuint AlphaLookupIndex
 
GLuint prgOneComponentShade
 
GLuint prgRGBAShade
 
vtkRenderWindow * RenderWindow
 
bool SupportsCompressedTexture
 
- Protected Attributes inherited from vtkMitkVolumeTextureMapper3D
float * PolygonBuffer
 
float * IntersectionBuffer
 
int NumberOfPolygons
 
int BufferSize
 
int VolumeDimensions [3]
 
float VolumeSpacing [3]
 
float SampleDistance
 
float ActualSampleDistance
 
vtkImageData * SavedTextureInput
 
vtkImageData * SavedParametersInput
 
vtkColorTransferFunction * SavedRGBFunction
 
vtkPiecewiseFunction * SavedGrayFunction
 
vtkPiecewiseFunction * SavedScalarOpacityFunction
 
vtkPiecewiseFunction * SavedGradientOpacityFunction
 
int SavedColorChannels
 
float SavedSampleDistance
 
float SavedScalarOpacityDistance
 
unsigned char ColorLookup [65536 *4]
 
unsigned char AlphaLookup [65536]
 
float TempArray1 [3 *4096]
 
float TempArray2 [4096]
 
int ColorTableSize
 
float ColorTableScale
 
float ColorTableOffset
 
unsigned char DiffuseLookup [65536 *4]
 
unsigned char SpecularLookup [65536 *4]
 
vtkTimeStamp SavedTextureMTime
 
vtkTimeStamp SavedParametersMTime
 
bool UseCompressedTexture
 
bool SupportsNonPowerOfTwoTextures
 

Detailed Description

Definition at line 42 of file vtkMitkOpenGLVolumeTextureMapper3D.h.

Constructor & Destructor Documentation

vtkMitkOpenGLVolumeTextureMapper3D::vtkMitkOpenGLVolumeTextureMapper3D ( )
protected
vtkMitkOpenGLVolumeTextureMapper3D::~vtkMitkOpenGLVolumeTextureMapper3D ( )
protected

Definition at line 305 of file vtkMitkOpenGLVolumeTextureMapper3D.cpp.

References prgOneComponentShade, and prgRGBAShade.

Member Function Documentation

void vtkMitkOpenGLVolumeTextureMapper3D::CreateTextureIndex ( GLuint *  index)
protected
void vtkMitkOpenGLVolumeTextureMapper3D::DeleteTextureIndex ( GLuint *  index)
protected
void vtkMitkOpenGLVolumeTextureMapper3D::GetLightInformation ( vtkRenderer *  ren,
vtkVolume *  vol,
GLfloat  lightDirection[2][4],
GLfloat  lightDiffuseColor[2][4],
GLfloat  lightSpecularColor[2][4],
GLfloat  halfwayVector[2][4],
GLfloat *  ambient 
)
protected

Definition at line 1945 of file vtkMitkOpenGLVolumeTextureMapper3D.cpp.

References mitk::New(), and Normalize().

int vtkMitkOpenGLVolumeTextureMapper3D::IsRenderSupported ( vtkRenderer *  ren,
vtkVolumeProperty *   
)
overridevirtual
static vtkMitkOpenGLVolumeTextureMapper3D* vtkMitkOpenGLVolumeTextureMapper3D::New ( )
static
void vtkMitkOpenGLVolumeTextureMapper3D::PrintSelf ( ostream &  os,
vtkIndent  indent 
)
override

Definition at line 2375 of file vtkMitkOpenGLVolumeTextureMapper3D.cpp.

References Initialized, and RenderWindow.

void vtkMitkOpenGLVolumeTextureMapper3D::ReleaseGraphicsResources ( vtkWindow *  renWin)
override
void vtkMitkOpenGLVolumeTextureMapper3D::Render ( vtkRenderer *  ren,
vtkVolume *  vol 
)
overridevirtual
void vtkMitkOpenGLVolumeTextureMapper3D::RenderFP ( vtkRenderer *  ren,
vtkVolume *  vol 
)
protectedvirtual

Definition at line 453 of file vtkMitkOpenGLVolumeTextureMapper3D.cpp.

References RenderOneIndependentShadeFP(), and RenderRGBAShadeFP().

Referenced by Render().

void vtkMitkOpenGLVolumeTextureMapper3D::RenderOneIndependentShadeFP ( vtkRenderer *  ren,
vtkVolume *  vol 
)
protected
void vtkMitkOpenGLVolumeTextureMapper3D::RenderPolygons ( vtkRenderer *  ren,
vtkVolume *  vol,
int  stages[4] 
)
protected
void vtkMitkOpenGLVolumeTextureMapper3D::RenderRGBAShadeFP ( vtkRenderer *  ren,
vtkVolume *  vol 
)
protected
void vtkMitkOpenGLVolumeTextureMapper3D::Setup3DTextureParameters ( bool  linear)
protected

Definition at line 1731 of file vtkMitkOpenGLVolumeTextureMapper3D.cpp.

Referenced by UpdateVolumes(), and UpdateVolumesRGBA().

void vtkMitkOpenGLVolumeTextureMapper3D::SetupProgramLocalsForShadingFP ( vtkRenderer *  ren,
vtkVolume *  vol 
)
protected
void vtkMitkOpenGLVolumeTextureMapper3D::SetupRGBATextures ( vtkRenderer *  ren,
vtkVolume *  vol 
)
protected

Definition at line 1783 of file vtkMitkOpenGLVolumeTextureMapper3D.cpp.

References MITK_INFO, and UpdateVolumesRGBA().

Referenced by RenderRGBAShadeFP().

vtkMitkOpenGLVolumeTextureMapper3D::vtkGetMacro ( Initialized  ,
int   
)
vtkMitkOpenGLVolumeTextureMapper3D::vtkTypeMacro ( vtkMitkOpenGLVolumeTextureMapper3D  ,
vtkMitkVolumeTextureMapper3D   
)

Member Data Documentation

GLuint vtkMitkOpenGLVolumeTextureMapper3D::AlphaLookupIndex
protected
GLuint vtkMitkOpenGLVolumeTextureMapper3D::ColorLookupIndex
protected
int vtkMitkOpenGLVolumeTextureMapper3D::Initialized
protected
GLuint vtkMitkOpenGLVolumeTextureMapper3D::prgOneComponentShade
protected
GLuint vtkMitkOpenGLVolumeTextureMapper3D::prgRGBAShade
protected
bool vtkMitkOpenGLVolumeTextureMapper3D::RenderPossible
protected

Definition at line 90 of file vtkMitkOpenGLVolumeTextureMapper3D.h.

Referenced by Initialize(), IsRenderSupported(), and Render().

vtkRenderWindow* vtkMitkOpenGLVolumeTextureMapper3D::RenderWindow
protected
bool vtkMitkOpenGLVolumeTextureMapper3D::SupportsCompressedTexture
protected
GLuint vtkMitkOpenGLVolumeTextureMapper3D::Volume1Index
protected
GLuint vtkMitkOpenGLVolumeTextureMapper3D::Volume2Index
protected
GLuint vtkMitkOpenGLVolumeTextureMapper3D::Volume3Index
protected

The documentation for this class was generated from the following files: