41#ifndef vtkRandomAttributeGenerator_h
42#define vtkRandomAttributeGenerator_h
45#include "vtkFiltersGeneralModule.h"
48VTK_ABI_NAMESPACE_BEGIN
73 vtkSetMacro(DataType,
int);
88 vtkGetMacro(DataType,
int);
99 vtkGetMacro(NumberOfComponents,
int);
108 vtkSetMacro(MinimumComponentValue,
double);
109 vtkGetMacro(MinimumComponentValue,
double);
112 this->SetMinimumComponentValue(minimumValue);
113 this->SetMaximumComponentValue(maximumValue);
123 vtkSetMacro(MaximumComponentValue,
double);
124 vtkGetMacro(MaximumComponentValue,
double);
281 vtkSetMacro(AttributesConstantPerBlock,
bool);
282 vtkGetMacro(AttributesConstantPerBlock,
bool);
283 vtkBooleanMacro(AttributesConstantPerBlock,
bool);
295 this->GeneratePointScalarsOn();
296 this->GeneratePointVectorsOn();
297 this->GeneratePointNormalsOn();
298 this->GeneratePointTCoordsOn();
299 this->GeneratePointTensorsOn();
300 this->GeneratePointArrayOn();
304 this->GeneratePointScalarsOff();
305 this->GeneratePointVectorsOff();
306 this->GeneratePointNormalsOff();
307 this->GeneratePointTCoordsOff();
308 this->GeneratePointTensorsOff();
309 this->GeneratePointArrayOff();
313 this->GenerateCellScalarsOn();
314 this->GenerateCellVectorsOn();
315 this->GenerateCellNormalsOn();
316 this->GenerateCellTCoordsOn();
317 this->GenerateCellTensorsOn();
318 this->GenerateCellArrayOn();
322 this->GenerateCellScalarsOff();
323 this->GenerateCellVectorsOff();
324 this->GenerateCellNormalsOff();
325 this->GenerateCellTCoordsOff();
326 this->GenerateCellTensorsOff();
327 this->GenerateCellArrayOff();
331 this->GenerateAllPointDataOn();
332 this->GenerateAllCellDataOn();
333 this->GenerateFieldArrayOn();
337 this->GenerateAllPointDataOff();
338 this->GenerateAllCellDataOff();
339 this->GenerateFieldArrayOff();
351 int NumberOfComponents = 1;
353 double MinimumComponentValue = 0.0;
354 double MaximumComponentValue = 1.0;
371 bool AttributesConstantPerBlock =
false;
378 int maxComp,
double min,
double max);
386 T* data,
vtkIdType numTuples,
int numComp,
int minComp,
int maxComp,
double min,
double max);
389 "it as been made private.")
392 "it as been made private.")
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
represent and manipulate fields of data
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_DEPRECATED_IN_9_4_0(reason)
#define VTK_UNSIGNED_CHAR
#define VTK_UNSIGNED_SHORT
#define VTK_UNSIGNED_LONG
#define VTK_UNSIGNED_LONG_LONG