Open3D (C++ API)  0.17.0
Public Member Functions
open3d::visualization::rendering::Renderer Class Referenceabstract

#include <Renderer.h>

Inheritance diagram for open3d::visualization::rendering::Renderer:
open3d::visualization::rendering::FilamentRenderer

Public Member Functions

virtual ~Renderer ()=default
 
virtual SceneHandle CreateScene ()=0
 
virtual SceneGetScene (const SceneHandle &id) const =0
 
virtual void DestroyScene (const SceneHandle &id)=0
 
virtual void SetClearColor (const Eigen::Vector4f &color)=0
 
virtual void UpdateSwapChain ()=0
 
virtual void UpdateBitmapSwapChain (int width, int height)=0
 
virtual void BeginFrame ()=0
 
virtual void Draw ()=0
 
virtual void RequestReadPixels (int width, int height, std::function< void(std::shared_ptr< core::Tensor >)> callback)=0
 
virtual void EndFrame ()=0
 
virtual void SetOnAfterDraw (std::function< void()> callback)=0
 
virtual MaterialHandle AddMaterial (const ResourceLoadRequest &request)=0
 
virtual MaterialInstanceHandle AddMaterialInstance (const MaterialHandle &material)=0
 
virtual MaterialModifierModifyMaterial (const MaterialHandle &id)=0
 
virtual MaterialModifierModifyMaterial (const MaterialInstanceHandle &id)=0
 
virtual void RemoveMaterialInstance (const MaterialInstanceHandle &id)=0
 
virtual TextureHandle AddTexture (const ResourceLoadRequest &request, bool srgb=false)=0
 
virtual TextureHandle AddTexture (const std::shared_ptr< geometry::Image > image, bool srgb=false)=0
 
virtual TextureHandle AddTexture (const t::geometry::Image &image, bool srgb=false)=0
 
virtual bool UpdateTexture (TextureHandle texture, const std::shared_ptr< geometry::Image > image, bool srgb)=0
 
virtual bool UpdateTexture (TextureHandle texture, const t::geometry::Image &image, bool srgb)=0
 
virtual void RemoveTexture (const TextureHandle &id)=0
 
virtual IndirectLightHandle AddIndirectLight (const ResourceLoadRequest &request)=0
 
virtual void RemoveIndirectLight (const IndirectLightHandle &id)=0
 
virtual SkyboxHandle AddSkybox (const ResourceLoadRequest &request)=0
 
virtual void RemoveSkybox (const SkyboxHandle &id)=0
 
virtual std::shared_ptr< RenderToBufferCreateBufferRenderer ()=0
 
void RenderToImage (View *view, Scene *scene, std::function< void(std::shared_ptr< geometry::Image >)> cb)
 
void RenderToDepthImage (View *view, Scene *scene, std::function< void(std::shared_ptr< geometry::Image >)> cb, bool z_in_view_space=false)
 

Constructor & Destructor Documentation

◆ ~Renderer()

virtual open3d::visualization::rendering::Renderer::~Renderer ( )
virtualdefault

Member Function Documentation

◆ AddIndirectLight()

virtual IndirectLightHandle open3d::visualization::rendering::Renderer::AddIndirectLight ( const ResourceLoadRequest request)
pure virtual

◆ AddMaterial()

virtual MaterialHandle open3d::visualization::rendering::Renderer::AddMaterial ( const ResourceLoadRequest request)
pure virtual

◆ AddMaterialInstance()

virtual MaterialInstanceHandle open3d::visualization::rendering::Renderer::AddMaterialInstance ( const MaterialHandle material)
pure virtual

◆ AddSkybox()

virtual SkyboxHandle open3d::visualization::rendering::Renderer::AddSkybox ( const ResourceLoadRequest request)
pure virtual

◆ AddTexture() [1/3]

virtual TextureHandle open3d::visualization::rendering::Renderer::AddTexture ( const ResourceLoadRequest request,
bool  srgb = false 
)
pure virtual

