Open3D (C++ API)  0.18.0+252c867
Data Structures | Public Member Functions | Static Public Attributes
open3d::visualization::rendering::FilamentResourceManager Class Reference

#include <FilamentResourceManager.h>

Data Structures

struct  BoxedResource
 

Public Member Functions

 FilamentResourceManager (filament::Engine &engine)
 
 ~FilamentResourceManager ()
 
MaterialHandle CreateMaterial (const void *material_data, size_t data_size)
 
MaterialHandle CreateMaterial (const ResourceLoadRequest &request)
 
MaterialInstanceHandle CreateMaterialInstance (const MaterialHandle &id)
 
TextureHandle CreateTexture (const char *path, bool srgb)
 
TextureHandle CreateTexture (const std::shared_ptr< geometry::Image > &image, bool srgb)
 
TextureHandle CreateTexture (const geometry::Image &image, bool srgb)
 
TextureHandle CreateTexture (const t::geometry::Image &image, bool srgb)
 
TextureHandle CreateTextureFilled (const Eigen::Vector3f &color, size_t dimension)
 
TextureHandle CreateColorAttachmentTexture (int width, int height)
 
TextureHandle CreateDepthAttachmentTexture (int width, int height)
 
RenderTargetHandle CreateRenderTarget (TextureHandle color, TextureHandle depth)
 
bool UpdateTexture (TextureHandle texture, const std::shared_ptr< geometry::Image > image, bool srgb)
 
bool UpdateTexture (TextureHandle texture, const t::geometry::Image &image, bool srgb)
 
IndirectLightHandle CreateIndirectLight (const ResourceLoadRequest &request)
 
SkyboxHandle CreateColorSkybox (const Eigen::Vector3f &color)
 
SkyboxHandle CreateSkybox (const ResourceLoadRequest &request)
 
VertexBufferHandle AddVertexBuffer (filament::VertexBuffer *vertex_buffer)
 
void ReuseVertexBuffer (VertexBufferHandle vb)
 
IndexBufferHandle CreateIndexBuffer (size_t indices_count, size_t index_stride)
 
std::weak_ptr< filament::Material > GetMaterial (const MaterialHandle &id)
 
std::weak_ptr< filament::MaterialInstance > GetMaterialInstance (const MaterialInstanceHandle &id)
 
std::weak_ptr< filament::Texture > GetTexture (const TextureHandle &id)
 
std::weak_ptr< filament::RenderTarget > GetRenderTarget (const RenderTargetHandle &id)
 
std::weak_ptr< filament::IndirectLight > GetIndirectLight (const IndirectLightHandle &id)
 
std::weak_ptr< filament::Skybox > GetSkybox (const SkyboxHandle &id)
 
std::weak_ptr< filament::VertexBuffer > GetVertexBuffer (const VertexBufferHandle &id)
 
std::weak_ptr< filament::IndexBuffer > GetIndexBuffer (const IndexBufferHandle &id)
 
void DestroyAll ()
 
void Destroy (const REHandle_abstract &id)
 

Static Public Attributes

static const MaterialHandle kDefaultLit
 
static const MaterialHandle kDefaultLitWithTransparency
 
static const MaterialHandle kDefaultLitSSR
 
static const MaterialHandle kDefaultUnlit
 
static const MaterialHandle kDefaultUnlitWithTransparency
 
static const MaterialHandle kDefaultNormalShader
 
static const MaterialHandle kDefaultDepthShader
 
static const MaterialHandle kDefaultDepthValueShader
 
static const MaterialHandle kDefaultUnlitGradientShader
 
static const MaterialHandle kDefaultUnlitSolidColorShader
 
static const MaterialHandle kDefaultUnlitBackgroundShader
 
static const MaterialHandle kInfinitePlaneShader
 
static const MaterialHandle kDefaultLineShader
 
static const MaterialHandle kDefaultUnlitPolygonOffsetShader
 
static const MaterialInstanceHandle kDepthMaterial
 
static const MaterialInstanceHandle kNormalsMaterial
 
static const MaterialInstanceHandle kColorMapMaterial
 
static const TextureHandle kDefaultTexture
 
static const TextureHandle kDefaultColorMap
 
static const TextureHandle kDefaultNormalMap
 

Constructor & Destructor Documentation

◆ FilamentResourceManager()

open3d::visualization::rendering::FilamentResourceManager::FilamentResourceManager ( filament::Engine &  engine)
explicit

