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

#include <MaterialModifier.h>

Public Types

enum class  MinFilter : uint8_t {
  Nearest = 0 , Linear , NearestMipmapNearest , LinearMipmapNearest = 3 ,
  NearestMipmapLinear = 4 , LinearMipmapLinear = 5
}
 
enum class  MagFilter : uint8_t { Nearest = 0 , Linear }
 
enum class  WrapMode : uint8_t { ClampToEdge , Repeat , 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 ()
 
static TextureSamplerParameters LinearClamp ()
 

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::rendering::TextureSamplerParameters::TextureSamplerParameters ( )
default

◆ TextureSamplerParameters() [2/4]

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

◆ TextureSamplerParameters() [3/4]

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

◆ TextureSamplerParameters() [4/4]

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

Member Function Documentation

◆ GetAnisotropy()

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

◆ LinearClamp()

TextureSamplerParameters open3d::visualization::rendering::TextureSamplerParameters::LinearClamp ( )
static

◆ Pretty()

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

◆ SetAnisotropy()

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

◆ Simple()

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

Field Documentation

◆ filter_mag

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

◆ filter_min

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

◆ wrap_u

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

◆ wrap_v

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

◆ wrap_w

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

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