HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
openvdb::OPENVDB_VERSION_NAME::tools::BasePointScatter< PointAccessorType, RandomGenerator, InterruptType > Class Template Reference

Forward declaration of base class. More...

#include <PointScatter.h>

+ Inheritance diagram for openvdb::OPENVDB_VERSION_NAME::tools::BasePointScatter< PointAccessorType, RandomGenerator, InterruptType >:

Public Member Functions

Index64 getPointCount () const
 
Index64 getVoxelCount () const
 

Protected Member Functions

 BasePointScatter (PointAccessorType &points, RandomGenerator &randGen, double spread, InterruptType *interrupt=nullptr)
 This is a base class so the constructor is protected. More...
 
void start (const char *name)
 
void end ()
 
bool interrupt ()
 
double getRand01 ()
 Return a random floating point number between zero and one. More...
 
double getRand ()
 Return a random floating point number between 0.5 -+ mSpread/2. More...
 
template<typename GridT >
void addPoint (const GridT &grid, const Vec3R &dmin)
 
template<typename GridT >
void addPoint (const GridT &grid, const Vec3R &dmin, const Coord &size)
 

Protected Attributes

PointAccessorType & mPoints
 
InterruptType * mInterrupter
 
Index64 mPointCount
 
Index64 mVoxelCount
 
Index64 mInterruptCount
 
const double mSpread
 
math::Rand01< double,
RandomGenerator > 
mRand01
 

Detailed Description

template<typename PointAccessorType, typename RandomGenerator, typename InterruptType = util::NullInterrupter>
class openvdb::OPENVDB_VERSION_NAME::tools::BasePointScatter< PointAccessorType, RandomGenerator, InterruptType >

Forward declaration of base class.

Base class of all the point scattering classes defined above.

Definition at line 44 of file PointScatter.h.

Constructor & Destructor Documentation

template<typename PointAccessorType , typename RandomGenerator , typename InterruptType = util::NullInterrupter>
openvdb::OPENVDB_VERSION_NAME::tools::BasePointScatter< PointAccessorType, RandomGenerator, InterruptType >::BasePointScatter ( PointAccessorType &  points,
RandomGenerator &  randGen,
double  spread,
InterruptType *  interrupt = nullptr 
)
inlineprotected

This is a base class so the constructor is protected.

Definition at line 360 of file PointScatter.h.

Member Function Documentation

template<typename PointAccessorType , typename RandomGenerator , typename InterruptType = util::NullInterrupter>
template<typename GridT >
void openvdb::OPENVDB_VERSION_NAME::tools::BasePointScatter< PointAccessorType, RandomGenerator, InterruptType >::addPoint ( const GridT &  grid,
const Vec3R dmin 
)
inlineprotected

Definition at line 397 of file PointScatter.h.

template<typename PointAccessorType , typename RandomGenerator , typename InterruptType = util::NullInterrupter>
template<typename GridT >
void openvdb::OPENVDB_VERSION_NAME::tools::BasePointScatter< PointAccessorType, RandomGenerator, InterruptType >::addPoint ( const GridT &  grid,
const Vec3R dmin,
const Coord &  size 
)
inlineprotected

Definition at line 407 of file PointScatter.h.

template<typename PointAccessorType , typename RandomGenerator , typename InterruptType = util::NullInterrupter>
void openvdb::OPENVDB_VERSION_NAME::tools::BasePointScatter< PointAccessorType, RandomGenerator, InterruptType >::end ( void  )
inlineprotected

Definition at line 379 of file PointScatter.h.

template<typename PointAccessorType , typename RandomGenerator , typename InterruptType = util::NullInterrupter>
Index64 openvdb::OPENVDB_VERSION_NAME::tools::BasePointScatter< PointAccessorType, RandomGenerator, InterruptType >::getPointCount ( ) const
inline

Definition at line 346 of file PointScatter.h.

