gtsam_points
Loading...
Searching...
No Matches
Public Types | Public Member Functions | List of all members
glk::PointCloudBuffer Class Reference

#include <pointcloud_buffer.hpp>

Inheritance diagram for glk::PointCloudBuffer:
Inheritance graph
[legend]
Collaboration diagram for glk::PointCloudBuffer:
Collaboration graph
[legend]

Public Types

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

Public Member Functions

 PointCloudBuffer (int stride, int num_points)
 
 PointCloudBuffer (const float *data, int stride, int num_points)
 
 PointCloudBuffer (const Eigen::Matrix< float, 3, -1 > &points)
 
 PointCloudBuffer (const Eigen::Matrix< double, 3, -1 > &points)
 
template<typename Scalar , int Dim, typename Allocator >
 PointCloudBuffer (const std::vector< Eigen::Matrix< Scalar, Dim, 1 >, Allocator > &points)
 
 PointCloudBuffer (const Eigen::Vector3f *points, int num_points)
 
 PointCloudBuffer (const Eigen::Vector4f *points, int num_points)
 
 PointCloudBuffer (const Eigen::Vector3d *points, int num_points)
 
 PointCloudBuffer (const Eigen::Vector4d *points, int num_points)
 
virtual ~PointCloudBuffer () override
 
template<int N, typename Allocator >
void add_normals (const std::vector< Eigen::Matrix< float, N, 1 >, Allocator > &normals)
 
template<int N, typename Allocator >
void add_normals (const std::vector< Eigen::Matrix< double, N, 1 >, Allocator > &normals)
 
template<int N>
void add_normals (const Eigen::Matrix< float, N, 1 > *normals, int num_points)
 
template<int N>
void add_normals (const Eigen::Matrix< double, N, 1 > *normals, int num_points)
 
template<typename Scalar , typename Allocator >
void add_color (const std::vector< Eigen::Matrix< Scalar, 4, 1 >, Allocator > &colors)
 
void add_color (const Eigen::Vector4f *colors, int num_points)
 
void add_color (const Eigen::Vector4d *colors, int num_points)
 
void add_intensity (glk::COLORMAP colormap, const std::vector< float > &intensities, float scale=1.0f)
 
void add_intensity (glk::COLORMAP colormap, const std::vector< double > &intensities, float scale=1.0f)
 
void add_intensity (glk::COLORMAP colormap, const float *intensities, const int num_points, float scale=1.0f)
 
void add_intensity (glk::COLORMAP colormap, const double *intensities, const int num_points, float scale=1.0f)
 
void add_normals (const float *data, int stride, int num_points)
 
void add_color (const float *data, int stride, int num_points)
 
void add_intensity (glk::COLORMAP colormap, const float *data, int stride, int num_points, float scale=1.0f)
 
void set_colormap_buffer (const std::string &attribute_name)
 
void add_colormap (std::vector< float > &cmap, float scale=1.0f)
 
void add_colormap (std::vector< double > &cmap, float scale=1.0)
 
void add_colormap (const float *data, int stride, int num_points, float scale=1.0f)
 
void add_buffer (const std::string &attribute_name, const std::vector< float > &data)
 
void add_buffer (const std::string &attribute_name, const std::vector< double > &data)
 
template<typename Scalar , int D, typename Allocator >
void add_buffer (const std::string &attribute_name, const std::vector< Eigen::Matrix< Scalar, D, 1 >, Allocator > &data)
 
void add_buffer (const std::string &attribute_name, int dim, const float *data, int stride, int num_points)
 
void update_buffer_with_indices (GLuint buffer, const float *data, int stride, const unsigned int *indices, int num_indices)
 
void update_buffer_with_indices (const std::string &attribute_name, int dim, const float *data, int stride, const unsigned int *indices, int num_indices)
 
template<typename Scalar , int D, typename Allocator >
void update_points_with_indices (const std::vector< Eigen::Matrix< Scalar, D, 1 >, Allocator > &points, const std::vector< unsigned int > &indices)
 
void update_points_with_indices (const Eigen::Vector3f *points, const unsigned int *indices, int num_indices)
 
void update_points_with_indices (const Eigen::Vector4f *points, const unsigned int *indices, int num_indices)
 
void update_points_with_indices (const Eigen::Vector3d *points, const unsigned int *indices, int num_indices)
 
void update_points_with_indices (const Eigen::Vector4d *points, const unsigned int *indices, int num_indices)
 
void update_points_with_indices (const float *data, int stride, const unsigned int *indices, int num_indices)
 
template<typename Scalar , typename Allocator >
void update_color_with_indices (const std::vector< Eigen::Matrix< Scalar, 4, 1 >, Allocator > &colors, const std::vector< unsigned int > &indices)
 
void update_color_with_indices (const Eigen::Vector4f *colors, const unsigned int *indices, int num_indices)
 
void update_color_with_indices (const Eigen::Vector4d *colors, const unsigned int *indices, int num_indices)
 
