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
28#ifndef vtkRayCastImageDisplayHelper_h
29#define vtkRayCastImageDisplayHelper_h
30
31#include "vtkRenderingVolumeModule.h" // For export macro
32#include "vtkObject.h"
33
35class vtkRenderer;
36class vtkVolume;
37class vtkWindow;
38
39class VTKRENDERINGVOLUME_EXPORT vtkRayCastImageDisplayHelper : public vtkObject
40{
41public:
44 void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
45
46 virtual void RenderTexture( vtkVolume *vol, vtkRenderer *ren,
47 int imageMemorySize[2],
48 int imageViewportSize[2],
49 int imageInUseSize[2],
50 int imageOrigin[2],
51 float requestedDepth,
52 unsigned char *image ) = 0;
53
54 virtual void RenderTexture( vtkVolume *vol, vtkRenderer *ren,
55 int imageMemorySize[2],
56 int imageViewportSize[2],
57 int imageInUseSize[2],
58 int imageOrigin[2],
59 float requestedDepth,
60 unsigned short *image ) = 0;
61
62 virtual void RenderTexture( vtkVolume *vol, vtkRenderer *ren,
64 float requestedDepth ) = 0;
65
66 vtkSetClampMacro( PreMultipliedColors, int, 0, 1 );
67 vtkGetMacro( PreMultipliedColors, int );
68 vtkBooleanMacro( PreMultipliedColors, int );
69
70
72
78 vtkSetMacro( PixelScale, float );
79 vtkGetMacro( PixelScale, float );
81
86
87protected:
90
95
97
98private:
100 void operator=(const vtkRayCastImageDisplayHelper&) VTK_DELETE_FUNCTION;
101};
102
103#endif
104
helper class for a ray cast image
a simple class to control print indentation
Definition: vtkIndent.h:40
abstract base class for most VTK objects
Definition: vtkObject.h:60
helper class that draws the image to the screen
virtual void ReleaseGraphicsResources(vtkWindow *)
Derived class should implemen this if needed.
virtual void RenderTexture(vtkVolume *vol, vtkRenderer *ren, int imageMemorySize[2], int imageViewportSize[2], int imageInUseSize[2], int imageOrigin[2], float requestedDepth, unsigned short *image)=0
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
static vtkRayCastImageDisplayHelper * New()
int PreMultipliedColors
Have the colors already been multiplied by alpha?
virtual void RenderTexture(vtkVolume *vol, vtkRenderer *ren, vtkFixedPointRayCastImage *image, float requestedDepth)=0
virtual void RenderTexture(vtkVolume *vol, vtkRenderer *ren, int imageMemorySize[2], int imageViewportSize[2], int imageInUseSize[2], int imageOrigin[2], float requestedDepth, unsigned char *image)=0
abstract specification for renderers
Definition: vtkRenderer.h:64
represents a volume (data & properties) in a rendered scene
Definition: vtkVolume.h:51
window superclass for vtkRenderWindow
Definition: vtkWindow.h:35
@ image
Definition: vtkX3D.h:374
vtkSetMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkBooleanMacro(IgnoreDriverBugs, bool)
Updates the extensions string.