◆ ~FilamentResourceManager()

open3d::visualization::rendering::FilamentResourceManager::~FilamentResourceManager ( )

Member Function Documentation

◆ AddVertexBuffer()

VertexBufferHandle open3d::visualization::rendering::FilamentResourceManager::AddVertexBuffer ( filament::VertexBuffer *  vertex_buffer)

◆ CreateColorAttachmentTexture()

TextureHandle open3d::visualization::rendering::FilamentResourceManager::CreateColorAttachmentTexture ( int  width,
int  height 
)

◆ CreateColorSkybox()

SkyboxHandle open3d::visualization::rendering::FilamentResourceManager::CreateColorSkybox ( const Eigen::Vector3f &  color)

◆ CreateDepthAttachmentTexture()

TextureHandle open3d::visualization::rendering::FilamentResourceManager::CreateDepthAttachmentTexture ( int  width,
int  height 
)

◆ CreateIndexBuffer()

IndexBufferHandle open3d::visualization::rendering::FilamentResourceManager::CreateIndexBuffer ( size_t  indices_count,
size_t  index_stride 
)

◆ CreateIndirectLight()

IndirectLightHandle open3d::visualization::rendering::FilamentResourceManager::CreateIndirectLight ( const ResourceLoadRequest request)

◆ CreateMaterial() [1/2]

MaterialHandle open3d::visualization::rendering::FilamentResourceManager::CreateMaterial ( const ResourceLoadRequest request)

◆ CreateMaterial() [2/2]

MaterialHandle open3d::visualization::rendering::FilamentResourceManager::CreateMaterial ( const void *  material_data,
size_t  data_size 
)

◆ CreateMaterialInstance()

MaterialInstanceHandle open3d::visualization::rendering::FilamentResourceManager::CreateMaterialInstance ( const MaterialHandle id)

◆ CreateRenderTarget()

RenderTargetHandle open3d::visualization::rendering::FilamentResourceManager::CreateRenderTarget ( TextureHandle  color,
TextureHandle  depth 
)

◆ CreateSkybox()

SkyboxHandle open3d::visualization::rendering::FilamentResourceManager::CreateSkybox ( const ResourceLoadRequest request)

◆ CreateTexture() [1/4]

TextureHandle open3d::visualization::rendering::FilamentResourceManager::CreateTexture ( const char *  path,
bool  srgb 
)

◆ CreateTexture() [2/4]

TextureHandle open3d::visualization::rendering::FilamentResourceManager::CreateTexture ( const geometry::Image image,
bool  srgb 
)

◆ CreateTexture() [3/4]

TextureHandle open3d::visualization::rendering::FilamentResourceManager::CreateTexture ( const std::shared_ptr< geometry::Image > &  image,
bool  srgb 
)

◆ CreateTexture() [4/4]

TextureHandle open3d::visualization::rendering::FilamentResourceManager::CreateTexture ( const t::geometry::Image image,
bool  srgb 
)

◆ CreateTextureFilled()

TextureHandle open3d::visualization::rendering::FilamentResourceManager::CreateTextureFilled ( const Eigen::Vector3f &  color,
size_t  dimension 
)

◆ Destroy()

void open3d::visualization::rendering::FilamentResourceManager::Destroy ( const REHandle_abstract id)

◆ DestroyAll()

void open3d::visualization::rendering::FilamentResourceManager::DestroyAll ( )

◆ GetIndexBuffer()

std::weak_ptr< filament::IndexBuffer > open3d::visualization::rendering::FilamentResourceManager::GetIndexBuffer ( const IndexBufferHandle id)

◆ GetIndirectLight()

std::weak_ptr< filament::IndirectLight > open3d::visualization::rendering::FilamentResourceManager::GetIndirectLight ( const IndirectLightHandle id)

◆ GetMaterial()

std::weak_ptr< filament::Material > open3d::visualization::rendering::FilamentResourceManager::GetMaterial ( const MaterialHandle id)

◆ GetMaterialInstance()

std::weak_ptr< filament::MaterialInstance > open3d::visualization::rendering::FilamentResourceManager::GetMaterialInstance ( const MaterialInstanceHandle id)

◆ GetRenderTarget()

std::weak_ptr< filament::RenderTarget > open3d::visualization::rendering::FilamentResourceManager::GetRenderTarget ( const RenderTargetHandle id)

◆ GetSkybox()

