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

PointNormalsBuffer is a drawable that represents a point cloud with normals. More...

#include <pointnormals_buffer.hpp>

Inheritance diagram for glk::PointNormalsBuffer:
Collaboration diagram for glk::PointNormalsBuffer:

Public Types

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

Public Member Functions

 PointNormalsBuffer (const float *vertices, size_t vertex_stride, const float *normals, size_t normal_stride, int num_points, double normal_length)
 Constructor.
template<template< class > class Allocator>
 PointNormalsBuffer (const std::vector< Eigen::Vector3f, Allocator< Eigen::Vector3f > > &vertices, const std::vector< Eigen::Vector3f, Allocator< Eigen::Vector3f > > &normals, double normal_length)
virtual ~PointNormalsBuffer () override
virtual void draw (glk::GLSLShader &shader) const override
Public Member Functions inherited from glk::Drawable
virtual ~Drawable ()

Detailed Description

PointNormalsBuffer is a drawable that represents a point cloud with normals.

Member Typedef Documentation

◆ Ptr

Constructor & Destructor Documentation

◆ PointNormalsBuffer() [1/2]

glk::PointNormalsBuffer::PointNormalsBuffer ( const float * vertices,
size_t vertex_stride,
const float * normals,
size_t normal_stride,
int num_points,
double normal_length )

Constructor.

Parameters
verticesVertex positions
vertex_strideStride (in bytes) between consecutive vertices
normalsNormal vectors
normal_strideStride (in bytes) between consecutive normals
num_pointsNumber of points
normal_lengthLength of the normal vectors

◆ PointNormalsBuffer() [2/2]

template<template< class > class Allocator>
glk::PointNormalsBuffer::PointNormalsBuffer ( const std::vector< Eigen::Vector3f, Allocator< Eigen::Vector3f > > & vertices,
const std::vector< Eigen::Vector3f, Allocator< Eigen::Vector3f > > & normals,
double normal_length )

◆ ~PointNormalsBuffer()

virtual glk::PointNormalsBuffer::~PointNormalsBuffer ( )
overridevirtual

Member Function Documentation

◆ draw()

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

Reimplemented from glk::Drawable.


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