Open3D (C++ API)
Public Types | Public Member Functions | Static Public Member Functions | Data Fields
open3d::visualization::TextureSamplerParameters Struct Reference

#include <MaterialModifier.h>

Public Types

enum  MinFilter : uint8_t {
  MinFilter::Nearest = 0, MinFilter::Linear, MinFilter::NearestMipmapNearest, MinFilter::LinearMipmapNearest = 3,
  MinFilter::NearestMipmapLinear = 4, MinFilter::LinearMipmapLinear = 5
}
 
enum  MagFilter : uint8_t { MagFilter::Nearest = 0, MagFilter::Linear }
 
enum  WrapMode : uint8_t { WrapMode::ClampToEdge, WrapMode::Repeat, WrapMode::MirroredRepeat }
 

Public Member Functions

 TextureSamplerParameters ()=default
 
 TextureSamplerParameters (MagFilter min_mag, WrapMode uvw=WrapMode::ClampToEdge)
 
 TextureSamplerParameters (MinFilter min, MagFilter mag, WrapMode uvw=WrapMode::ClampToEdge)
 
 TextureSamplerParameters (MinFilter min, MagFilter mag, WrapMode u, WrapMode v, WrapMode w)
 
void SetAnisotropy (std::uint8_t a)
 
std::uint8_t GetAnisotropy () const
 

Static Public Member Functions

static TextureSamplerParameters Simple ()
 
static TextureSamplerParameters Pretty ()
 

Data Fields

MagFilter filter_mag = MagFilter::Nearest
 
MinFilter filter_min = MinFilter::Nearest
 
WrapMode wrap_u = WrapMode::ClampToEdge
 
WrapMode wrap_v = WrapMode::ClampToEdge
 
WrapMode wrap_w = WrapMode::ClampToEdge
 

Member Enumeration Documentation

◆ MagFilter

Enumerator
Nearest 

No filtering. Nearest neighbor is used.

Linear 

Box filtering. Weighted average of 4 neighbors is used.

◆ MinFilter

Enumerator
Nearest 

No filtering. Nearest neighbor is used.

Linear 

Box filtering. Weighted average of 4 neighbors is used.

NearestMipmapNearest 

Mip-mapping is activated. But no filtering occurs.

LinearMipmapNearest 

Box filtering within a mip-map level.

NearestMipmapLinear 

Mip-map levels are interpolated, but no other filtering occurs.

LinearMipmapLinear 

Both interpolated Mip-mapping and linear filtering are used.

◆ WrapMode

Enumerator
ClampToEdge 

clamp-to-edge. The edge of the texture extends to infinity.

Repeat 

repeat. The texture infinitely repeats in the wrap direction.

MirroredRepeat 

mirrored-repeat. The texture infinitely repeats and mirrors in the wrap direction.

Constructor & Destructor Documentation

◆ TextureSamplerParameters() [1/4]

open3d::visualization::TextureSamplerParameters::TextureSamplerParameters ( )
default

◆ TextureSamplerParameters() [2/4]

open3d::visualization::TextureSamplerParameters::TextureSamplerParameters ( MagFilter  min_mag,
WrapMode  uvw = WrapMode::ClampToEdge 
)
explicit

◆ TextureSamplerParameters() [3/4]

open3d::visualization::TextureSamplerParameters::TextureSamplerParameters ( MinFilter  min,
MagFilter  mag,
WrapMode  uvw = WrapMode::ClampToEdge 
)

◆ TextureSamplerParameters() [4/4]

open3d::visualization::TextureSamplerParameters::TextureSamplerParameters ( MinFilter  min,
MagFilter  mag,
WrapMode  u,
WrapMode  v,
WrapMode  w 
)

Member Function Documentation

◆ GetAnisotropy()

std::uint8_t open3d::visualization::TextureSamplerParameters::GetAnisotropy ( ) const
inline

◆ Pretty()

TextureSamplerParameters open3d::visualization::TextureSamplerParameters::Pretty ( )
static

◆ SetAnisotropy()

void open3d::visualization::TextureSamplerParameters::SetAnisotropy ( std::uint8_t  a)

◆ Simple()

TextureSamplerParameters open3d::visualization::TextureSamplerParameters::Simple ( )
static

Field Documentation

◆ filter_mag

MagFilter open3d::visualization::TextureSamplerParameters::filter_mag = MagFilter::Nearest

◆ filter_min

MinFilter open3d::visualization::TextureSamplerParameters::filter_min = MinFilter::Nearest

◆ wrap_u

WrapMode open3d::visualization::TextureSamplerParameters::wrap_u = WrapMode::ClampToEdge

◆ wrap_v

WrapMode open3d::visualization::TextureSamplerParameters::wrap_v = WrapMode::ClampToEdge

◆ wrap_w

WrapMode open3d::visualization::TextureSamplerParameters::wrap_w = WrapMode::ClampToEdge

The documentation for this struct was generated from the following files: