iridescence
Loading...
Searching...
No Matches
glk::IndexedPointCloudBuffer Class Reference

IndexedPointCloudBuffer is a drawable that represents a point cloud with an index buffer. It is useful for rendering a subset of points without duplicating the point cloud data. More...

#include <indexed_pointcloud_buffer.hpp>

Inheritance diagram for glk::IndexedPointCloudBuffer:
Collaboration diagram for glk::IndexedPointCloudBuffer:

Public Member Functions

 IndexedPointCloudBuffer (const std::shared_ptr< const glk::PointCloudBuffer > &cloud_buffer, const unsigned int *indices, int num_indices)
 Constructor.
 IndexedPointCloudBuffer (const std::shared_ptr< const glk::PointCloudBuffer > &cloud_buffer, const std::vector< unsigned int > &indices)
 Constructor.
template<typename Integral>
 IndexedPointCloudBuffer (const std::shared_ptr< const glk::PointCloudBuffer > &cloud_buffer, const Integral *indices, int num_indices)
template<typename Integral>
 IndexedPointCloudBuffer (const std::shared_ptr< const glk::PointCloudBuffer > &cloud_buffer, const std::vector< Integral > &indices)
virtual ~IndexedPointCloudBuffer () override
virtual void draw (glk::GLSLShader &shader) const override
GLuint ebo_id () const
int size () const
Public Member Functions inherited from glk::Drawable
virtual ~Drawable ()

Additional Inherited Members

Public Types inherited from glk::Drawable
using Ptr = std::shared_ptr<Drawable>
using ConstPtr = std::shared_ptr<const Drawable>

Detailed Description

IndexedPointCloudBuffer is a drawable that represents a point cloud with an index buffer. It is useful for rendering a subset of points without duplicating the point cloud data.

Constructor & Destructor Documentation

◆ IndexedPointCloudBuffer() [1/4]

glk::IndexedPointCloudBuffer::IndexedPointCloudBuffer ( const std::shared_ptr< const glk::PointCloudBuffer > & cloud_buffer,
const unsigned int * indices,
int num_indices )

Constructor.

Parameters
cloud_bufferShared pointer to the point cloud buffer.
indicesPointer to the index buffer.
num_indicesNumber of indices in the index buffer.

◆ IndexedPointCloudBuffer() [2/4]

glk::IndexedPointCloudBuffer::IndexedPointCloudBuffer ( const std::shared_ptr< const glk::PointCloudBuffer > & cloud_buffer,
const std::vector< unsigned int > & indices )

Constructor.

Parameters
cloud_bufferShared pointer to the point cloud buffer.
indicesVector of indices.

◆ IndexedPointCloudBuffer() [3/4]

template<typename Integral>
glk::IndexedPointCloudBuffer::IndexedPointCloudBuffer ( const std::shared_ptr< const glk::PointCloudBuffer > & cloud_buffer,
const Integral * indices,
int num_indices )

◆ IndexedPointCloudBuffer() [4/4]

template<typename Integral>
glk::IndexedPointCloudBuffer::IndexedPointCloudBuffer ( const std::shared_ptr< const glk::PointCloudBuffer > & cloud_buffer,
const std::vector< Integral > & indices )

◆ ~IndexedPointCloudBuffer()

virtual glk::IndexedPointCloudBuffer::~IndexedPointCloudBuffer ( )
overridevirtual

Member Function Documentation

◆ draw()

virtual void glk::IndexedPointCloudBuffer::draw ( glk::GLSLShader & shader) const
overridevirtual

Reimplemented from glk::Drawable.

◆ ebo_id()

GLuint glk::IndexedPointCloudBuffer::ebo_id ( ) const

◆ size()

int glk::IndexedPointCloudBuffer::size ( ) const
inline

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