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