Medical Imaging Interaction Toolkit  2026.06.00
Medical Imaging Interaction Toolkit
vtkNeverTranslucentTexture.h
Go to the documentation of this file.
1 /*============================================================================
2 
3 The Medical Imaging Interaction Toolkit (MITK)
4 
5 Copyright (c) German Cancer Research Center (DKFZ)
6 All rights reserved.
7 
8 Use of this source code is governed by a 3-clause BSD license that can be
9 found in the LICENSE file.
10 
11 ============================================================================*/
12 
13 #ifndef vtkNeverTranslucentTexture_h
14 #define vtkNeverTranslucentTexture_h
15 
16 #include <MitkCoreExports.h>
17 
18 #include <vtkOpenGLTexture.h>
19 
20 #include <vtkObjectFactory.h>
21 
47 /* NOT exported, this is a 2D image mapper helper */
48 
49 class MITKCORE_EXPORT vtkNeverTranslucentTexture : public vtkOpenGLTexture
50 {
51 public:
55 
57  void PrintSelf(ostream &os, vtkIndent indent) override;
58 
70  int IsTranslucent() override;
71 
72 protected:
75 
76 private:
77  vtkNeverTranslucentTexture(const vtkNeverTranslucentTexture &); // Not implemented.
78  void operator=(const vtkNeverTranslucentTexture &); // Not implemented.
79 };
80 
92 class vtkNeverTranslucentTextureFactory : public vtkObjectFactory
93 {
94 public:
97 
100 
106  const char *GetVTKSourceVersion() override;
107 
113  const char *GetDescription() override;
114 
115 protected:
118 };
119 
120 #endif
#define MITKCORE_EXPORT
Factory that replaces vtkTexture with vtkNeverTranslucentTexture.
vtkNeverTranslucentTextureFactory(const vtkNeverTranslucentTextureFactory &)
static vtkNeverTranslucentTextureFactory * New()
Create a new instance of this factory.
vtkNeverTranslucentTextureFactory()
Constructor. Registers the override for vtkTexture.
void operator=(const vtkNeverTranslucentTextureFactory &)
const char * GetDescription() override
Get a description of this factory.
const char * GetVTKSourceVersion() override
Get the VTK source version string.
VTK Fix to speed up our image rendering.
int IsTranslucent() override
Always returns 0 (not translucent) to avoid the expensive per-pixel check.
vtkNeverTranslucentTexture()
Constructor.
void PrintSelf(ostream &os, vtkIndent indent) override
Print the object state to the given output stream.
static vtkNeverTranslucentTexture * New()
Create a new instance of vtkNeverTranslucentTexture.
vtkTypeMacro(vtkNeverTranslucentTexture, vtkOpenGLTexture)