#include <BigGrid.hpp>
Public Member Functions | |
BigGrid (float voxelsize, ScanProjectEditMarkPtr project, float scale=0) | |
BigGrid (std::string path) | |
BigGrid (std::vector< std::string > cloudPath, float voxelsize, float scale=0, size_t bufferSize=1024) | |
lvr2::ucharArr | colors (float minx, float miny, float minz, float maxx, float maxy, float maxz, size_t &numPoints) |
bool | exists (size_t hash) |
BoundingBox< BaseVecT > & | getBB () |
size_t | getDistanceFileOffset (size_t hash) |
BoundingBox< BaseVecT > & | getpartialBB () |
lvr2::floatArr | getPointCloud (size_t &numPoints) |
size_t | getSizeofBox (float minx, float miny, float minz, float maxx, float maxy, float maxz) |
bool | hasColors () |
size_t | hashValue (size_t i, size_t j, size_t k) |
bool | hasNormals () |
lvr2::floatArr | normals (float minx, float miny, float minz, float maxx, float maxy, float maxz, size_t &numPoints) |
lvr2::floatArr | points (float minx, float miny, float minz, float maxx, float maxy, float maxz, size_t &numPoints) |
lvr2::floatArr | points (int i, int j, int k, size_t &numPoints) |
size_t | pointSize () |
size_t | pointSize (int i, int j, int k) |
void | serialize (std::string path="serinfo.ls") |
size_t | size () |
virtual | ~BigGrid () |
Private Member Functions | |
int | calcIndex (float f) |
bool | exists (int i, int j, int k) |
void | insert (float x, float y, float z) |
Private Attributes | |
BoundingBox< BaseVecT > | m_bb |
boost::iostreams::mapped_file | m_ColorFile |
bool | m_extrude |
std::unordered_map< size_t, CellInfo > | m_gridNumPoints |
bool | m_has_color |
bool | m_has_normal |
size_t | m_maxIndex |
size_t | m_maxIndexSquare |
size_t | m_maxIndexX |
size_t | m_maxIndexY |
size_t | m_maxIndexZ |
boost::iostreams::mapped_file | m_NomralFile |
size_t | m_numPoints |
BoundingBox< BaseVecT > | m_partialbb |
size_t | m_pointBufferSize |
boost::iostreams::mapped_file | m_PointFile |
float | m_scale |
std::vector< shared_ptr< Scan > > | m_scans |
float | m_voxelSize |
Definition at line 71 of file BigGrid.hpp.
lvr2::BigGrid< BaseVecT >::BigGrid | ( | std::vector< std::string > | cloudPath, |
float | voxelsize, | ||
float | scale = 0 , |
||
size_t | bufferSize = 1024 |
||
) |
Constructor:
cloudPath | path to PointCloud in ASCII xyz Format // Todo: Add other file formats |
voxelsize |
lvr2::BigGrid< BaseVecT >::BigGrid | ( | float | voxelsize, |
ScanProjectEditMarkPtr | project, | ||
float | scale = 0 |
||
) |
Constructor: specific case for incremental reconstruction/chunking. also compatible with simple reconstruction
voxelsize | specified voxelsize |
project | ScanProject, which contain one or more Scans |
scale | scale value of for current scans |
lvr2::BigGrid< BaseVecT >::BigGrid | ( | std::string | path | ) |
|
virtual |
|
inlineprivate |
Definition at line 192 of file BigGrid.hpp.
lvr2::ucharArr lvr2::BigGrid< BaseVecT >::colors | ( | float | minx, |
float | miny, | ||
float | minz, | ||
float | maxx, | ||
float | maxy, | ||
float | maxz, | ||
size_t & | numPoints | ||
) |
|
private |
|
inline |
Definition at line 182 of file BigGrid.hpp.
|
inline |
Definition at line 155 of file BigGrid.hpp.
|
inline |
Definition at line 173 of file BigGrid.hpp.
|
inline |
get the partial BB of the area, which needs to be reconstructed
Definition at line 163 of file BigGrid.hpp.
lvr2::floatArr lvr2::BigGrid< BaseVecT >::getPointCloud | ( | size_t & | numPoints | ) |
size_t lvr2::BigGrid< BaseVecT >::getSizeofBox | ( | float | minx, |
float | miny, | ||
float | minz, | ||
float | maxx, | ||
float | maxy, | ||
float | maxz | ||
) |
return numbers of points in a specific area (defined by the params) of the grid
minx | |
miny | |
minz | |
maxx | |
maxy | |
maxz |
|
inline |
Definition at line 188 of file BigGrid.hpp.
|
inline |
Definition at line 168 of file BigGrid.hpp.
|
inline |
Definition at line 189 of file BigGrid.hpp.
|
private |
lvr2::floatArr lvr2::BigGrid< BaseVecT >::normals | ( | float | minx, |
float | miny, | ||
float | minz, | ||
float | maxx, | ||
float | maxy, | ||
float | maxz, | ||
size_t & | numPoints | ||
) |
lvr2::floatArr lvr2::BigGrid< BaseVecT >::points | ( | float | minx, |
float | miny, | ||
float | minz, | ||
float | maxx, | ||
float | maxy, | ||
float | maxz, | ||
size_t & | numPoints | ||
) |
Points that are within bounding box defined by a min and max point
minx | |
miny | |
minz | |
maxx | |
maxy | |
maxz | |
numPoints | number of points |
lvr2::floatArr lvr2::BigGrid< BaseVecT >::points | ( | int | i, |
int | j, | ||
int | k, | ||
size_t & | numPoints | ||
) |
Points of Voxel at position i,j,k
i | |
j | |
k | |
numPoints,amount | of points in lvr2::floatArr |
size_t lvr2::BigGrid< BaseVecT >::pointSize | ( | ) |
size_t lvr2::BigGrid< BaseVecT >::pointSize | ( | int | i, |
int | j, | ||
int | k | ||
) |
Amount of Points in Voxel at position i,j,k
i | |
j | |
k |
void lvr2::BigGrid< BaseVecT >::serialize | ( | std::string | path = "serinfo.ls" | ) |
size_t lvr2::BigGrid< BaseVecT >::size | ( | ) |
|
private |
Definition at line 217 of file BigGrid.hpp.
|
private |
Definition at line 216 of file BigGrid.hpp.
|
private |
Definition at line 207 of file BigGrid.hpp.
|
private |
Definition at line 224 of file BigGrid.hpp.
|
private |
Definition at line 212 of file BigGrid.hpp.
|
private |
Definition at line 211 of file BigGrid.hpp.
|
private |
Definition at line 198 of file BigGrid.hpp.
|
private |
Definition at line 197 of file BigGrid.hpp.
|
private |
Definition at line 199 of file BigGrid.hpp.
|
private |
Definition at line 200 of file BigGrid.hpp.
|
private |
Definition at line 201 of file BigGrid.hpp.
|
private |
Definition at line 215 of file BigGrid.hpp.
|
private |
Definition at line 202 of file BigGrid.hpp.
|
private |
Definition at line 220 of file BigGrid.hpp.
|
private |
Definition at line 204 of file BigGrid.hpp.
|
private |
Definition at line 214 of file BigGrid.hpp.
|
private |
Definition at line 225 of file BigGrid.hpp.
|
private |
Definition at line 222 of file BigGrid.hpp.
|
private |
Definition at line 206 of file BigGrid.hpp.