Open3D (C++ API)
Public Member Functions | Protected Attributes
open3d::visualization::glsl::GeometryRenderer Class Referenceabstract

#include <GeometryRenderer.h>

Inheritance diagram for open3d::visualization::glsl::GeometryRenderer:
open3d::visualization::glsl::CoordinateFrameRenderer open3d::visualization::glsl::ImageRenderer open3d::visualization::glsl::LineSetRenderer open3d::visualization::glsl::PointCloudPickerRenderer open3d::visualization::glsl::PointCloudPickingRenderer open3d::visualization::glsl::PointCloudRenderer open3d::visualization::glsl::SelectionPolygonRenderer open3d::visualization::glsl::TriangleMeshRenderer open3d::visualization::glsl::VoxelGridRenderer

Public Member Functions

virtual ~GeometryRenderer ()
 
virtual bool Render (const RenderOption &option, const ViewControl &view)=0
 
virtual bool AddGeometry (std::shared_ptr< const geometry::Geometry > geometry_ptr)=0
 
virtual bool UpdateGeometry ()=0
 
bool HasGeometry () const
 
bool IsVisible () const
 
void SetVisible (bool visible)
 

Protected Attributes

std::shared_ptr< const geometry::Geometrygeometry_ptr_
 
bool is_visible_ = true
 

Constructor & Destructor Documentation

◆ ~GeometryRenderer()

virtual open3d::visualization::glsl::GeometryRenderer::~GeometryRenderer ( )
inlinevirtual

Member Function Documentation

◆ AddGeometry()

virtual bool open3d::visualization::glsl::GeometryRenderer::AddGeometry ( std::shared_ptr< const geometry::Geometry geometry_ptr)
pure virtual

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.

Implemented in open3d::visualization::glsl::PointCloudPickerRenderer, open3d::visualization::glsl::SelectionPolygonRenderer, open3d::visualization::glsl::CoordinateFrameRenderer, open3d::visualization::glsl::ImageRenderer, open3d::visualization::glsl::VoxelGridRenderer, open3d::visualization::glsl::TriangleMeshRenderer, open3d::visualization::glsl::LineSetRenderer, open3d::visualization::glsl::PointCloudPickingRenderer, and open3d::visualization::glsl::PointCloudRenderer.

◆ HasGeometry()

bool open3d::visualization::glsl::GeometryRenderer::HasGeometry ( ) const
inline

◆ IsVisible()

bool open3d::visualization::glsl::GeometryRenderer::IsVisible ( ) const
inline

◆ Render()

virtual bool open3d::visualization::glsl::GeometryRenderer::Render ( const RenderOption option,
const ViewControl view 
)
pure virtual

◆ SetVisible()

void open3d::visualization::glsl::GeometryRenderer::SetVisible ( bool  visible)
inline

◆ UpdateGeometry()

virtual bool open3d::visualization::glsl::GeometryRenderer::UpdateGeometry ( )
pure virtual

Field Documentation

◆ geometry_ptr_

std::shared_ptr<const geometry::Geometry> open3d::visualization::glsl::GeometryRenderer::geometry_ptr_
protected

◆ is_visible_

bool open3d::visualization::glsl::GeometryRenderer::is_visible_ = true
protected

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