53 #ifndef vtkRandomAttributeGenerator_h
54 #define vtkRandomAttributeGenerator_h
56 #include "vtkFiltersGeneralModule.h"
90 vtkGetMacro(DataType,
int);
100 vtkSetClampMacro(NumberOfComponents,
int,1,
VTK_INT_MAX);
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();
349 int NumberOfComponents;
351 double MinimumComponentValue;
352 double MaximumComponentValue;
354 int GeneratePointScalars;
355 int GeneratePointVectors;
356 int GeneratePointNormals;
357 int GeneratePointTCoords;
358 int GeneratePointTensors;
359 int GeneratePointArray;
361 int GenerateCellScalars;
362 int GenerateCellVectors;
363 int GenerateCellNormals;
364 int GenerateCellTCoords;
365 int GenerateCellTensors;
366 int GenerateCellArray;
368 int GenerateFieldArray;
369 bool AttributesConstantPerBlock;
373 int minComp,
int maxComp,
double min,
double max);
377 void GenerateRandomTuples(T *
data,
#define VTK_UNSIGNED_SHORT
abstract class to specify dataset behavior
void SetDataTypeToUnsignedShort()
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.
void SetDataTypeToLong()
Specify the type of array to create (all components of this array are of this type).
void GenerateAllPointDataOn()
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 GenerateAllDataOn()
Convenience methods for generating data: all data, all point data, or all cell data.
~vtkRandomAttributeGenerator() override
void SetDataTypeToInt()
Specify the type of array to create (all components of this array are of this type).
void GenerateAllDataOff()
Convenience methods for generating data: all data, all point data, or all cell data.
abstract superclass for composite (multi-block or AMR) datasets
void SetDataTypeToUnsignedChar()
Specify the type of array to create (all components of this array are of this type).
a simple class to control print indentation
abstract superclass for arrays of numeric data
void SetDataTypeToFloat()
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 SetDataTypeToUnsignedLong()
Specify the type of array to create (all components of this array are of this type).
vtkSetMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
#define VTK_UNSIGNED_CHAR
void SetDataTypeToBit()
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.
#define VTK_UNSIGNED_LONG
generate and create random data attributes
vtkBooleanMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
void SetComponentRange(double minimumValue, double maximumValue)
Set the minimum component value.
void SetDataTypeToChar()
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).