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

VoxelMap is a drawable that represents a set of voxels as cubes. More...

#include <voxelmap.hpp>

Inheritance diagram for glk::VoxelMap:
Collaboration diagram for glk::VoxelMap:

Public Member Functions

 VoxelMap (const Eigen::Vector3i *voxel_coords, int num_voxels, double resolution, const MeshRenderingOptions &options=MeshRenderingOptions())
 Constructor.
 VoxelMap (const std::vector< Eigen::Vector3i > &voxel_coords, double resolution, const MeshRenderingOptions &options=MeshRenderingOptions())
 Constructor.
 VoxelMap (const Eigen::Vector3i *voxel_coords, int num_voxels, double resolution, const VoxelMapOptions &options)
virtual ~VoxelMap ()
virtual void draw (glk::GLSLShader &shader) const override
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

VoxelMap is a drawable that represents a set of voxels as cubes.

Constructor & Destructor Documentation

◆ VoxelMap() [1/3]

glk::VoxelMap::VoxelMap ( const Eigen::Vector3i * voxel_coords,
int num_voxels,
double resolution,
const MeshRenderingOptions & options = MeshRenderingOptions() )

Constructor.

Parameters
voxel_coordsInteger coordinates of the voxels
num_voxelsNumber of voxels
resolutionSize of each voxel (cube) in world units
optionsRendering options for the voxels and edges

◆ VoxelMap() [2/3]

glk::VoxelMap::VoxelMap ( const std::vector< Eigen::Vector3i > & voxel_coords,
double resolution,
const MeshRenderingOptions & options = MeshRenderingOptions() )

Constructor.

Parameters
voxel_coordsInteger coordinates of the voxels
resolutionSize of each voxel (cube) in world units
optionsRendering options for the voxels and edges

◆ VoxelMap() [3/3]

glk::VoxelMap::VoxelMap ( const Eigen::Vector3i * voxel_coords,
int num_voxels,
double resolution,
const VoxelMapOptions & options )

◆ ~VoxelMap()

virtual glk::VoxelMap::~VoxelMap ( )
virtual

Member Function Documentation

◆ draw()

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

Reimplemented from glk::Drawable.


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