39 #ifndef vtkRandomPool_h 40 #define vtkRandomPool_h 42 #include "vtkCommonCoreModule.h" 86 vtkGetMacro(NumberOfComponents,
vtkIdType);
108 const double* GeneratePool();
112 {
return this->Pool[(compNum + this->NumberOfComponents*i) % this->TotalSize];}
128 void PopulateDataArray(
vtkDataArray *da,
double minRange,
double maxRange);
129 void PopulateDataArray(
vtkDataArray *da,
int compNumber,
130 double minRange,
double maxRange);
double GetValue(vtkIdType i, int compNum)
These methods provide access to the raw random pool as a double array.
abstract base class for most VTK objects
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
record modification and/or execution time
convenience class to quickly generate a pool of random numbers
Generate a sequence of random numbers.
vtkTimeStamp GenerateTime
a simple class to control print indentation
abstract superclass for arrays of numeric data
vtkIdType GetTotalSize()
This convenience method returns the total size of the memory pool, i.e., Size*NumberOfComponents.
double GetValue(vtkIdType i)
These methods provide access to the raw random pool as a double array.
vtkRandomSequence * Sequence
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...
const double * GetPool()
These methods provide access to the raw random pool as a double array.