150#include "vtkRenderingCoreModule.h"
154VTK_ABI_NAMESPACE_BEGIN
163#define VTK_TEXTURE_QUALITY_DEFAULT 0
164#define VTK_TEXTURE_QUALITY_16BIT 16
165#define VTK_TEXTURE_QUALITY_32BIT 32
214 vtkGetMacro(Mipmap,
bool);
215 vtkSetMacro(Mipmap,
bool);
216 vtkBooleanMacro(Mipmap,
bool);
226 vtkSetMacro(MaximumAnisotropicFiltering,
float);
227 vtkGetMacro(MaximumAnisotropicFiltering,
float);
235 vtkSetMacro(Quality,
int);
236 vtkGetMacro(Quality,
int);
253 vtkSetMacro(ColorMode,
int);
254 vtkGetMacro(ColorMode,
int);
301 VTK_TEXTURE_BLENDING_MODE_NONE = 0,
307 VTK_TEXTURE_BLENDING_MODE_SUBTRACT
315 vtkGetMacro(BlendingMode,
int);
316 vtkSetMacro(BlendingMode,
int);
324 vtkGetMacro(PremultipliedAlpha,
bool);
325 vtkSetMacro(PremultipliedAlpha,
bool);
326 vtkBooleanMacro(PremultipliedAlpha,
bool);
362 vtkGetMacro(CubeMap,
bool);
363 vtkBooleanMacro(CubeMap,
bool);
374 vtkGetMacro(UseSRGBColorSpace,
bool);
375 vtkSetMacro(UseSRGBColorSpace,
bool);
376 vtkBooleanMacro(UseSRGBColorSpace,
bool);
388 vtkSetVector4Macro(BorderColor,
float);
389 vtkGetVector4Macro(BorderColor,
float);
415 vtkGetMacro(Wrap,
int);
416 vtkSetClampMacro(Wrap,
int, ClampToEdge, ClampToBorder);
447 float BorderColor[4];
abstract superclass for arrays of numeric data
general representation of visualization data
Generic algorithm superclass for image algs.
topologically and geometrically regular array of data
a simple class to control print indentation
abstract specification for renderers
Superclass for mapping scalar values to colors.
handles properties associated with a texture map
virtual vtkTypeBool GetRepeat()
Convenience functions to maintain backwards compatibility.
virtual void Render(vtkRenderer *ren)
Renders a texture map.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkImageData * GetInput()
Get the input as a vtkImageData object.
void SetQualityToDefault()
Force texture quality to 16-bit or 32-bit.
virtual void RepeatOff()
Convenience functions to maintain backwards compatibility.
void SetColorModeToDirectScalars()
Default: ColorModeToDefault.
vtkUnsignedCharArray * MappedScalars
void SetQualityTo16Bit()
Force texture quality to 16-bit or 32-bit.
vtkTypeBool RestrictPowerOf2ImageSmaller
virtual void Load(vtkRenderer *)
Abstract interface to renderer.
virtual void SetRepeat(vtkTypeBool r)
Convenience functions to maintain backwards compatibility.
int SelfAdjustingTableRange
static vtkTexture * New()
float MaximumAnisotropicFiltering
unsigned char * MapScalarsToColors(vtkDataArray *scalars)
Map scalar values into color scalars.
virtual int IsTranslucent()
Is this Texture Translucent? returns false (0) if the texture is either fully opaque or has only full...
VTKTextureBlendingMode
Used to specify how the texture will blend its RGB and Alpha values with other textures and the fragm...
@ VTK_TEXTURE_BLENDING_MODE_MODULATE
@ VTK_TEXTURE_BLENDING_MODE_ADD
@ VTK_TEXTURE_BLENDING_MODE_REPLACE
@ VTK_TEXTURE_BLENDING_MODE_INTERPOLATE
@ VTK_TEXTURE_BLENDING_MODE_ADD_SIGNED
void SetTransform(vtkTransform *transform)
Set a transform on the texture which allows one to scale, rotate and translate the texture.
virtual void EdgeClampOff()
Convenience functions to maintain backwards compatibility.
virtual void ReleaseGraphicsResources(vtkWindow *)
Release any graphics resources that are being consumed by this texture.
void SetQualityTo32Bit()
Force texture quality to 16-bit or 32-bit.
virtual vtkTypeBool GetEdgeClamp()
Convenience functions to maintain backwards compatibility.
virtual void EdgeClampOn()
Convenience functions to maintain backwards compatibility.
virtual void RepeatOn()
Convenience functions to maintain backwards compatibility.
void SetCubeMap(bool val)
Is this texture a cube map, if so it needs 6 inputs one for each side of the cube.
virtual void PostRender(vtkRenderer *)
Cleans up after the texture rendering to restore the state of the graphics context.
int TranslucentCachedResult
void SetLookupTable(vtkScalarsToColors *)
Specify the lookup table to convert scalars if necessary.
vtkTimeStamp TranslucentComputationTime
void ExecuteData(vtkDataObject *) override
This method is the old style execute method, provided for the sake of backwards compatibility with ol...
virtual int GetTextureUnit()
Return the texture unit used for this texture.
void SetColorModeToDefault()
Default: ColorModeToDefault.
void SetColorModeToMapScalars()
Default: ColorModeToDefault.
virtual void SetEdgeClamp(vtkTypeBool)
Convenience functions to maintain backwards compatibility.
vtkScalarsToColors * LookupTable
record modification and/or execution time
dynamic, self-adjusting array of unsigned char
window superclass for vtkRenderWindow
#define VTK_COLOR_MODE_MAP_SCALARS
#define VTK_COLOR_MODE_DEFAULT
#define VTK_COLOR_MODE_DIRECT_SCALARS
#define VTK_TEXTURE_QUALITY_DEFAULT
#define VTK_TEXTURE_QUALITY_32BIT
#define VTK_TEXTURE_QUALITY_16BIT
#define VTK_MARSHALMANUAL