Go to the documentation of this file.
83 #ifndef vtkVolumeTextureMapper3D_h
84 #define vtkVolumeTextureMapper3D_h
86 #include "vtkRenderingVolumeModule.h"
93 #if !defined(VTK_LEGACY_REMOVE)
110 vtkGetMacro( SampleDistance,
float );
117 vtkGetVectorMacro( VolumeDimensions,
int, 3 );
124 vtkGetVectorMacro( VolumeSpacing,
float, 3 );
142 vtkGetMacro( NumberOfPolygons,
int );
150 vtkGetMacro( ActualSampleDistance,
float );
165 FRAGMENT_PROGRAM_METHOD=0,
182 vtkSetClampMacro( PreferredRenderMethod,
int,
189 vtkGetMacro(PreferredRenderMethod,
int);
203 vtkGetMacro(UseCompressedTexture,
bool);
220 int VolumeDimensions[3];
221 float VolumeSpacing[3];
237 unsigned char ColorLookup[65536*4];
238 unsigned char AlphaLookup[65536];
239 float TempArray1[3*4096];
240 float TempArray2[4096];
245 unsigned char DiffuseLookup[65536*4];
246 unsigned char SpecularLookup[65536*4];
276 int vtkNotUsed(components))
286 #endif // VTK_LEGACY_REMOVE
vtkPiecewiseFunction * SavedScalarOpacityFunction
volume render with 3D texture mapping
Abstract class for a volume mapper.
void ComputePolygons(vtkRenderer *ren, vtkVolume *vol, double bounds[6])
For the given viewing direction, compute the set of polygons.
represents a volume (data & properties) in a rendered scene
vtkVolumeTextureMapper3D()
@ FRAGMENT_PROGRAM_METHOD
vtkTimeStamp SavedTextureMTime
vtkColorTransferFunction * SavedRGBFunction
int UpdateColorLookup(vtkVolume *)
record modification and/or execution time
int UpdateVolumes(vtkVolume *)
Update the internal RGBA representation of the volume.
void SetPreferredMethodToNVidia()
vtkImageData * SavedParametersInput
Defines a transfer function for mapping a property to an RGB color value.
float * IntersectionBuffer
static vtkVolumeTextureMapper3D * New()
int GetNumberOfScalarComponents(vtkImageData *input)
Returns the number of components of the point scalar field.
void SetPreferredMethodToFragmentProgram()
float SavedScalarOpacityDistance
float SavedSampleDistance
int PreferredRenderMethod
topologically and geometrically regular array of data
a simple class to control print indentation
float ActualSampleDistance
vtkPiecewiseFunction * SavedGrayFunction
bool SupportsNonPowerOfTwoTextures
virtual void Render(vtkRenderer *, vtkVolume *)
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE DO NOT USE THIS METHOD OUTSIDE OF THE RENDERI...
virtual int IsRenderSupported(vtkVolumeProperty *, vtkRenderer *vtkNotUsed(r))
Based on hardware and properties, we may or may not be able to render using 3D texture mapping.
Defines a 1D piecewise function.
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
vtkSetMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
virtual int IsTextureSizeSupported(int vtkNotUsed(size)[3], int vtkNotUsed(components))
Impemented in subclass - check is texture size is OK.
bool UseCompressedTexture
abstract specification for renderers
vtkImageData * SavedTextureInput
vtkTimeStamp SavedParametersMTime
vtkPiecewiseFunction * SavedGradientOpacityFunction
~vtkVolumeTextureMapper3D()
represents the common properties for rendering a volume.