Storage container class which the outofcore octree base is templated against. More...
#include <pcl/outofcore/octree_ram_container.h>
Public Types |
|
using | AlignedPointTVector = typename OutofcoreAbstractNodeContainer< PointT >::AlignedPointTVector |
Public Types inherited from pcl::outofcore::OutofcoreAbstractNodeContainer< PointT > | |
using | AlignedPointTVector = std::vector< PointT, Eigen::aligned_allocator< PointT > > |
Public Member Functions |
|
OutofcoreOctreeRamContainer (const boost::filesystem::path &) | |
empty constructor (with a path parameter?) More... |
|
void | insertRange (const PointT *start, const std::uint64_t count) |
inserts count number of points into container; uses the container_ type's insert function More... |
|
void | insertRange (const PointT *const *start, const std::uint64_t count) |
inserts count points into container More... |
|
void | insertRange (AlignedPointTVector &) |
void | insertRange (const AlignedPointTVector &) |
void | readRange (const std::uint64_t start, const std::uint64_t count, AlignedPointTVector &v) |
void | readRangeSubSample (const std::uint64_t start, const std::uint64_t count, const double percent, AlignedPointTVector &v) |
grab percent*count random points. More... |
|
std::uint64_t | size () const |
returns the size of the vector of points stored in this class More... |
|
bool | empty () const |
void | clear () |
clears the vector of points in this class More... |
|
void | convertToXYZ (const boost::filesystem::path &path) |
Writes ascii x,y,z point data to path.string().c_str() More... |
|
PointT | operator[] (std::uint64_t index) const |
Public Member Functions inherited from pcl::outofcore::OutofcoreAbstractNodeContainer< PointT > | |
OutofcoreAbstractNodeContainer () | |
OutofcoreAbstractNodeContainer (const boost::filesystem::path &) | |
virtual | ~OutofcoreAbstractNodeContainer () |
virtual void | readRange (const std::uint64_t start, const std::uint64_t count, AlignedPointTVector &v)=0 |
virtual void | readRangeSubSample (const std::uint64_t start, const std::uint64_t count, const double percent, AlignedPointTVector &v)=0 |
Protected Member Functions |
|
OutofcoreOctreeRamContainer (const OutofcoreOctreeRamContainer &) | |
OutofcoreOctreeRamContainer & | operator= (const OutofcoreOctreeRamContainer &) |
Protected Member Functions inherited from pcl::outofcore::OutofcoreAbstractNodeContainer< PointT > | |
OutofcoreAbstractNodeContainer (const OutofcoreAbstractNodeContainer &rval) | |
Protected Attributes |
|
AlignedPointTVector | container_ |
linear container to hold the points More... |
|
Protected Attributes inherited from pcl::outofcore::OutofcoreAbstractNodeContainer< PointT > | |
AlignedPointTVector | container_ |
Static Protected Attributes |
|
static std::mutex | rng_mutex_ |
static std::mt19937 | rng_ |
Static Protected Attributes inherited from pcl::outofcore::OutofcoreAbstractNodeContainer< PointT > | |
static std::mutex | rng_mutex_ |
Detailed Description
template<typename PointT>
class pcl::outofcore::OutofcoreOctreeRamContainer< PointT >
Storage container class which the outofcore octree base is templated against.
- Note
- Code was adapted from the Urban Robotics out of core octree implementation. Contact Jacob Schloss jacob with any questions. .sch loss@ urba nrobo tics .nethttp://www.urbanrobotics.net/
Definition at line 63 of file octree_ram_container.h.
Member Typedef Documentation
AlignedPointTVector
using pcl::outofcore::OutofcoreOctreeRamContainer< PointT >::AlignedPointTVector = typename OutofcoreAbstractNodeContainer<PointT>::AlignedPointTVector |
Definition at line 66 of file octree_ram_container.h.
Constructor & Destructor Documentation
OutofcoreOctreeRamContainer() [1/2]
|
inline |
empty constructor (with a path parameter?)
Definition at line 70 of file octree_ram_container.h.
OutofcoreOctreeRamContainer() [2/2]
|
inlineprotected |
Definition at line 157 of file octree_ram_container.h.
Member Function Documentation
clear()
|
inlinevirtual |
clears the vector of points in this class
Implements pcl::outofcore::OutofcoreAbstractNodeContainer< PointT >.
Definition at line 135 of file octree_ram_container.h.
References pcl::outofcore::OutofcoreOctreeRamContainer< PointT >::container_.
convertToXYZ()
|
virtual |
Writes ascii x,y,z point data to path.string().c_str()
- Parameters
-
path The path/filename destination of the ascii xyz data
Implements pcl::outofcore::OutofcoreAbstractNodeContainer< PointT >.
Definition at line 60 of file octree_ram_container.hpp.
empty()
|
inlinevirtual |
Implements pcl::outofcore::OutofcoreAbstractNodeContainer< PointT >.
Definition at line 127 of file octree_ram_container.h.
References pcl::outofcore::OutofcoreOctreeRamContainer< PointT >::container_.
insertRange() [1/4]
|
inline |
Definition at line 87 of file octree_ram_container.h.
insertRange() [2/4]
|
inline |
Definition at line 94 of file octree_ram_container.h.
insertRange() [3/4]
|
virtual |
inserts count points into container
- Parameters
-
[in] start - address of first point in array [in] count - the maximum offset from start of points inserted
Implements pcl::outofcore::OutofcoreAbstractNodeContainer< PointT >.
Definition at line 94 of file octree_ram_container.hpp.
insertRange() [4/4]
|
virtual |
inserts count number of points into container; uses the container_ type's insert function
- Parameters
-
[in] start - address of first point in array [in] count - the maximum offset from start of points inserted
Implements pcl::outofcore::OutofcoreAbstractNodeContainer< PointT >.
Definition at line 86 of file octree_ram_container.hpp.
operator=()
|
inlineprotected |
Definition at line 160 of file octree_ram_container.h.
operator[]()
|
inlinevirtual |
Implements pcl::outofcore::OutofcoreAbstractNodeContainer< PointT >.
Definition at line 148 of file octree_ram_container.h.
References pcl::outofcore::OutofcoreOctreeRamContainer< PointT >::container_.
readRange()
void pcl::outofcore::OutofcoreOctreeRamContainer< PointT >::readRange | ( | const std::uint64_t | start, |
const std::uint64_t | count, | ||
AlignedPointTVector & | v | ||
) |
- Parameters
-
[in] start Index of first point to return from container [in] count Offset (start + count) of the last point to return from container [out] v Array of points read from the input range
Definition at line 108 of file octree_ram_container.hpp.
readRangeSubSample()
void pcl::outofcore::OutofcoreOctreeRamContainer< PointT >::readRangeSubSample | ( | const std::uint64_t | start, |
const std::uint64_t | count, | ||
const double | percent, | ||
AlignedPointTVector & | v | ||
) |
grab percent*count random points.
points are NOT guaranteed to be unique (could have multiple identical points!)
- Parameters
-
[in] start Index of first point in range to subsample [in] count Offset (start+count) of last point in range to subsample [in] percent Percentage of range to return [out] v Vector with percent*count uniformly random sampled points from given input rangerange
Definition at line 118 of file octree_ram_container.hpp.
size()
|
inlinevirtual |
returns the size of the vector of points stored in this class
Implements pcl::outofcore::OutofcoreAbstractNodeContainer< PointT >.
Definition at line 121 of file octree_ram_container.h.
References pcl::outofcore::OutofcoreOctreeRamContainer< PointT >::container_.
Member Data Documentation
container_
|
protected |
linear container to hold the points
Definition at line 166 of file octree_ram_container.h.
Referenced by pcl::outofcore::OutofcoreOctreeRamContainer< PointT >::clear(), pcl::outofcore::OutofcoreOctreeRamContainer< PointT >::empty(), pcl::outofcore::OutofcoreOctreeRamContainer< PointT >::operator[](), and pcl::outofcore::OutofcoreOctreeRamContainer< PointT >::size().
rng_
|
staticprotected |
Definition at line 169 of file octree_ram_container.h.
rng_mutex_
|
staticprotected |
Definition at line 168 of file octree_ram_container.h.
The documentation for this class was generated from the following files:
- pcl/outofcore/octree_ram_container.h
- pcl/outofcore/impl/octree_ram_container.hpp
© 2009–2012, Willow Garage, Inc.
© 2012–, Open Perception, Inc.
Licensed under the BSD License.
https://pointclouds.org/documentation/classpcl_1_1outofcore_1_1_outofcore_octree_ram_container.html