std::weak_ptr< filament::Skybox > open3d::visualization::rendering::FilamentResourceManager::GetSkybox ( const SkyboxHandle id)

◆ GetTexture()

std::weak_ptr< filament::Texture > open3d::visualization::rendering::FilamentResourceManager::GetTexture ( const TextureHandle id)

◆ GetVertexBuffer()

std::weak_ptr< filament::VertexBuffer > open3d::visualization::rendering::FilamentResourceManager::GetVertexBuffer ( const VertexBufferHandle id)

◆ ReuseVertexBuffer()

void open3d::visualization::rendering::FilamentResourceManager::ReuseVertexBuffer ( VertexBufferHandle  vb)

◆ UpdateTexture() [1/2]

bool open3d::visualization::rendering::FilamentResourceManager::UpdateTexture ( TextureHandle  texture,
const std::shared_ptr< geometry::Image image,
bool  srgb 
)

◆ UpdateTexture() [2/2]

bool open3d::visualization::rendering::FilamentResourceManager::UpdateTexture ( TextureHandle  texture,
const t::geometry::Image image,
bool  srgb 
)

Field Documentation

◆ kColorMapMaterial

const MaterialInstanceHandle open3d::visualization::rendering::FilamentResourceManager::kColorMapMaterial
static
Initial value:

◆ kDefaultColorMap

const TextureHandle open3d::visualization::rendering::FilamentResourceManager::kDefaultColorMap
static
Initial value:

◆ kDefaultDepthShader

const MaterialHandle open3d::visualization::rendering::FilamentResourceManager::kDefaultDepthShader
static
Initial value:

◆ kDefaultDepthValueShader

const MaterialHandle open3d::visualization::rendering::FilamentResourceManager::kDefaultDepthValueShader
static
Initial value:

◆ kDefaultLineShader

const MaterialHandle open3d::visualization::rendering::FilamentResourceManager::kDefaultLineShader
static
Initial value:

◆ kDefaultLit

const MaterialHandle open3d::visualization::rendering::FilamentResourceManager::kDefaultLit
static
Initial value:

◆ kDefaultLitSSR

const MaterialHandle open3d::visualization::rendering::FilamentResourceManager::kDefaultLitSSR
static
Initial value:

◆ kDefaultLitWithTransparency

const MaterialHandle open3d::visualization::rendering::FilamentResourceManager::kDefaultLitWithTransparency
static
Initial value:

◆ kDefaultNormalMap

const TextureHandle open3d::visualization::rendering::FilamentResourceManager::kDefaultNormalMap
static
Initial value:

◆ kDefaultNormalShader

const MaterialHandle open3d::visualization::rendering::FilamentResourceManager::kDefaultNormalShader
static
Initial value:

◆ kDefaultTexture

const TextureHandle open3d::visualization::rendering::FilamentResourceManager::kDefaultTexture
static
Initial value:

◆ kDefaultUnlit

const MaterialHandle open3d::visualization::rendering::FilamentResourceManager::kDefaultUnlit
static
Initial value:

◆ kDefaultUnlitBackgroundShader

const MaterialHandle open3d::visualization::rendering::FilamentResourceManager::kDefaultUnlitBackgroundShader
static
Initial value:

◆ kDefaultUnlitGradientShader

const MaterialHandle open3d::visualization::rendering::FilamentResourceManager::kDefaultUnlitGradientShader
static
Initial value:

◆ kDefaultUnlitPolygonOffsetShader

const MaterialHandle open3d::visualization::rendering::FilamentResourceManager::kDefaultUnlitPolygonOffsetShader
static
Initial value:

◆ kDefaultUnlitSolidColorShader

const MaterialHandle open3d::visualization::rendering::FilamentResourceManager::kDefaultUnlitSolidColorShader
static
Initial value:

◆ kDefaultUnlitWithTransparency

const MaterialHandle open3d::visualization::rendering::FilamentResourceManager::kDefaultUnlitWithTransparency
static
Initial value:

◆ kDepthMaterial

const MaterialInstanceHandle open3d::visualization::rendering::FilamentResourceManager::kDepthMaterial
static
Initial value:

◆ kInfinitePlaneShader

const MaterialHandle open3d::visualization::rendering::FilamentResourceManager::kInfinitePlaneShader
static
Initial value:

◆ kNormalsMaterial

const MaterialInstanceHandle open3d::visualization::rendering::FilamentResourceManager::kNormalsMaterial
static
Initial value:

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