39 #ifndef vtkRandomPool_h
40 #define vtkRandomPool_h
42 #include "vtkCommonCoreModule.h"
109 const double*
GetPool() {
return this->Pool; }
113 return this->Pool[(compNum + this->NumberOfComponents * i) % this->TotalSize];
abstract superclass for arrays of numeric data
a simple class to control print indentation
abstract base class for most VTK objects
convenience class to quickly generate a pool of random numbers
virtual void SetSequence(vtkRandomSequence *seq)
Specify the random sequence generator used to produce the random pool.
~vtkRandomPool() override
const double * GeneratePool()
These methods provide access to the raw random pool as a double array.
vtkRandomSequence * Sequence
double GetValue(vtkIdType i)
vtkTimeStamp GenerateTime
void PopulateDataArray(vtkDataArray *da, double minRange, double maxRange)
Methods to populate data arrays of various types with values within a specified (min,...
double GetValue(vtkIdType i, int compNum)
vtkIdType GetTotalSize()
This convenience method returns the total size of the memory pool, i.e., Size*NumberOfComponents.
void PopulateDataArray(vtkDataArray *da, int compNumber, double minRange, double maxRange)
static vtkRandomPool * New()
Standard methods for instantiation, type information, and printing.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
Generate a sequence of random numbers.
record modification and/or execution time