Nuke binary plugins 16.0.8
 
Loading...
Searching...
No Matches
DD::Image::TextureFilter Class Reference

#include <TextureFilter.h>

Inheritance diagram for DD::Image::TextureFilter:
DD::Image::Filter

Public Types

enum  {
  Nearest , Bilinear , Trilinear , Anisotropic ,
  NumFilters
}
 Built-in filter types. More...
 
- Public Types inherited from DD::Image::Filter
enum  {
  Impulse , Cubic , Keys , Simon ,
  Rifman , Mitchell , Parzen , Notch ,
  Lanczos4 , Lanczos6 , Sinc4 , NumFilters
}
 

Public Member Functions

 TextureFilter (int type=Filter::Cubic, bool enableMipType=false)
 
void knobs (Knob_Callback, const char *name="filter", const char *label=nullptr)
 
bool isMipTypeEnabled () const
 Returns true if the filter instance supports a mipmap filtering type.
 
bool isMipMap () const
 Returns true if the filter needs mip levels.
 
void initialize ()
 If not a mip map type calls Filter::initialize().
 
int type () const
 Filter's assigned type.
 
void type (int type)
 Set the filter type.
 
virtual bool IsMipMappingFilter (int type) const
 
- Public Member Functions inherited from DD::Image::Filter
int type () const
 
void type (int t)
 
KnobfilterKnob ()
 
 Filter (int type=Cubic)
 
void initialize ()
 
bool get (float position, float width, Coefficients &) const
 
bool impulse () const
 
bool interpolative () const
 
void knobs (Knob_Callback, const char *name="filter", const char *label=nullptr)
 

Protected Attributes

bool _enableMipType
 
- Protected Attributes inherited from DD::Image::Filter
int type_
 Enumeration in built-in list.
 
float * filter_array
 Filter data in an XY array.
 
Knobfilter_knob_
 

Additional Inherited Members

- Static Public Attributes inherited from DD::Image::Filter
static const char * NAMES []
 Name text array for menus.
 
static const char * HELP
 Help text for tooltips.
 

Detailed Description

Like DD::Image::Filter but specific to sampling textures in a 3d rendering context.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum

Built-in filter types.

Enumerator
Nearest 

Fastest and crudest, sample the nearest texel from the appropriate mipmap level.

Bilinear 

Remove blockiness, sample and interpolate the four nearest texels from the appropriate mipmap level.

Trilinear 

Smooth interpolation of texture according to the distance, bilinearly interpolates between two closest mipmap levels.

Anisotropic 

Highest quality, gives better result when shading surfaces with a high angle relative to the camera.

Member Function Documentation

◆ IsMipMappingFilter()

virtual bool DD::Image::TextureFilter::IsMipMappingFilter ( int  type) const
inlinevirtual

Does the filter type enum implement mip-mapping? A subclass can redefine this to support additional filter types that mipmap.



©2025 The Foundry Visionmongers, Ltd. All Rights Reserved.
www.foundry.com