void enable_partial_rendering (int points_budget=8192 *5)
 
void disable_partial_rendering ()
 
void bind (glk::GLSLShader &shader) const
 
void unbind (glk::GLSLShader &shader) const
 
virtual void draw (glk::GLSLShader &shader) const override
 
GLuint vba_id () const
 
GLuint vbo_id () const
 
GLuint ebo_id () const
 
int get_aux_size () const
 
const AuxBufferDataget_aux_buffer (int i) const
 
int size () const
 
size_t memory_usage () const
 
- Public Member Functions inherited from glk::Drawable
virtual ~Drawable ()
 

Member Typedef Documentation

◆ Ptr

Constructor & Destructor Documentation

◆ PointCloudBuffer() [1/9]

glk::PointCloudBuffer::PointCloudBuffer ( int  stride,
int  num_points 
)

◆ PointCloudBuffer() [2/9]

glk::PointCloudBuffer::PointCloudBuffer ( const float data,
int  stride,
int  num_points 
)

◆ PointCloudBuffer() [3/9]

glk::PointCloudBuffer::PointCloudBuffer ( const Eigen::Matrix< float, 3, -1 > &  points)

◆ PointCloudBuffer() [4/9]

glk::PointCloudBuffer::PointCloudBuffer ( const Eigen::Matrix< double, 3, -1 > &  points)

◆ PointCloudBuffer() [5/9]

template<typename Scalar , int Dim, typename Allocator >
glk::PointCloudBuffer::PointCloudBuffer ( const std::vector< Eigen::Matrix< Scalar, Dim, 1 >, Allocator > &  points)

◆ PointCloudBuffer() [6/9]

glk::PointCloudBuffer::PointCloudBuffer ( const Eigen::Vector3f *  points,
int  num_points 
)

◆ PointCloudBuffer() [7/9]

glk::PointCloudBuffer::PointCloudBuffer ( const Eigen::Vector4f *  points,
int  num_points 
)

◆ PointCloudBuffer() [8/9]

glk::PointCloudBuffer::PointCloudBuffer ( const Eigen::Vector3d *  points,
int  num_points 
)

◆ PointCloudBuffer() [9/9]

glk::PointCloudBuffer::PointCloudBuffer ( const Eigen::Vector4d *  points,
int  num_points 
)

◆ ~PointCloudBuffer()

virtual glk::PointCloudBuffer::~PointCloudBuffer ( )
overridevirtual

Member Function Documentation

◆ add_buffer() [1/4]

void glk::PointCloudBuffer::add_buffer ( const std::string &  attribute_name,
const std::vector< double > &  data 
)

◆ add_buffer() [2/4]

void glk::PointCloudBuffer::add_buffer ( const std::string &  attribute_name,
const std::vector< Eigen::Matrix< Scalar, D, 1 >, Allocator > &  data 
)

◆ add_buffer() [3/4]

void glk::PointCloudBuffer::add_buffer ( const std::string &  attribute_name,
const std::vector< float > &  data 
)

◆ add_buffer() [4/4]

void glk::PointCloudBuffer::add_buffer ( const std::string &  attribute_name,
int  dim,
const float data,
int  stride,
int  num_points 
)

◆ add_color() [1/4]

void glk::PointCloudBuffer::add_color ( const Eigen::Vector4d *  colors,
int  num_points 
)

◆ add_color() [2/4]

void glk::PointCloudBuffer::add_color ( const Eigen::Vector4f *  colors,
int  num_points 
)

◆ add_color() [3/4]

void glk::PointCloudBuffer::add_color ( const float data,
int  stride,
int  num_points 
)

◆ add_color() [4/4]

void glk::PointCloudBuffer::add_color ( const std::vector< Eigen::Matrix< Scalar, 4, 1 >, Allocator > &  colors)

◆ add_colormap() [1/3]

void glk::PointCloudBuffer::add_colormap ( const float data,
int  stride,
int  num_points,
float  scale = 1.0f 
)

◆ add_colormap() [2/3]

void glk::PointCloudBuffer::add_colormap ( std::vector< double > &  cmap,
float  scale = 1.0 
)

◆ add_colormap() [3/3]

void glk::PointCloudBuffer::add_colormap ( std::vector< float > &  cmap,
float  scale = 1.0f 
)

◆ add_intensity() [1/5]

void glk::PointCloudBuffer::add_intensity ( glk::COLORMAP  colormap,
const double intensities,
const int  num_points,
float  scale = 1.0f 
)

◆ add_intensity() [2/5]

void glk::PointCloudBuffer::add_intensity ( glk::COLORMAP  colormap,
const float data,
int  stride,
int  num_points,
float  scale = 1.0f 
)

◆ add_intensity() [3/5]

void glk::PointCloudBuffer::add_intensity ( glk::COLORMAP  colormap,
const float intensities,
const int  num_points,
float  scale = 1.0f 
)

◆ add_intensity() [4/5]

