53#ifndef vtkRandomAttributeGenerator_h
54#define vtkRandomAttributeGenerator_h
56#include "vtkFiltersGeneralModule.h"
79 vtkSetMacro(DataType,
int);
94 vtkGetMacro(DataType,
int);
105 vtkGetMacro(NumberOfComponents,
int);
114 vtkSetMacro(MinimumComponentValue,
double);
115 vtkGetMacro(MinimumComponentValue,
double);
118 this->SetMinimumComponentValue(minimumValue);
119 this->SetMaximumComponentValue(maximumValue);
129 vtkSetMacro(MaximumComponentValue,
double);
130 vtkGetMacro(MaximumComponentValue,
double);
287 vtkSetMacro(AttributesConstantPerBlock,
bool);
288 vtkGetMacro(AttributesConstantPerBlock,
bool);
289 vtkBooleanMacro(AttributesConstantPerBlock,
bool);
301 this->GeneratePointScalarsOn();
302 this->GeneratePointVectorsOn();
303 this->GeneratePointNormalsOn();
304 this->GeneratePointTCoordsOn();
305 this->GeneratePointTensorsOn();
306 this->GeneratePointArrayOn();
310 this->GeneratePointScalarsOff();
311 this->GeneratePointVectorsOff();
312 this->GeneratePointNormalsOff();
313 this->GeneratePointTCoordsOff();
314 this->GeneratePointTensorsOff();
315 this->GeneratePointArrayOff();
319 this->GenerateCellScalarsOn();
320 this->GenerateCellVectorsOn();
321 this->GenerateCellNormalsOn();
322 this->GenerateCellTCoordsOn();
323 this->GenerateCellTensorsOn();
324 this->GenerateCellArrayOn();
328 this->GenerateCellScalarsOff();
329 this->GenerateCellVectorsOff();
330 this->GenerateCellNormalsOff();
331 this->GenerateCellTCoordsOff();
332 this->GenerateCellTensorsOff();
333 this->GenerateCellArrayOff();
337 this->GenerateAllPointDataOn();
338 this->GenerateAllCellDataOn();
339 this->GenerateFieldArrayOn();
343 this->GenerateAllPointDataOff();
344 this->GenerateAllCellDataOff();
345 this->GenerateFieldArrayOff();
381 int maxComp,
double min,
double max);
386 T* data,
vtkIdType numTuples,
int numComp,
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
vtkTypeBool GenerateCellArray
vtkTypeBool GenerateCellNormals
vtkTypeBool GenerateCellTCoords
vtkTypeBool GeneratePointTCoords
void SetDataTypeToUnsignedChar()
Specify the type of array to create (all components of this array are of this type).
int RequestData(vtkDataSet *input, vtkDataSet *output)
void SetDataTypeToUnsignedShort()
Specify the type of array to create (all components of this array are of this type).
void SetDataTypeToUnsignedInt()
Specify the type of array to create (all components of this array are of this type).
void GenerateAllPointDataOff()
Convenience methods for generating data: all data, all point data, or all cell data.
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called within ProcessRequest when a request asks the algorithm to do its work.
void GenerateAllDataOff()
Convenience methods for generating data: all data, all point data, or all cell data.
static vtkRandomAttributeGenerator * New()
Standard methods for construction, type info, and printing.
void SetDataTypeToLongLong()
Specify the type of array to create (all components of this array are of this type).
void GenerateAllCellDataOn()
Convenience methods for generating data: all data, all point data, or all cell data.
double MaximumComponentValue
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
double MinimumComponentValue
void SetDataTypeToIdType()
Specify the type of array to create (all components of this array are of this type).
void SetDataTypeToBit()
Specify the type of array to create (all components of this array are of this type).
vtkDataArray * GenerateData(int dataType, vtkIdType numTuples, int numComp, int minComp, int maxComp, double min, double max)
vtkTypeBool GenerateCellScalars
void SetDataTypeToInt()
Specify the type of array to create (all components of this array are of this type).
void SetDataTypeToLong()
Specify the type of array to create (all components of this array are of this type).
void GenerateAllDataOn()
Convenience methods for generating data: all data, all point data, or all cell data.
void GenerateAllCellDataOff()
Convenience methods for generating data: all data, all point data, or all cell data.
vtkTypeBool GeneratePointNormals
vtkTypeBool GenerateFieldArray
vtkTypeBool GeneratePointScalars
bool AttributesConstantPerBlock
void SetDataTypeToFloat()
Specify the type of array to create (all components of this array are of this type).
void SetDataTypeToShort()
Specify the type of array to create (all components of this array are of this type).
vtkTypeBool GenerateCellVectors
void SetDataTypeToDouble()
Specify the type of array to create (all components of this array are of this type).
int RequestData(vtkCompositeDataSet *input, vtkCompositeDataSet *output)
void SetDataTypeToUnsignedLong()
Specify the type of array to create (all components of this array are of this type).
vtkTypeBool GeneratePointVectors
void GenerateRandomTuples(T *data, vtkIdType numTuples, int numComp, int minComp, int maxComp, double min, double max)
void SetDataTypeToChar()
Specify the type of array to create (all components of this array are of this type).
~vtkRandomAttributeGenerator() override=default
void SetDataTypeToUnsignedLongLong()
Specify the type of array to create (all components of this array are of this type).
vtkTypeBool GeneratePointTensors
void PrintSelf(ostream &os, vtkIndent indent) override
Standard methods for construction, type info, and printing.
void SetComponentRange(double minimumValue, double maximumValue)
Set the minimum component value.
void GenerateAllPointDataOn()
Convenience methods for generating data: all data, all point data, or all cell data.
vtkTypeBool GeneratePointArray
vtkTypeBool GenerateCellTensors
vtkRandomAttributeGenerator()
#define VTK_UNSIGNED_CHAR
#define VTK_UNSIGNED_SHORT
#define VTK_UNSIGNED_LONG
#define VTK_UNSIGNED_LONG_LONG