◆ AddTexture() [2/3]

virtual TextureHandle open3d::visualization::rendering::Renderer::AddTexture ( const std::shared_ptr< geometry::Image image,
bool  srgb = false 
)
pure virtual

◆ AddTexture() [3/3]

virtual TextureHandle open3d::visualization::rendering::Renderer::AddTexture ( const t::geometry::Image image,
bool  srgb = false 
)
pure virtual

◆ BeginFrame()

virtual void open3d::visualization::rendering::Renderer::BeginFrame ( )
pure virtual

◆ CreateBufferRenderer()

virtual std::shared_ptr<RenderToBuffer> open3d::visualization::rendering::Renderer::CreateBufferRenderer ( )
pure virtual

◆ CreateScene()

virtual SceneHandle open3d::visualization::rendering::Renderer::CreateScene ( )
pure virtual

◆ DestroyScene()

virtual void open3d::visualization::rendering::Renderer::DestroyScene ( const SceneHandle id)
pure virtual

◆ Draw()

virtual void open3d::visualization::rendering::Renderer::Draw ( )
pure virtual

◆ EndFrame()

virtual void open3d::visualization::rendering::Renderer::EndFrame ( )
pure virtual

◆ GetScene()

virtual Scene* open3d::visualization::rendering::Renderer::GetScene ( const SceneHandle id) const
pure virtual

◆ ModifyMaterial() [1/2]

virtual MaterialModifier& open3d::visualization::rendering::Renderer::ModifyMaterial ( const MaterialHandle id)
pure virtual

◆ ModifyMaterial() [2/2]

virtual MaterialModifier& open3d::visualization::rendering::Renderer::ModifyMaterial ( const MaterialInstanceHandle id)
pure virtual

◆ RemoveIndirectLight()

virtual void open3d::visualization::rendering::Renderer::RemoveIndirectLight ( const IndirectLightHandle id)
pure virtual

◆ RemoveMaterialInstance()

virtual void open3d::visualization::rendering::Renderer::RemoveMaterialInstance ( const MaterialInstanceHandle id)
pure virtual

◆ RemoveSkybox()

virtual void open3d::visualization::rendering::Renderer::RemoveSkybox ( const SkyboxHandle id)
pure virtual

◆ RemoveTexture()

virtual void open3d::visualization::rendering::Renderer::RemoveTexture ( const TextureHandle id)
pure virtual

◆ RenderToDepthImage()

void open3d::visualization::rendering::Renderer::RenderToDepthImage ( View view,
Scene scene,
std::function< void(std::shared_ptr< geometry::Image >)>  cb,
bool  z_in_view_space = false 
)

◆ RenderToImage()

void open3d::visualization::rendering::Renderer::RenderToImage ( View view,
Scene scene,
std::function< void(std::shared_ptr< geometry::Image >)>  cb 
)

◆ RequestReadPixels()

virtual void open3d::visualization::rendering::Renderer::RequestReadPixels ( int  width,
int  height,
std::function< void(std::shared_ptr< core::Tensor >)>  callback 
)
pure virtual

◆ SetClearColor()

virtual void open3d::visualization::rendering::Renderer::SetClearColor ( const Eigen::Vector4f &  color)
pure virtual

◆ SetOnAfterDraw()

virtual void open3d::visualization::rendering::Renderer::SetOnAfterDraw ( std::function< void()>  callback)
pure virtual

◆ UpdateBitmapSwapChain()

virtual void open3d::visualization::rendering::Renderer::UpdateBitmapSwapChain ( int  width,
int  height 
)
pure virtual

◆ UpdateSwapChain()

virtual void open3d::visualization::rendering::Renderer::UpdateSwapChain ( )
pure virtual

◆ UpdateTexture() [1/2]

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

◆ UpdateTexture() [2/2]

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

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