30 #ifndef vtkRandomPool_h
31 #define vtkRandomPool_h
33 #include "vtkCommonCoreModule.h"
36 VTK_ABI_NAMESPACE_BEGIN
78 vtkGetMacro(NumberOfComponents,
vtkIdType);
100 const double* GeneratePool();
101 const double*
GetPool() {
return this->Pool; }
105 return this->Pool[(compNum + this->NumberOfComponents * i) % this->TotalSize];
122 void PopulateDataArray(
vtkDataArray* da,
double minRange,
double maxRange);
123 void PopulateDataArray(
vtkDataArray* da,
int compNumber,
double minRange,
double maxRange);
158 VTK_ABI_NAMESPACE_END
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.