41#ifndef vtkRandomAttributeGenerator_h
42#define vtkRandomAttributeGenerator_h
44#include "vtkFiltersGeneralModule.h"
47VTK_ABI_NAMESPACE_BEGIN
72 vtkSetMacro(DataType,
int);
87 vtkGetMacro(DataType,
int);
98 vtkGetMacro(NumberOfComponents,
int);
107 vtkSetMacro(MinimumComponentValue,
double);
108 vtkGetMacro(MinimumComponentValue,
double);
111 this->SetMinimumComponentValue(minimumValue);
112 this->SetMaximumComponentValue(maximumValue);
122 vtkSetMacro(MaximumComponentValue,
double);
123 vtkGetMacro(MaximumComponentValue,
double);
280 vtkSetMacro(AttributesConstantPerBlock,
bool);
281 vtkGetMacro(AttributesConstantPerBlock,
bool);
282 vtkBooleanMacro(AttributesConstantPerBlock,
bool);
294 this->GeneratePointScalarsOn();
295 this->GeneratePointVectorsOn();
296 this->GeneratePointNormalsOn();
297 this->GeneratePointTCoordsOn();
298 this->GeneratePointTensorsOn();
299 this->GeneratePointArrayOn();
303 this->GeneratePointScalarsOff();
304 this->GeneratePointVectorsOff();
305 this->GeneratePointNormalsOff();
306 this->GeneratePointTCoordsOff();
307 this->GeneratePointTensorsOff();
308 this->GeneratePointArrayOff();
312 this->GenerateCellScalarsOn();
313 this->GenerateCellVectorsOn();
314 this->GenerateCellNormalsOn();
315 this->GenerateCellTCoordsOn();
316 this->GenerateCellTensorsOn();
317 this->GenerateCellArrayOn();
321 this->GenerateCellScalarsOff();
322 this->GenerateCellVectorsOff();
323 this->GenerateCellNormalsOff();
324 this->GenerateCellTCoordsOff();
325 this->GenerateCellTensorsOff();
326 this->GenerateCellArrayOff();
330 this->GenerateAllPointDataOn();
331 this->GenerateAllCellDataOn();
332 this->GenerateFieldArrayOn();
336 this->GenerateAllPointDataOff();
337 this->GenerateAllCellDataOff();
338 this->GenerateFieldArrayOff();
350 int NumberOfComponents = 1;
352 double MinimumComponentValue = 0.0;
353 double MaximumComponentValue = 1.0;
370 bool AttributesConstantPerBlock =
false;
377 int maxComp,
double min,
double max);
385 T* data,
vtkIdType numTuples,
int numComp,
int minComp,
int maxComp,
double min,
double max);
represent and manipulate cell attribute data
abstract superclass for composite (multi-block or AMR) datasets
abstract superclass for arrays of numeric data
abstract class to specify dataset behavior
Represents and manipulates a collection of data arrays.
A dataset containing a grid of vtkHyperTree instances arranged as a rectilinear grid.
a simple class to control print indentation
represent and manipulate point attribute data
generate and create random data attributes
void SetDataTypeToUnsignedChar()
Specify the type of array to create (all components of this array are of this type).
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.
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
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)
Returns new array with numTuples tuples and numComp components, with values in the range [min,...
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.
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).
void SetDataTypeToDouble()
Specify the type of array to create (all components of this array are of this type).
void SetDataTypeToUnsignedLong()
Specify the type of array to create (all components of this array are of this type).
void GenerateRandomTuples(T *data, vtkIdType numTuples, int numComp, int minComp, int maxComp, double min, double max)
Fills data with numTuples tuples and numComp components, with values in the range [min,...
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).
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.
vtkRandomAttributeGenerator()=default
#define VTK_UNSIGNED_CHAR
#define VTK_UNSIGNED_SHORT
#define VTK_UNSIGNED_LONG
#define VTK_UNSIGNED_LONG_LONG