Open3D (C++ API)  0.19.0
Loading...
Searching...
No Matches
open3d::visualization::glsl::VoxelGridRenderer Class Reference

#include <GeometryRenderer.h>

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

Public Member Functions

 ~VoxelGridRenderer () 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

SimpleShaderForVoxelGridLine simple_shader_for_voxel_grid_line_
SimpleShaderForVoxelGridFace simple_shader_for_voxel_grid_face_
Protected Attributes inherited from open3d::visualization::glsl::GeometryRenderer
std::shared_ptr< const geometry::Geometrygeometry_ptr_
bool is_visible_ = true

Constructor & Destructor Documentation

◆ ~VoxelGridRenderer()

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

Member Function Documentation

◆ AddGeometry()

bool open3d::visualization::glsl::VoxelGridRenderer::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::VoxelGridRenderer::Render ( const RenderOption & option,
const ViewControl & view )
overridevirtual

◆ UpdateGeometry()

bool open3d::visualization::glsl::VoxelGridRenderer::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

◆ simple_shader_for_voxel_grid_face_

SimpleShaderForVoxelGridFace open3d::visualization::glsl::VoxelGridRenderer::simple_shader_for_voxel_grid_face_
protected

◆ simple_shader_for_voxel_grid_line_

SimpleShaderForVoxelGridLine open3d::visualization::glsl::VoxelGridRenderer::simple_shader_for_voxel_grid_line_
protected

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