53 #ifndef vtkRandomAttributeGenerator_h
54 #define vtkRandomAttributeGenerator_h
56 #include "vtkFiltersGeneralModule.h"
90 vtkGetMacro(DataType,
int);
101 vtkGetMacro(NumberOfComponents,
int);
111 vtkGetMacro(MinimumComponentValue,
double);
114 this->SetMinimumComponentValue (minimumValue);
115 this->SetMaximumComponentValue (maximumValue);
126 vtkGetMacro(MaximumComponentValue,
double);
145 vtkGetMacro(GeneratePointScalars,
int);
155 vtkGetMacro(GeneratePointVectors,
int);
165 vtkGetMacro(GeneratePointNormals,
int);
175 vtkGetMacro(GeneratePointTensors,
int);
186 vtkGetMacro(GeneratePointTCoords,
int);
196 vtkGetMacro(GeneratePointArray,
int);
206 vtkGetMacro(GenerateCellScalars,
int);
216 vtkGetMacro(GenerateCellVectors,
int);
226 vtkGetMacro(GenerateCellNormals,
int);
236 vtkGetMacro(GenerateCellTensors,
int);
247 vtkGetMacro(GenerateCellTCoords,
int);
257 vtkGetMacro(GenerateCellArray,
int);
267 vtkGetMacro(GenerateFieldArray,
int);
278 vtkGetMacro(AttributesConstantPerBlock,
bool);
292 this->GeneratePointScalarsOn();
293 this->GeneratePointVectorsOn();
294 this->GeneratePointNormalsOn();
295 this->GeneratePointTCoordsOn();
296 this->GeneratePointTensorsOn();
297 this->GeneratePointArrayOn();
301 this->GeneratePointScalarsOff();
302 this->GeneratePointVectorsOff();
303 this->GeneratePointNormalsOff();
304 this->GeneratePointTCoordsOff();
305 this->GeneratePointTensorsOff();
306 this->GeneratePointArrayOff();
310 this->GenerateCellScalarsOn();
311 this->GenerateCellVectorsOn();
312 this->GenerateCellNormalsOn();
313 this->GenerateCellTCoordsOn();
314 this->GenerateCellTensorsOn();
315 this->GenerateCellArrayOn();
319 this->GenerateCellScalarsOff();
320 this->GenerateCellVectorsOff();
321 this->GenerateCellNormalsOff();
322 this->GenerateCellTCoordsOff();
323 this->GenerateCellTensorsOff();
324 this->GenerateCellArrayOff();
328 this->GenerateAllPointDataOn();
329 this->GenerateAllCellDataOn();
330 this->GenerateFieldArrayOn();
334 this->GenerateAllPointDataOff();
335 this->GenerateAllCellDataOff();
336 this->GenerateFieldArrayOff();
373 int minComp,
int maxComp,
double min,
double max);
abstract superclass for composite (multi-block or AMR) datasets
abstract superclass for arrays of numeric data
abstract class to specify dataset behavior
a simple class to control print indentation
generate and create random data attributes
void SetDataTypeToUnsignedChar()
int RequestData(vtkDataSet *input, vtkDataSet *output)
void SetDataTypeToUnsignedShort()
void SetDataTypeToUnsignedInt()
void GenerateAllPointDataOff()
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called within ProcessRequest when a request asks the algorithm to do its work.
void GenerateAllDataOff()
void GenerateAllCellDataOn()
double MaximumComponentValue
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
double MinimumComponentValue
void GenerateAllCellDataOff()
~vtkRandomAttributeGenerator() override
bool AttributesConstantPerBlock
void SetDataTypeToFloat()
void SetDataTypeToShort()
void SetDataTypeToDouble()
int RequestData(vtkCompositeDataSet *input, vtkCompositeDataSet *output)
void SetDataTypeToUnsignedLong()
vtkDataArray * GenerateData(int dataType, vtkIdType numTuples, int numComp, int minComp, int maxComp, double min, double max)
void GenerateRandomTuples(T *data, vtkIdType numTuples, int numComp, int minComp, int maxComp, double min, double max)
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
static vtkRandomAttributeGenerator * New()
Create instance with minimum speed 0.0, maximum speed 1.0.
void SetComponentRange(double minimumValue, double maximumValue)
void GenerateAllPointDataOn()
Convenience methods for generating data: all data, all point data, or all cell data.
vtkRandomAttributeGenerator()
vtkSetMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkBooleanMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
#define VTK_UNSIGNED_CHAR
#define VTK_UNSIGNED_SHORT
#define VTK_UNSIGNED_LONG