 |
VTK
9.1.0
|
Go to the documentation of this file.
159 #include "vtkRenderingCoreModule.h"
170 #define VTK_TEXTURE_QUALITY_DEFAULT 0
171 #define VTK_TEXTURE_QUALITY_16BIT 16
172 #define VTK_TEXTURE_QUALITY_32BIT 32
221 vtkGetMacro(Mipmap,
bool);
222 vtkSetMacro(Mipmap,
bool);
223 vtkBooleanMacro(Mipmap,
bool);
233 vtkSetMacro(MaximumAnisotropicFiltering,
float);
234 vtkGetMacro(MaximumAnisotropicFiltering,
float);
242 vtkSetMacro(Quality,
int);
243 vtkGetMacro(Quality,
int);
260 vtkSetMacro(ColorMode,
int);
261 vtkGetMacro(ColorMode,
int);
308 VTK_TEXTURE_BLENDING_MODE_NONE = 0,
314 VTK_TEXTURE_BLENDING_MODE_SUBTRACT
322 vtkGetMacro(BlendingMode,
int);
323 vtkSetMacro(BlendingMode,
int);
331 vtkGetMacro(PremultipliedAlpha,
bool);
332 vtkSetMacro(PremultipliedAlpha,
bool);
333 vtkBooleanMacro(PremultipliedAlpha,
bool);
369 vtkGetMacro(CubeMap,
bool);
370 vtkBooleanMacro(CubeMap,
bool);
381 vtkGetMacro(UseSRGBColorSpace,
bool);
382 vtkSetMacro(UseSRGBColorSpace,
bool);
383 vtkBooleanMacro(UseSRGBColorSpace,
bool);
395 vtkSetVector4Macro(BorderColor,
float);
396 vtkGetVector4Macro(BorderColor,
float);
422 vtkGetMacro(Wrap,
int);
423 vtkSetClampMacro(Wrap,
int, ClampToEdge, ClampToBorder);
454 float BorderColor[4];
@ VTK_TEXTURE_BLENDING_MODE_ADD_SIGNED
@ VTK_TEXTURE_BLENDING_MODE_ADD
int SelfAdjustingTableRange
#define VTK_COLOR_MODE_MAP_SCALARS
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
virtual void EdgeClampOn()
Convenience functions to maintain backwards compatibility.
void SetColorModeToDefault()
Default: ColorModeToDefault.
vtkTypeBool RestrictPowerOf2ImageSmaller
virtual void Render(vtkRenderer *ren)
Renders a texture map.
void ExecuteData(vtkDataObject *) override
This method is the old style execute method, provided for the sake of backwards compatibility with ol...
vtkTimeStamp TranslucentComputationTime
record modification and/or execution time
dynamic, self-adjusting array of unsigned char
unsigned char * MapScalarsToColors(vtkDataArray *scalars)
Map scalar values into color scalars.
abstract superclass for arrays of numeric data
Generic algorithm superclass for image algs.
vtkUnsignedCharArray * MappedScalars
void SetQualityTo32Bit()
Force texture quality to 16-bit or 32-bit.
void SetColorModeToDirectScalars()
Default: ColorModeToDefault.
window superclass for vtkRenderWindow
virtual void EdgeClampOff()
Convenience functions to maintain backwards compatibility.
#define VTK_TEXTURE_QUALITY_DEFAULT
handles properties associated with a texture map
void SetCubeMap(bool val)
Is this texture a cube map, if so it needs 6 inputs one for each side of the cube.
void SetColorModeToMapScalars()
Default: ColorModeToDefault.
float MaximumAnisotropicFiltering
void SetQualityTo16Bit()
Force texture quality to 16-bit or 32-bit.
topologically and geometrically regular array of data
a simple class to control print indentation
virtual void RepeatOn()
Convenience functions to maintain backwards compatibility.
VTKTextureBlendingMode
Used to specify how the texture will blend its RGB and Alpha values with other textures and the fragm...
virtual vtkTypeBool GetRepeat()
Convenience functions to maintain backwards compatibility.
void SetLookupTable(vtkScalarsToColors *)
Specify the lookup table to convert scalars if necessary.
void SetTransform(vtkTransform *transform)
Set a transform on the texture which allows one to scale, rotate and translate the texture.
virtual void SetEdgeClamp(vtkTypeBool)
Convenience functions to maintain backwards compatibility.
virtual void RepeatOff()
Convenience functions to maintain backwards compatibility.
virtual void PostRender(vtkRenderer *)
Cleans up after the texture rendering to restore the state of the graphics context.
Superclass for mapping scalar values to colors.
virtual void Load(vtkRenderer *)
Abstract interface to renderer.
@ VTK_TEXTURE_BLENDING_MODE_INTERPOLATE
virtual void SetRepeat(vtkTypeBool r)
Convenience functions to maintain backwards compatibility.
int TranslucentCachedResult
#define VTK_COLOR_MODE_DEFAULT
vtkImageData * GetInput()
Get the input as a vtkImageData object.
#define VTK_TEXTURE_QUALITY_32BIT
vtkScalarsToColors * LookupTable
abstract specification for renderers
static vtkTexture * New()
#define VTK_COLOR_MODE_DIRECT_SCALARS
virtual vtkTypeBool GetEdgeClamp()
Convenience functions to maintain backwards compatibility.
virtual int IsTranslucent()
Is this Texture Translucent? returns false (0) if the texture is either fully opaque or has only full...
virtual int GetTextureUnit()
Return the texture unit used for this texture.
@ VTK_TEXTURE_BLENDING_MODE_REPLACE
virtual void ReleaseGraphicsResources(vtkWindow *)
Release any graphics resources that are being consumed by this texture.
general representation of visualization data
@ VTK_TEXTURE_BLENDING_MODE_MODULATE
void SetQualityToDefault()
Force texture quality to 16-bit or 32-bit.
#define VTK_TEXTURE_QUALITY_16BIT