template<typename PointAccessorType , typename RandomGenerator , typename InterruptType = util::NullInterrupter>
double openvdb::OPENVDB_VERSION_NAME::tools::BasePointScatter< PointAccessorType, RandomGenerator, InterruptType >::getRand ( )
inlineprotected

Return a random floating point number between 0.5 -+ mSpread/2.

Definition at line 394 of file PointScatter.h.

template<typename PointAccessorType , typename RandomGenerator , typename InterruptType = util::NullInterrupter>
double openvdb::OPENVDB_VERSION_NAME::tools::BasePointScatter< PointAccessorType, RandomGenerator, InterruptType >::getRand01 ( )
inlineprotected

Return a random floating point number between zero and one.

Definition at line 391 of file PointScatter.h.

template<typename PointAccessorType , typename RandomGenerator , typename InterruptType = util::NullInterrupter>
Index64 openvdb::OPENVDB_VERSION_NAME::tools::BasePointScatter< PointAccessorType, RandomGenerator, InterruptType >::getVoxelCount ( ) const
inline

Definition at line 347 of file PointScatter.h.

template<typename PointAccessorType , typename RandomGenerator , typename InterruptType = util::NullInterrupter>
bool openvdb::OPENVDB_VERSION_NAME::tools::BasePointScatter< PointAccessorType, RandomGenerator, InterruptType >::interrupt ( )
inlineprotected

Definition at line 384 of file PointScatter.h.

template<typename PointAccessorType , typename RandomGenerator , typename InterruptType = util::NullInterrupter>
void openvdb::OPENVDB_VERSION_NAME::tools::BasePointScatter< PointAccessorType, RandomGenerator, InterruptType >::start ( const char *  name)
inlineprotected

Definition at line 374 of file PointScatter.h.

Member Data Documentation

template<typename PointAccessorType , typename RandomGenerator , typename InterruptType = util::NullInterrupter>
Index64 openvdb::OPENVDB_VERSION_NAME::tools::BasePointScatter< PointAccessorType, RandomGenerator, InterruptType >::mInterruptCount
protected

Definition at line 355 of file PointScatter.h.

template<typename PointAccessorType , typename RandomGenerator , typename InterruptType = util::NullInterrupter>
InterruptType* openvdb::OPENVDB_VERSION_NAME::tools::BasePointScatter< PointAccessorType, RandomGenerator, InterruptType >::mInterrupter
protected

Definition at line 352 of file PointScatter.h.

template<typename PointAccessorType , typename RandomGenerator , typename InterruptType = util::NullInterrupter>
Index64 openvdb::OPENVDB_VERSION_NAME::tools::BasePointScatter< PointAccessorType, RandomGenerator, InterruptType >::mPointCount
protected

Definition at line 353 of file PointScatter.h.

template<typename PointAccessorType , typename RandomGenerator , typename InterruptType = util::NullInterrupter>
PointAccessorType& openvdb::OPENVDB_VERSION_NAME::tools::BasePointScatter< PointAccessorType, RandomGenerator, InterruptType >::mPoints
protected

Definition at line 351 of file PointScatter.h.

template<typename PointAccessorType , typename RandomGenerator , typename InterruptType = util::NullInterrupter>
math::Rand01<double, RandomGenerator> openvdb::OPENVDB_VERSION_NAME::tools::BasePointScatter< PointAccessorType, RandomGenerator, InterruptType >::mRand01
protected

Definition at line 357 of file PointScatter.h.

template<typename PointAccessorType , typename RandomGenerator , typename InterruptType = util::NullInterrupter>
const double openvdb::OPENVDB_VERSION_NAME::tools::BasePointScatter< PointAccessorType, RandomGenerator, InterruptType >::mSpread
protected

Definition at line 356 of file PointScatter.h.

template<typename PointAccessorType , typename RandomGenerator , typename InterruptType = util::NullInterrupter>
Index64 openvdb::OPENVDB_VERSION_NAME::tools::BasePointScatter< PointAccessorType, RandomGenerator, InterruptType >::mVoxelCount
protected

Definition at line 354 of file PointScatter.h.


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