Open3D (C++ API)
Public Member Functions | Static Public Attributes
open3d::visualization::FilamentResourceManager Class Reference

#include <FilamentResourceManager.h>

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)
 
MaterialInstanceHandle CreateFromDescriptor (const geometry::TriangleMesh::Material &material_attributes)
 
TextureHandle CreateTexture (const char *path)
 
TextureHandle CreateTexture (const std::shared_ptr< geometry::Image > &image)
 
TextureHandle CreateTexture (const geometry::Image &image)
 
TextureHandle CreateTextureFilled (const Eigen::Vector3f &color, size_t dimension)
 
IndirectLightHandle CreateIndirectLight (const ResourceLoadRequest &request)
 
SkyboxHandle CreateSkybox (const ResourceLoadRequest &request)
 
VertexBufferHandle AddVertexBuffer (filament::VertexBuffer *vertex_buffer)
 
IndexBufferHandle CreateIndexBuffer (size_t indices_count, size_t index_stride)
 
std::weak_ptr< filament::MaterialGetMaterial (const MaterialHandle &id)
 
std::weak_ptr< filament::MaterialInstanceGetMaterialInstance (const MaterialInstanceHandle &id)
 
std::weak_ptr< filament::TextureGetTexture (const TextureHandle &id)
 
std::weak_ptr< filament::IndirectLightGetIndirectLight (const IndirectLightHandle &id)
 
std::weak_ptr< filament::SkyboxGetSkybox (const SkyboxHandle &id)
 
std::weak_ptr< filament::VertexBufferGetVertexBuffer (const VertexBufferHandle &id)
 
std::weak_ptr< filament::IndexBufferGetIndexBuffer (const IndexBufferHandle &id)
 
void DestroyAll ()
 
void Destroy (const REHandle_abstract &id)
 

Static Public Attributes

static const MaterialHandle kDefaultLit
 
static const MaterialHandle kDefaultUnlit
 
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::FilamentResourceManager::FilamentResourceManager ( filament::Engine &  engine)
explicit

◆ ~FilamentResourceManager()

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

Member Function Documentation

◆ AddVertexBuffer()

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

◆ CreateFromDescriptor()

MaterialInstanceHandle open3d::visualization::FilamentResourceManager::CreateFromDescriptor ( const geometry::TriangleMesh::Material material_attributes)

◆ CreateIndexBuffer()

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

◆ CreateIndirectLight()

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

◆ CreateMaterial() [1/2]

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

◆ CreateMaterial() [2/2]

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

◆ CreateMaterialInstance()

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

◆ CreateSkybox()

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

◆ CreateTexture() [1/3]

TextureHandle open3d::visualization::FilamentResourceManager::CreateTexture ( const char *  path)

◆ CreateTexture() [2/3]

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

◆ CreateTexture() [3/3]

TextureHandle open3d::visualization::FilamentResourceManager::CreateTexture ( const geometry::Image image)

◆ CreateTextureFilled()

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

◆ Destroy()

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

◆ DestroyAll()

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

◆ GetIndexBuffer()

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

◆ GetIndirectLight()

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

◆ GetMaterial()

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

◆ GetMaterialInstance()

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

◆ GetSkybox()

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

◆ GetTexture()

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

◆ GetVertexBuffer()

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

Field Documentation

◆ kColorMapMaterial

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

◆ kDefaultColorMap

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

◆ kDefaultLit

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

◆ kDefaultNormalMap

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

◆ kDefaultTexture

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

◆ kDefaultUnlit

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

◆ kDepthMaterial

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

◆ kNormalsMaterial

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

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