Public Member Functions | Private Member Functions | Private Attributes | List of all members
lvr2::PointsetGrid< BaseVecT, BoxT > Class Template Reference

#include <PointsetGrid.hpp>

Inheritance diagram for lvr2::PointsetGrid< BaseVecT, BoxT >:
Inheritance graph
[legend]

Public Member Functions

void calcDistanceValues ()
 
 PointsetGrid (float cellSize, PointsetSurfacePtr< BaseVecT > surface, BoundingBox< BaseVecT > bb, bool isVoxelsize=true, bool extrude=true)
 
virtual ~PointsetGrid ()
 
- Public Member Functions inherited from lvr2::HashGrid< BaseVecT, BoxT >
virtual void addLatticePoint (int i, int j, int k, float distance=0.0)
 
void calcIndices ()
 Calculates needed lattice parameters. More...
 
unsigned int findQueryPoint (int position, int x, int y, int z)
 Searches for a existing shared lattice point in the grid. More...
 
box_map_it firstCell ()
 
query_point_it firstQueryPoint ()
 
BoundingBox< BaseVecT > & getBoundingBox ()
 
box_map getCells ()
 
size_t getMaxIndex ()
 
size_t getMaxIndexX ()
 
size_t getMaxIndexY ()
 
size_t getMaxIndexZ ()
 
size_t getNumberOfCells ()
 
vector< QueryPoint< BaseVecT > > & getQueryPoints ()
 
 HashGrid (float cellSize, BoundingBox< BaseVecT > boundingBox, bool isVoxelSize=true, bool extrude=true)
 
 HashGrid (std::vector< PointBufferPtr > chunks, std::vector< BoundingBox< BaseVecT >> innerBoxes, BoundingBox< BaseVecT > &boundingBox, float voxelSize)
 
 HashGrid (std::vector< string > &files, BoundingBox< BaseVecT > &boundingBox, float voxelsize)
 
 HashGrid (std::vector< string > &files, std::vector< BoundingBox< BaseVecT >> innerBoxes, BoundingBox< BaseVecT > &boundingBox, float voxelsize)
 
 HashGrid (string file)
 
size_t hashValue (int i, int j, int k) const
 Calculates the hash value for the given index triple. More...
 
box_map_it lastCell ()
 
query_point_it lastQueryPoint ()
 
void saveCells (string file)
 Saves a representation of the cells to the given file. More...
 
virtual void saveGrid (string file)
 Saves a representation of the grid to the given file. More...
 
virtual void serialize (string file)
 
void setBB (BoundingBox< BaseVecT > &bb)
 
void setCoordinateScaling (float x, float y, float z)
 Set x, y, z values to scale the scene or use combinations of +/-1 to mapp different coordinate systems. More...
 
virtual ~HashGrid ()
 
- Public Member Functions inherited from lvr2::GridBase
 GridBase (bool extrude=true)
 
virtual void setExtrusion (bool extrude)
 
virtual ~GridBase ()
 

Private Member Functions

int calcIndex (float f)
 Rounds the given value to the neares integer value. More...
 

Private Attributes

PointsetSurfacePtr< BaseVecT > m_surface
 

Additional Inherited Members

- Public Types inherited from lvr2::HashGrid< BaseVecT, BoxT >
typedef unordered_map< size_t, BoxT * > box_map
 Typedef to alias box map. More...
 
typedef unordered_map< size_t, BoxT * >::iterator box_map_it
 Typedef to alias iterators for box maps. More...
 
typedef unordered_map< size_t, size_t > qp_map
 
typedef vector< QueryPoint< BaseVecT > >::iterator query_point_it
 Typedef to alias iterators to query points. More...
 
- Public Attributes inherited from lvr2::HashGrid< BaseVecT, BoxT >
BoundingBox< BaseVecT > qp_bb
 
- Protected Member Functions inherited from lvr2::HashGrid< BaseVecT, BoxT >
int calcIndex (float f)
 
- Protected Attributes inherited from lvr2::HashGrid< BaseVecT, BoxT >
BoundingBox< BaseVecT > m_boundingBox
 Bounding box of the covered volume. More...
 
string m_boxType
 True if a local tetraeder decomposition is used for reconstruction. More...
 
box_map m_cells
 Map to handle the boxes in the grid. More...
 
BaseVecT m_coordinateScales
 Save scaling factors (i.e., -1 or +1) to mapp different coordinate systems. More...
 
unsigned int m_globalIndex
 The maximum used cell index within the grid. More...
 
size_t m_maxIndex
 The absolute maximal index of the reconstruction grid. More...
 
size_t m_maxIndexSquare
 The squared maximal index of the reconstruction grid. More...
 
size_t m_maxIndexX
 The maximal index in x direction. More...
 
size_t m_maxIndexY
 The maximal index in y direction. More...
 
size_t m_maxIndexZ
 The maximal index in z direction. More...
 
qp_map m_qpIndices
 
vector< QueryPoint< BaseVecT > > m_queryPoints
 A vector containing the query points for the reconstruction. More...
 
float m_voxelsize
 The voxelsize used for reconstruction. More...
 
- Protected Attributes inherited from lvr2::GridBase
bool m_extrude
 

Detailed Description

template<typename BaseVecT, typename BoxT>
class lvr2::PointsetGrid< BaseVecT, BoxT >

Definition at line 47 of file PointsetGrid.hpp.

Constructor & Destructor Documentation

◆ PointsetGrid()

template<typename BaseVecT , typename BoxT >
lvr2::PointsetGrid< BaseVecT, BoxT >::PointsetGrid ( float  cellSize,
PointsetSurfacePtr< BaseVecT >  surface,
BoundingBox< BaseVecT >  bb,
bool  isVoxelsize = true,
bool  extrude = true 
)

◆ ~PointsetGrid()

template<typename BaseVecT , typename BoxT >
virtual lvr2::PointsetGrid< BaseVecT, BoxT >::~PointsetGrid ( )
inlinevirtual

Definition at line 58 of file PointsetGrid.hpp.

Member Function Documentation

◆ calcDistanceValues()

template<typename BaseVecT , typename BoxT >
void lvr2::PointsetGrid< BaseVecT, BoxT >::calcDistanceValues ( )

◆ calcIndex()

template<typename BaseVecT , typename BoxT >
int lvr2::PointsetGrid< BaseVecT, BoxT >::calcIndex ( float  f)
inlineprivate

Rounds the given value to the neares integer value.

Definition at line 67 of file PointsetGrid.hpp.

Member Data Documentation

◆ m_surface

template<typename BaseVecT , typename BoxT >
PointsetSurfacePtr<BaseVecT> lvr2::PointsetGrid< BaseVecT, BoxT >::m_surface
private

Definition at line 72 of file PointsetGrid.hpp.


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


lvr2
Author(s): Thomas Wiemann , Sebastian Pütz , Alexander Mock , Lars Kiesow , Lukas Kalbertodt , Tristan Igelbrink , Johan M. von Behren , Dominik Feldschnieders , Alexander Löhr
autogenerated on Wed Mar 2 2022 00:37:27