77 #ifndef vtkVolumeTextureMapper3D_h 78 #define vtkVolumeTextureMapper3D_h 80 #include "vtkRenderingVolumeModule.h" 87 #if !defined(VTK_LEGACY_REMOVE) 104 vtkGetMacro( SampleDistance,
float );
111 vtkGetVectorMacro( VolumeDimensions,
int, 3 );
118 vtkGetVectorMacro( VolumeSpacing,
float, 3 );
136 vtkGetMacro( NumberOfPolygons,
int );
144 vtkGetMacro( ActualSampleDistance,
float );
159 FRAGMENT_PROGRAM_METHOD=0,
176 vtkSetClampMacro( PreferredRenderMethod,
int,
183 vtkGetMacro(PreferredRenderMethod,
int);
197 vtkGetMacro(UseCompressedTexture,
bool);
204 float *PolygonBuffer;
205 float *IntersectionBuffer;
206 int NumberOfPolygons;
209 unsigned char *Volume1;
210 unsigned char *Volume2;
211 unsigned char *Volume3;
213 int VolumeComponents;
214 int VolumeDimensions[3];
215 float VolumeSpacing[3];
217 float SampleDistance;
218 float ActualSampleDistance;
227 int SavedColorChannels;
228 float SavedSampleDistance;
229 float SavedScalarOpacityDistance;
231 unsigned char ColorLookup[65536*4];
232 unsigned char AlphaLookup[65536];
233 float TempArray1[3*4096];
234 float TempArray2[4096];
236 float ColorTableScale;
237 float ColorTableOffset;
239 unsigned char DiffuseLookup[65536*4];
240 unsigned char SpecularLookup[65536*4];
246 int PreferredRenderMethod;
247 bool UseCompressedTexture;
249 bool SupportsNonPowerOfTwoTextures;
269 virtual
int IsTextureSizeSupported(
int vtkNotUsed(
size)[3],
270 int vtkNotUsed(components))
280 #endif // VTK_LEGACY_REMOVE represents a volume (data & properties) in a rendered scene
Abstract class for a volume mapper.
volume render with 3D texture mapping
Defines a 1D piecewise function.
record modification and/or execution time
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...
abstract specification for renderers
void Render(vtkRenderer *, vtkVolume *) override
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE DO NOT USE THIS METHOD OUTSIDE OF THE RENDERI...
void SetPreferredMethodToFragmentProgram()
Set the preferred render method.
a simple class to control print indentation
topologically and geometrically regular array of data
represents the common properties for rendering a volume.
vtkSetMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
Defines a transfer function for mapping a property to an RGB color value.
static vtkAlgorithm * New()
void SetPreferredMethodToNVidia()
Set the preferred render method.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.