50 #ifndef vtkRandomAttributeGenerator_h
51 #define vtkRandomAttributeGenerator_h
53 #include "vtkFiltersGeneralModule.h"
76 vtkSetMacro(DataType,
int);
91 vtkGetMacro(DataType,
int);
102 vtkGetMacro(NumberOfComponents,
int);
111 vtkSetMacro(MinimumComponentValue,
double);
112 vtkGetMacro(MinimumComponentValue,
double);
115 this->SetMinimumComponentValue(minimumValue);
116 this->SetMaximumComponentValue(maximumValue);
126 vtkSetMacro(MaximumComponentValue,
double);
127 vtkGetMacro(MaximumComponentValue,
double);
284 vtkSetMacro(AttributesConstantPerBlock,
bool);
285 vtkGetMacro(AttributesConstantPerBlock,
bool);
286 vtkBooleanMacro(AttributesConstantPerBlock,
bool);
298 this->GeneratePointScalarsOn();
299 this->GeneratePointVectorsOn();
300 this->GeneratePointNormalsOn();
301 this->GeneratePointTCoordsOn();
302 this->GeneratePointTensorsOn();
303 this->GeneratePointArrayOn();
307 this->GeneratePointScalarsOff();
308 this->GeneratePointVectorsOff();
309 this->GeneratePointNormalsOff();
310 this->GeneratePointTCoordsOff();
311 this->GeneratePointTensorsOff();
312 this->GeneratePointArrayOff();
316 this->GenerateCellScalarsOn();
317 this->GenerateCellVectorsOn();
318 this->GenerateCellNormalsOn();
319 this->GenerateCellTCoordsOn();
320 this->GenerateCellTensorsOn();
321 this->GenerateCellArrayOn();
325 this->GenerateCellScalarsOff();
326 this->GenerateCellVectorsOff();
327 this->GenerateCellNormalsOff();
328 this->GenerateCellTCoordsOff();
329 this->GenerateCellTensorsOff();
330 this->GenerateCellArrayOff();
334 this->GenerateAllPointDataOn();
335 this->GenerateAllCellDataOn();
336 this->GenerateFieldArrayOn();
340 this->GenerateAllPointDataOff();
341 this->GenerateAllCellDataOff();
342 this->GenerateFieldArrayOff();
378 int maxComp,
double min,
double max);
383 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()
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 SetDataTypeToLongLong()
void GenerateAllCellDataOn()
double MaximumComponentValue
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
double MinimumComponentValue
void SetDataTypeToIdType()
vtkTypeBool GenerateCellScalars
void GenerateAllCellDataOff()
~vtkRandomAttributeGenerator() override
vtkTypeBool GeneratePointNormals
vtkTypeBool GenerateFieldArray
vtkTypeBool GeneratePointScalars
bool AttributesConstantPerBlock
void SetDataTypeToFloat()
void SetDataTypeToShort()
vtkTypeBool GenerateCellVectors
void SetDataTypeToDouble()
int RequestData(vtkCompositeDataSet *input, vtkCompositeDataSet *output)
void SetDataTypeToUnsignedLong()
vtkTypeBool GeneratePointVectors
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 SetDataTypeToUnsignedLongLong()
vtkTypeBool GeneratePointTensors
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
static vtkRandomAttributeGenerator * New()
Standard methods for construction, type info, and printing.
void SetComponentRange(double minimumValue, double maximumValue)
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