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 
33 class vtkVolume;
34 class vtkRenderer;
36 
38 {
39 public:
42  virtual void PrintSelf(ostream& os, vtkIndent indent);
43 
44  virtual void RenderTexture( vtkVolume *vol, vtkRenderer *ren,
45  int imageMemorySize[2],
46  int imageViewportSize[2],
47  int imageInUseSize[2],
48  int imageOrigin[2],
49  float requestedDepth,
50  unsigned char *image ) = 0;
51 
52  virtual void RenderTexture( vtkVolume *vol, vtkRenderer *ren,
53  int imageMemorySize[2],
54  int imageViewportSize[2],
55  int imageInUseSize[2],
56  int imageOrigin[2],
57  float requestedDepth,
58  unsigned short *image ) = 0;
59 
60  virtual void RenderTexture( vtkVolume *vol, vtkRenderer *ren,
62  float requestedDepth ) = 0;
63 
64  vtkSetClampMacro( PreMultipliedColors, int, 0, 1 );
65  vtkGetMacro( PreMultipliedColors, int );
66  vtkBooleanMacro( PreMultipliedColors, int );
67 
68 
70 
74  vtkSetMacro( PixelScale, float );
75  vtkGetMacro( PixelScale, float );
77 
78 protected:
81 
84 
85  float PixelScale;
86 
87 private:
89  void operator=(const vtkRayCastImageDisplayHelper&); // Not implemented.
90 };
91 
92 #endif
93 
represents a volume (data & properties) in a rendered scene
Definition: vtkVolume.h:49
abstract base class for most VTK objects
Definition: vtkObject.h:61
GLenum GLsizei GLenum GLenum const GLvoid * image
Definition: vtkgl.h:11341
#define VTKRENDERINGVOLUME_EXPORT
#define vtkGetMacro(name, type)
Definition: vtkSetGet.h:83
abstract specification for renderers
Definition: vtkRenderer.h:63
#define vtkSetClampMacro(name, type, min, max)
Definition: vtkSetGet.h:133
#define vtkTypeMacro(thisClass, superclass)
Definition: vtkSetGet.h:619
helper class that draws the image to the screen
virtual void PrintSelf(ostream &os, vtkIndent indent)
a simple class to control print indentation
Definition: vtkIndent.h:38
#define vtkBooleanMacro(name, type)
Definition: vtkSetGet.h:234
static vtkObject * New()
#define vtkSetMacro(name, type)
Definition: vtkSetGet.h:69
helper class for a ray cast image