Open3D (C++ API)  0.18.0
Public Member Functions | Protected Member Functions
open3d::visualization::glsl::PickingShaderForPointCloud Class Reference

#include <PickingShader.h>

Inheritance diagram for open3d::visualization::glsl::PickingShaderForPointCloud:
open3d::visualization::glsl::PickingShader open3d::visualization::glsl::ShaderWrapper

Public Member Functions

 PickingShaderForPointCloud ()
 
- Public Member Functions inherited from open3d::visualization::glsl::PickingShader
 ~PickingShader () override
 
- Public Member Functions inherited from open3d::visualization::glsl::ShaderWrapper
virtual ~ShaderWrapper ()
 
 ShaderWrapper (const ShaderWrapper &)=delete
 
ShaderWrapperoperator= (const ShaderWrapper &)=delete
 
bool Render (const geometry::Geometry &geometry, const RenderOption &option, const ViewControl &view)
 
void InvalidateGeometry ()
 
const std::string & GetShaderName () const
 
void PrintShaderWarning (const std::string &message) const
 

Protected Member Functions

bool PrepareRendering (const geometry::Geometry &geometry, const RenderOption &option, const ViewControl &view) final
 
bool PrepareBinding (const geometry::Geometry &geometry, const RenderOption &option, const ViewControl &view, std::vector< Eigen::Vector3f > &points, std::vector< float > &indices) final
 
- Protected Member Functions inherited from open3d::visualization::glsl::PickingShader
 PickingShader (const std::string &name)
 
bool Compile () final
 
void Release () final
 
bool BindGeometry (const geometry::Geometry &geometry, const RenderOption &option, const ViewControl &view) final
 
bool RenderGeometry (const geometry::Geometry &geometry, const RenderOption &option, const ViewControl &view) final
 
void UnbindGeometry () final
 
- Protected Member Functions inherited from open3d::visualization::glsl::ShaderWrapper
 ShaderWrapper (const std::string &name)
 
bool ValidateShader (GLuint shader_index)
 
bool ValidateProgram (GLuint program_index)
 
bool CompileShaders (const char *const vertex_shader_code, const char *const geometry_shader_code, const char *const fragment_shader_code)
 
void ReleaseProgram ()
 
void SetShaderName (const std::string &shader_name)
 

Additional Inherited Members

- Protected Attributes inherited from open3d::visualization::glsl::PickingShader
GLuint vertex_position_
 
GLuint vertex_position_buffer_
 
GLuint vertex_index_
 
GLuint vertex_index_buffer_
 
GLuint MVP_
 
- Protected Attributes inherited from open3d::visualization::glsl::ShaderWrapper
GLuint vertex_shader_ = 0
 
GLuint geometry_shader_ = 0
 
GLuint fragment_shader_ = 0
 
GLuint program_ = 0
 
GLenum draw_arrays_mode_ = GL_POINTS
 
GLsizei draw_arrays_size_ = 0
 
bool compiled_ = false
 
bool bound_ = false
 

Constructor & Destructor Documentation

◆ PickingShaderForPointCloud()

open3d::visualization::glsl::PickingShaderForPointCloud::PickingShaderForPointCloud ( )
inline

Member Function Documentation

◆ PrepareBinding()

bool open3d::visualization::glsl::PickingShaderForPointCloud::PrepareBinding ( const geometry::Geometry geometry,
const RenderOption option,
const ViewControl view,
std::vector< Eigen::Vector3f > &  points,
std::vector< float > &  indices 
)
finalprotectedvirtual

◆ PrepareRendering()

bool open3d::visualization::glsl::PickingShaderForPointCloud::PrepareRendering ( const geometry::Geometry geometry,
const RenderOption option,
const ViewControl view 
)
finalprotectedvirtual

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