void glk::PointCloudBuffer::add_intensity ( glk::COLORMAP  colormap,
const std::vector< double > &  intensities,
float  scale = 1.0f 
)

◆ add_intensity() [5/5]

void glk::PointCloudBuffer::add_intensity ( glk::COLORMAP  colormap,
const std::vector< float > &  intensities,
float  scale = 1.0f 
)

◆ add_normals() [1/5]

template<int N>
void glk::PointCloudBuffer::add_normals ( const Eigen::Matrix< double, N, 1 > *  normals,
int  num_points 
)

◆ add_normals() [2/5]

template<int N>
void glk::PointCloudBuffer::add_normals ( const Eigen::Matrix< float, N, 1 > *  normals,
int  num_points 
)

◆ add_normals() [3/5]

void glk::PointCloudBuffer::add_normals ( const float data,
int  stride,
int  num_points 
)

◆ add_normals() [4/5]

template<int N, typename Allocator >
void glk::PointCloudBuffer::add_normals ( const std::vector< Eigen::Matrix< double, N, 1 >, Allocator > &  normals)

◆ add_normals() [5/5]

template<int N, typename Allocator >
void glk::PointCloudBuffer::add_normals ( const std::vector< Eigen::Matrix< float, N, 1 >, Allocator > &  normals)

◆ bind()

void glk::PointCloudBuffer::bind ( glk::GLSLShader shader) const

◆ disable_partial_rendering()

void glk::PointCloudBuffer::disable_partial_rendering ( )

◆ draw()

virtual void glk::PointCloudBuffer::draw ( glk::GLSLShader shader) const
overridevirtual

Reimplemented from glk::Drawable.

◆ ebo_id()

GLuint glk::PointCloudBuffer::ebo_id ( ) const

◆ enable_partial_rendering()

void glk::PointCloudBuffer::enable_partial_rendering ( int  points_budget = 8192 *5)

◆ get_aux_buffer()

const AuxBufferData & glk::PointCloudBuffer::get_aux_buffer ( int  i) const

◆ get_aux_size()

int glk::PointCloudBuffer::get_aux_size ( ) const

◆ memory_usage()

size_t glk::PointCloudBuffer::memory_usage ( ) const

◆ set_colormap_buffer()

void glk::PointCloudBuffer::set_colormap_buffer ( const std::string &  attribute_name)

◆ size()

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

◆ unbind()

void glk::PointCloudBuffer::unbind ( glk::GLSLShader shader) const

◆ update_buffer_with_indices() [1/2]

void glk::PointCloudBuffer::update_buffer_with_indices ( const std::string &  attribute_name,
int  dim,
const float data,
int  stride,
const unsigned int indices,
int  num_indices 
)

◆ update_buffer_with_indices() [2/2]

void glk::PointCloudBuffer::update_buffer_with_indices ( GLuint  buffer,
const float data,
int  stride,
const unsigned int indices,
int  num_indices 
)

◆ update_color_with_indices() [1/3]

void glk::PointCloudBuffer::update_color_with_indices ( const Eigen::Vector4d *  colors,
const unsigned int indices,
int  num_indices 
)

◆ update_color_with_indices() [2/3]

void glk::PointCloudBuffer::update_color_with_indices ( const Eigen::Vector4f *  colors,
const unsigned int indices,
int  num_indices 
)

◆ update_color_with_indices() [3/3]

void glk::PointCloudBuffer::update_color_with_indices ( const std::vector< Eigen::Matrix< Scalar, 4, 1 >, Allocator > &  colors,
const std::vector< unsigned int > &  indices 
)

◆ update_points_with_indices() [1/6]

void glk::PointCloudBuffer::update_points_with_indices ( const Eigen::Vector3d *  points,
const unsigned int indices,
int  num_indices 
)

◆ update_points_with_indices() [2/6]

void glk::PointCloudBuffer::update_points_with_indices ( const Eigen::Vector3f *  points,
const unsigned int indices,
int  num_indices 
)

◆ update_points_with_indices() [3/6]

void glk::PointCloudBuffer::update_points_with_indices ( const Eigen::Vector4d *  points,
const unsigned int indices,
int  num_indices 
)

◆ update_points_with_indices() [4/6]

void glk::PointCloudBuffer::update_points_with_indices ( const Eigen::Vector4f *  points,
const unsigned int indices,
int  num_indices 
)

◆ update_points_with_indices() [5/6]

void glk::PointCloudBuffer::update_points_with_indices ( const float data,
int  stride,
const unsigned int indices,
int  num_indices 
)

◆ update_points_with_indices() [6/6]

void glk::PointCloudBuffer::update_points_with_indices ( const std::vector< Eigen::Matrix< Scalar, D, 1 >, Allocator > &  points,
const std::vector< unsigned int > &  indices 
)

◆ vba_id()

GLuint glk::PointCloudBuffer::vba_id ( ) const

◆ vbo_id()

GLuint glk::PointCloudBuffer::vbo_id ( ) const

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