Open3D (C++ API)  0.11.0
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 CreateTextureFilled (const Eigen::Vector3f &color, size_t dimension)
 
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::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 kDefaultLitWithTransparency
 
static const MaterialHandle kDefaultUnlit
 
static const MaterialHandle kDefaultNormalShader
 
static const MaterialHandle kDefaultDepthShader
 
static const MaterialHandle kDefaultUnlitGradientShader
 
static const MaterialHandle kDefaultUnlitSolidColorShader
 
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)

◆ CreateColorSkybox()

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

◆ 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 void *  material_data,
size_t  data_size 
)

◆ CreateMaterial() [2/2]

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

◆ CreateMaterialInstance()

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

◆ CreateSkybox()

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

◆ CreateTexture() [1/3]

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

◆ CreateTexture() [2/3]

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

◆ CreateTexture() [3/3]

TextureHandle open3d::visualization::rendering::FilamentResourceManager::CreateTexture ( const 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)

◆ 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)

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:

◆ kDefaultLit

const MaterialHandle open3d::visualization::rendering::FilamentResourceManager::kDefaultLit
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:

◆ kDefaultUnlitGradientShader

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

◆ kDefaultUnlitSolidColorShader

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

◆ kDepthMaterial

const MaterialInstanceHandle open3d::visualization::rendering::FilamentResourceManager::kDepthMaterial
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: