Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
vtkNeverTranslucentTexture.cpp
Go to the documentation of this file.
1 /*===================================================================
2 
3 The Medical Imaging Interaction Toolkit (MITK)
4 
5 Copyright (c) German Cancer Research Center,
6 Division of Medical and Biological Informatics.
7 All rights reserved.
8 
9 This software is distributed WITHOUT ANY WARRANTY; without
10 even the implied warranty of MERCHANTABILITY or FITNESS FOR
11 A PARTICULAR PURPOSE.
12 
13 See LICENSE.txt or http://www.mitk.org for details.
14 
15 ===================================================================*/
16 
18 
19 #include "vtkVersion.h"
20 
21 // Replacement texture code -------------------------------------------------------------
22 
24 
26 {
27 }
28 
30 {
31  return 0; // THE speedup
32 }
33 
34 void vtkNeverTranslucentTexture::PrintSelf(ostream &os, vtkIndent indent)
35 {
36  this->Superclass::PrintSelf(os, indent);
37  os << indent << "Translucent: NEVER\n";
38 }
39 
40 // Factory code -------------------------------------------------------------
41 
43 
45 {
46  this->RegisterOverride("vtkTexture",
47  "vtkNeverTranslucentTextureFactory",
48  "less translucent texture",
49  1,
50  vtkObjectFactoryCreatevtkNeverTranslucentTexture);
51 }
52 
54 {
56 }
57 
59 {
60  return VTK_SOURCE_VERSION;
61 }
62 
64 {
65  return "Factory for a quickly decided, never translucent, texture";
66 }
VTK Fix to speed up our image rendering.
virtual int IsTranslucent() override
The FIX (see class description).
static vtkNeverTranslucentTextureFactory * New()
VTK_CREATE_CREATE_FUNCTION(vtkNeverTranslucentTexture)
Factory for vtkNeverTranslucentTexture (see this class!).
vtkStandardNewMacro(vtkNeverTranslucentTexture)
virtual const char * GetVTKSourceVersion() override
void PrintSelf(ostream &os, vtkIndent indent) override