VTK
vtkRayCastImageDisplayHelper.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkRayCastImageDisplayHelper.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
15 
27 #ifndef vtkRayCastImageDisplayHelper_h
28 #define vtkRayCastImageDisplayHelper_h
29 
30 #include "vtkRenderingVolumeModule.h" // For export macro
31 #include "vtkObject.h"
32 
34 class vtkRenderer;
35 class vtkVolume;
36 class vtkWindow;
37 
39 {
40 public:
43  virtual void PrintSelf(ostream& os, vtkIndent indent);
44 
45  virtual void RenderTexture( vtkVolume *vol, vtkRenderer *ren,
46  int imageMemorySize[2],
47  int imageViewportSize[2],
48  int imageInUseSize[2],
49  int imageOrigin[2],
50  float requestedDepth,
51  unsigned char *image ) = 0;
52 
53  virtual void RenderTexture( vtkVolume *vol, vtkRenderer *ren,
54  int imageMemorySize[2],
55  int imageViewportSize[2],
56  int imageInUseSize[2],
57  int imageOrigin[2],
58  float requestedDepth,
59  unsigned short *image ) = 0;
60 
61  virtual void RenderTexture( vtkVolume *vol, vtkRenderer *ren,
63  float requestedDepth ) = 0;
64 
65  vtkSetClampMacro( PreMultipliedColors, int, 0, 1 );
66  vtkGetMacro( PreMultipliedColors, int );
67  vtkBooleanMacro( PreMultipliedColors, int );
68 
69 
71 
75  vtkSetMacro( PixelScale, float );
76  vtkGetMacro( PixelScale, float );
78 
80  virtual void ReleaseGraphicsResources(vtkWindow *) { }
81 
82 protected:
85 
88 
89  float PixelScale;
90 
91 private:
93  void operator=(const vtkRayCastImageDisplayHelper&); // Not implemented.
94 };
95 
96 #endif
97 
represents a volume (data & properties) in a rendered scene
Definition: vtkVolume.h:49
abstract base class for most VTK objects
Definition: vtkObject.h:61
#define VTKRENDERINGVOLUME_EXPORT
virtual void ReleaseGraphicsResources(vtkWindow *)
abstract specification for renderers
Definition: vtkRenderer.h:62
helper class that draws the image to the screen
window superclass for vtkRenderWindow
Definition: vtkWindow.h:36
virtual void PrintSelf(ostream &os, vtkIndent indent)
a simple class to control print indentation
Definition: vtkIndent.h:38
static vtkObject * New()
helper class for a ray cast image