HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros 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=NULL)
 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 69 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 = NULL 
)
inlineprotected

This is a base class so the constructor is protected.

Definition at line 385 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 422 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 432 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 404 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 371 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 419 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 416 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 372 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 409 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 399 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 380 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 377 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 378 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 376 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 382 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 381 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 379 of file PointScatter.h.


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