Medical Imaging Interaction Toolkit
2016.11.0
Medical Imaging Interaction Toolkit
|
#include <vtkMitkOpenGLVolumeTextureMapper3D.h>
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 vtkMitkOpenGLVolumeTextureMapper3D * | New () |
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)) |
Definition at line 42 of file vtkMitkOpenGLVolumeTextureMapper3D.h.
|
protected |
Definition at line 288 of file vtkMitkOpenGLVolumeTextureMapper3D.cpp.
References AlphaLookupIndex, ColorLookupIndex, Initialized, prgOneComponentShade, prgRGBAShade, RenderWindow, SupportsCompressedTexture, Volume1Index, Volume2Index, and Volume3Index.
|
protected |
Definition at line 305 of file vtkMitkOpenGLVolumeTextureMapper3D.cpp.
References prgOneComponentShade, and prgRGBAShade.
|
protected |
Definition at line 1510 of file vtkMitkOpenGLVolumeTextureMapper3D.cpp.
References MITK_WARN, vtkMitkVolumeTextureMapper3D::SupportsNonPowerOfTwoTextures, vtkMitkVolumeTextureMapper3D::VolumeDimensions, and vtkMitkVolumeTextureMapper3D::VolumeSpacing.
Referenced by UpdateVolumes(), and UpdateVolumesRGBA().
|
protected |
Definition at line 505 of file vtkMitkOpenGLVolumeTextureMapper3D.cpp.
Referenced by SetupOneIndependentTextures(), UpdateVolumes(), and UpdateVolumesRGBA().
|
protected |
Definition at line 492 of file vtkMitkOpenGLVolumeTextureMapper3D.cpp.
Referenced by ReleaseGraphicsResources(), SetupOneIndependentTextures(), UpdateVolumes(), and UpdateVolumesRGBA().
|
protected |
Definition at line 1945 of file vtkMitkOpenGLVolumeTextureMapper3D.cpp.
References mitk::New(), and Normalize().
|
protected |
Definition at line 2249 of file vtkMitkOpenGLVolumeTextureMapper3D.cpp.
References GPU_WARN, Initialized, prgOneComponentShade, prgRGBAShade, RenderPossible, SupportsCompressedTexture, vtkMitkVolumeTextureMapper3D::SupportsNonPowerOfTwoTextures, vtkMitkVolumeTextureMapper3D_FourDependentShadeFP, and vtkMitkVolumeTextureMapper3D_OneComponentShadeFP.
Referenced by IsRenderSupported(), and Render().
|
overridevirtual |
Implements vtkMitkVolumeTextureMapper3D.
Definition at line 2224 of file vtkMitkOpenGLVolumeTextureMapper3D.cpp.
References Initialize(), Initialized, MITK_WARN, and RenderPossible.
|
static |
|
override |
Definition at line 2375 of file vtkMitkOpenGLVolumeTextureMapper3D.cpp.
References Initialized, and RenderWindow.
|
override |
Definition at line 316 of file vtkMitkOpenGLVolumeTextureMapper3D.cpp.
References AlphaLookupIndex, ColorLookupIndex, DeleteTextureIndex(), RenderWindow, SupportsCompressedTexture, vtkMitkVolumeTextureMapper3D::SupportsNonPowerOfTwoTextures, Volume1Index, Volume2Index, and Volume3Index.
void vtkMitkOpenGLVolumeTextureMapper3D::ReleaseGraphicsResources | ( | mitk::BaseRenderer * | renderer | ) |
Definition at line 344 of file vtkMitkOpenGLVolumeTextureMapper3D.cpp.
References AlphaLookupIndex, ColorLookupIndex, DeleteTextureIndex(), mitk::BaseRenderer::GetVtkRenderer(), RenderWindow, SupportsCompressedTexture, vtkMitkVolumeTextureMapper3D::SupportsNonPowerOfTwoTextures, Volume1Index, Volume2Index, and Volume3Index.
|
overridevirtual |
Reimplemented from vtkMitkVolumeTextureMapper3D.
Definition at line 373 of file vtkMitkOpenGLVolumeTextureMapper3D.cpp.
References Initialize(), Initialized, mitk::New(), RenderFP(), and RenderPossible.
|
protectedvirtual |
Definition at line 453 of file vtkMitkOpenGLVolumeTextureMapper3D.cpp.
References RenderOneIndependentShadeFP(), and RenderRGBAShadeFP().
Referenced by Render().
|
protected |
Definition at line 1880 of file vtkMitkOpenGLVolumeTextureMapper3D.cpp.
References ColorLookupIndex, prgOneComponentShade, RenderPolygons(), SetupOneIndependentTextures(), SetupProgramLocalsForShadingFP(), Volume1Index, and Volume2Index.
Referenced by RenderFP().
|
protected |
Definition at line 514 of file vtkMitkOpenGLVolumeTextureMapper3D.cpp.
References vtkMitkVolumeTextureMapper3D::ComputePolygons(), mitk::New(), vtkMitkVolumeTextureMapper3D::NumberOfPolygons, and vtkMitkVolumeTextureMapper3D::PolygonBuffer.
Referenced by RenderOneIndependentShadeFP(), and RenderRGBAShadeFP().
|
protected |
Definition at line 1916 of file vtkMitkOpenGLVolumeTextureMapper3D.cpp.
References prgRGBAShade, RenderPolygons(), SetupProgramLocalsForShadingFP(), SetupRGBATextures(), Volume1Index, and Volume2Index.
Referenced by RenderFP().
|
protected |
Definition at line 1731 of file vtkMitkOpenGLVolumeTextureMapper3D.cpp.
Referenced by UpdateVolumes(), and UpdateVolumesRGBA().
|
protected |
Definition at line 1750 of file vtkMitkOpenGLVolumeTextureMapper3D.cpp.
References AlphaLookupIndex, vtkMitkVolumeTextureMapper3D::ColorLookup, ColorLookupIndex, CreateTextureIndex(), DeleteTextureIndex(), myGL_COMPRESSED_RGBA_S3TC_DXT5_EXT, SupportsCompressedTexture, vtkMitkVolumeTextureMapper3D::UpdateColorLookup(), UpdateVolumes(), and vtkMitkVolumeTextureMapper3D::UseCompressedTexture.
Referenced by RenderOneIndependentShadeFP().
|
protected |
Definition at line 2068 of file vtkMitkOpenGLVolumeTextureMapper3D.cpp.
References mitk::New(), and Normalize().
Referenced by RenderOneIndependentShadeFP(), and RenderRGBAShadeFP().
|
protected |
Definition at line 1783 of file vtkMitkOpenGLVolumeTextureMapper3D.cpp.
References MITK_INFO, and UpdateVolumesRGBA().
Referenced by RenderRGBAShadeFP().
|
protected |
Definition at line 1562 of file vtkMitkOpenGLVolumeTextureMapper3D.cpp.
References vtkMitkVolumeTextureMapper3D::ColorTableOffset, vtkMitkVolumeTextureMapper3D::ColorTableScale, vtkMitkVolumeTextureMapper3D::ColorTableSize, ComputeVolumeDimensions(), CreateTextureIndex(), DeleteTextureIndex(), MITK_INFO, myGL_COMPRESSED_RGBA_S3TC_DXT5_EXT, offset, vtkMitkVolumeTextureMapper3D::SavedTextureInput, vtkMitkVolumeTextureMapper3D::SavedTextureMTime, Setup3DTextureParameters(), SupportsCompressedTexture, vtkMitkVolumeTextureMapper3D::UseCompressedTexture, Volume1Index, Volume2Index, Volume3Index, and vtkVolumeTextureMapper3DComputeScalars().
Referenced by SetupOneIndependentTextures().
|
protected |
Definition at line 1663 of file vtkMitkOpenGLVolumeTextureMapper3D.cpp.
References ComputeVolumeDimensions(), CreateTextureIndex(), DeleteTextureIndex(), MITK_INFO, myGL_COMPRESSED_RGB_S3TC_DXT1_EXT, myGL_COMPRESSED_RGBA_S3TC_DXT5_EXT, vtkMitkVolumeTextureMapper3D::SavedTextureInput, vtkMitkVolumeTextureMapper3D::SavedTextureMTime, Setup3DTextureParameters(), SupportsCompressedTexture, vtkMitkVolumeTextureMapper3D::UseCompressedTexture, Volume1Index, Volume2Index, Volume3Index, and vtkVolumeTextureMapper3DComputeRGBA().
Referenced by SetupRGBATextures().
vtkMitkOpenGLVolumeTextureMapper3D::vtkGetMacro | ( | Initialized | , |
int | |||
) |
vtkMitkOpenGLVolumeTextureMapper3D::vtkTypeMacro | ( | vtkMitkOpenGLVolumeTextureMapper3D | , |
vtkMitkVolumeTextureMapper3D | |||
) |
|
protected |
Definition at line 108 of file vtkMitkOpenGLVolumeTextureMapper3D.h.
Referenced by ReleaseGraphicsResources(), SetupOneIndependentTextures(), and vtkMitkOpenGLVolumeTextureMapper3D().
|
protected |
Definition at line 107 of file vtkMitkOpenGLVolumeTextureMapper3D.h.
Referenced by ReleaseGraphicsResources(), RenderOneIndependentShadeFP(), SetupOneIndependentTextures(), and vtkMitkOpenGLVolumeTextureMapper3D().
|
protected |
Definition at line 103 of file vtkMitkOpenGLVolumeTextureMapper3D.h.
Referenced by Initialize(), IsRenderSupported(), PrintSelf(), Render(), and vtkMitkOpenGLVolumeTextureMapper3D().
|
protected |
Definition at line 110 of file vtkMitkOpenGLVolumeTextureMapper3D.h.
Referenced by Initialize(), RenderOneIndependentShadeFP(), vtkMitkOpenGLVolumeTextureMapper3D(), and ~vtkMitkOpenGLVolumeTextureMapper3D().
|
protected |
Definition at line 111 of file vtkMitkOpenGLVolumeTextureMapper3D.h.
Referenced by Initialize(), RenderRGBAShadeFP(), vtkMitkOpenGLVolumeTextureMapper3D(), and ~vtkMitkOpenGLVolumeTextureMapper3D().
|
protected |
Definition at line 90 of file vtkMitkOpenGLVolumeTextureMapper3D.h.
Referenced by Initialize(), IsRenderSupported(), and Render().
|
protected |
Definition at line 113 of file vtkMitkOpenGLVolumeTextureMapper3D.h.
Referenced by PrintSelf(), ReleaseGraphicsResources(), and vtkMitkOpenGLVolumeTextureMapper3D().
|
protected |
Definition at line 115 of file vtkMitkOpenGLVolumeTextureMapper3D.h.
Referenced by Initialize(), ReleaseGraphicsResources(), SetupOneIndependentTextures(), UpdateVolumes(), UpdateVolumesRGBA(), and vtkMitkOpenGLVolumeTextureMapper3D().
|
protected |
Definition at line 104 of file vtkMitkOpenGLVolumeTextureMapper3D.h.
Referenced by ReleaseGraphicsResources(), RenderOneIndependentShadeFP(), RenderRGBAShadeFP(), UpdateVolumes(), UpdateVolumesRGBA(), and vtkMitkOpenGLVolumeTextureMapper3D().
|
protected |
Definition at line 105 of file vtkMitkOpenGLVolumeTextureMapper3D.h.
Referenced by ReleaseGraphicsResources(), RenderOneIndependentShadeFP(), RenderRGBAShadeFP(), UpdateVolumes(), UpdateVolumesRGBA(), and vtkMitkOpenGLVolumeTextureMapper3D().
|
protected |
Definition at line 106 of file vtkMitkOpenGLVolumeTextureMapper3D.h.
Referenced by ReleaseGraphicsResources(), UpdateVolumes(), UpdateVolumesRGBA(), and vtkMitkOpenGLVolumeTextureMapper3D().