Open3D (C++ API)  0.18.0+252c867
Public Member Functions | Protected Attributes
open3d::visualization::glsl::TriangleMeshRenderer Class Reference

#include <GeometryRenderer.h>

Inheritance diagram for open3d::visualization::glsl::TriangleMeshRenderer:
open3d::visualization::glsl::GeometryRenderer

Public Member Functions

 ~TriangleMeshRenderer () override
 
bool Render (const RenderOption &option, const ViewControl &view) override
 
bool AddGeometry (std::shared_ptr< const geometry::Geometry > geometry_ptr) override
 
bool UpdateGeometry () override
 
- Public Member Functions inherited from open3d::visualization::glsl::GeometryRenderer
virtual ~GeometryRenderer ()
 
bool HasGeometry () const
 
std::shared_ptr< const geometry::GeometryGetGeometry () const
 
bool HasGeometry (std::shared_ptr< const geometry::Geometry > geometry_ptr) const
 
bool IsVisible () const
 
void SetVisible (bool visible)
 

Protected Attributes

SimpleShaderForTriangleMesh simple_mesh_shader_
 
TextureSimpleShaderForTriangleMesh texture_simple_mesh_shader_
 
PhongShaderForTriangleMesh phong_mesh_shader_
 
TexturePhongShaderForTriangleMesh texture_phong_mesh_shader_
 
NormalShaderForTriangleMesh normal_mesh_shader_
 
SimpleBlackShaderForTriangleMeshWireFrame simpleblack_wireframe_shader_
 
- Protected Attributes inherited from open3d::visualization::glsl::GeometryRenderer
std::shared_ptr< const geometry::Geometrygeometry_ptr_
 
bool is_visible_ = true
 

Constructor & Destructor Documentation

◆ ~TriangleMeshRenderer()

open3d::visualization::glsl::TriangleMeshRenderer::~TriangleMeshRenderer ( )
inlineoverride

Member Function Documentation

◆ AddGeometry()

bool open3d::visualization::glsl::TriangleMeshRenderer::AddGeometry ( std::shared_ptr< const geometry::Geometry geometry_ptr)
overridevirtual

Function to add geometry to the renderer

  1. After calling the function, the renderer owns the geometry object.
  2. This function returns FALSE if the geometry type is not matched to the renderer.
  3. If an added geometry is changed, programmer must call UpdateGeometry() to notify the renderer.

Implements open3d::visualization::glsl::GeometryRenderer.

◆ Render()

bool open3d::visualization::glsl::TriangleMeshRenderer::Render ( const RenderOption option,
const ViewControl view 
)
overridevirtual

◆ UpdateGeometry()

bool open3d::visualization::glsl::TriangleMeshRenderer::UpdateGeometry ( )
overridevirtual

Function to update geometry Programmer must call this function to notify a change of the geometry

Implements open3d::visualization::glsl::GeometryRenderer.

Field Documentation

◆ normal_mesh_shader_

NormalShaderForTriangleMesh open3d::visualization::glsl::TriangleMeshRenderer::normal_mesh_shader_
protected

◆ phong_mesh_shader_

PhongShaderForTriangleMesh open3d::visualization::glsl::TriangleMeshRenderer::phong_mesh_shader_
protected

◆ simple_mesh_shader_

SimpleShaderForTriangleMesh open3d::visualization::glsl::TriangleMeshRenderer::simple_mesh_shader_
protected

◆ simpleblack_wireframe_shader_

SimpleBlackShaderForTriangleMeshWireFrame open3d::visualization::glsl::TriangleMeshRenderer::simpleblack_wireframe_shader_
protected

◆ texture_phong_mesh_shader_

TexturePhongShaderForTriangleMesh open3d::visualization::glsl::TriangleMeshRenderer::texture_phong_mesh_shader_
protected

◆ texture_simple_mesh_shader_

TextureSimpleShaderForTriangleMesh open3d::visualization::glsl::TriangleMeshRenderer::texture_simple_mesh_shader_
protected

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