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 "vtkObject.h"
31 
32 class vtkVolume;
33 class vtkRenderer;
35 
37 {
38 public:
41  virtual void PrintSelf(ostream& os, vtkIndent indent);
42 
43  virtual void RenderTexture( vtkVolume *vol, vtkRenderer *ren,
44  int imageMemorySize[2],
45  int imageViewportSize[2],
46  int imageInUseSize[2],
47  int imageOrigin[2],
48  float requestedDepth,
49  unsigned char *image ) = 0;
50 
51  virtual void RenderTexture( vtkVolume *vol, vtkRenderer *ren,
52  int imageMemorySize[2],
53  int imageViewportSize[2],
54  int imageInUseSize[2],
55  int imageOrigin[2],
56  float requestedDepth,
57  unsigned short *image ) = 0;
58 
59  virtual void RenderTexture( vtkVolume *vol, vtkRenderer *ren,
61  float requestedDepth ) = 0;
62 
63  vtkSetClampMacro( PreMultipliedColors, int, 0, 1 );
64  vtkGetMacro( PreMultipliedColors, int );
65  vtkBooleanMacro( PreMultipliedColors, int );
66 
67 
69 
73  vtkSetMacro( PixelScale, float );
74  vtkGetMacro( PixelScale, float );
76 
77 protected:
80 
83 
84  float PixelScale;
85 
86 private:
88  void operator=(const vtkRayCastImageDisplayHelper&); // Not implemented.
89 };
90 
91 #endif
92 
represents a volume (data & properties) in a rendered scene
Definition: vtkVolume.h:48
abstract base class for most VTK objects
Definition: vtkObject.h:60
#define VTK_VOLUMERENDERING_EXPORT
abstract specification for renderers
Definition: vtkRenderer.h:69
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:37
static vtkObject * New()
helper class for a ray cast image