49 #ifndef __vtkRandomAttributeGenerator_h
50 #define __vtkRandomAttributeGenerator_h
52 #include "vtkFiltersGeneralModule.h"
62 void PrintSelf(ostream& os, vtkIndent indent);
67 vtkSetMacro(DataType,
int);
79 vtkGetMacro(DataType,
int);
88 vtkSetClampMacro(NumberOfComponents,
int,1,VTK_INT_MAX);
89 vtkGetMacro(NumberOfComponents,
int);
96 vtkSetMacro(MinimumComponentValue,
double);
97 vtkGetMacro(MinimumComponentValue,
double);
104 vtkSetMacro(MaximumComponentValue,
double);
105 vtkGetMacro(MaximumComponentValue,
double);
113 vtkSetClampMacro(NumberOfTuples,vtkIdType,0,VTK_INT_MAX);
114 vtkGetMacro(NumberOfTuples,vtkIdType);
120 vtkSetMacro(GeneratePointScalars,
int);
121 vtkGetMacro(GeneratePointScalars,
int);
122 vtkBooleanMacro(GeneratePointScalars,
int);
128 vtkSetMacro(GeneratePointVectors,
int);
129 vtkGetMacro(GeneratePointVectors,
int);
130 vtkBooleanMacro(GeneratePointVectors,
int);
136 vtkSetMacro(GeneratePointNormals,
int);
137 vtkGetMacro(GeneratePointNormals,
int);
138 vtkBooleanMacro(GeneratePointNormals,
int);
144 vtkSetMacro(GeneratePointTensors,
int);
145 vtkGetMacro(GeneratePointTensors,
int);
146 vtkBooleanMacro(GeneratePointTensors,
int);
153 vtkSetMacro(GeneratePointTCoords,
int);
154 vtkGetMacro(GeneratePointTCoords,
int);
155 vtkBooleanMacro(GeneratePointTCoords,
int);
161 vtkSetMacro(GeneratePointArray,
int);
162 vtkGetMacro(GeneratePointArray,
int);
163 vtkBooleanMacro(GeneratePointArray,
int);
169 vtkSetMacro(GenerateCellScalars,
int);
170 vtkGetMacro(GenerateCellScalars,
int);
171 vtkBooleanMacro(GenerateCellScalars,
int);
177 vtkSetMacro(GenerateCellVectors,
int);
178 vtkGetMacro(GenerateCellVectors,
int);
179 vtkBooleanMacro(GenerateCellVectors,
int);
185 vtkSetMacro(GenerateCellNormals,
int);
186 vtkGetMacro(GenerateCellNormals,
int);
187 vtkBooleanMacro(GenerateCellNormals,
int);
193 vtkSetMacro(GenerateCellTensors,
int);
194 vtkGetMacro(GenerateCellTensors,
int);
195 vtkBooleanMacro(GenerateCellTensors,
int);
202 vtkSetMacro(GenerateCellTCoords,
int);
203 vtkGetMacro(GenerateCellTCoords,
int);
204 vtkBooleanMacro(GenerateCellTCoords,
int);
210 vtkSetMacro(GenerateCellArray,
int);
211 vtkGetMacro(GenerateCellArray,
int);
212 vtkBooleanMacro(GenerateCellArray,
int);
218 vtkSetMacro(GenerateFieldArray,
int);
219 vtkGetMacro(GenerateFieldArray,
int);
220 vtkBooleanMacro(GenerateFieldArray,
int);
231 this->GeneratePointScalarsOn();
232 this->GeneratePointVectorsOn();
233 this->GeneratePointNormalsOn();
234 this->GeneratePointTCoordsOn();
235 this->GeneratePointTensorsOn();
236 this->GeneratePointArrayOn();
240 this->GeneratePointScalarsOff();
241 this->GeneratePointVectorsOff();
242 this->GeneratePointNormalsOff();
243 this->GeneratePointTCoordsOff();
244 this->GeneratePointTensorsOff();
245 this->GeneratePointArrayOff();
249 this->GenerateCellScalarsOn();
250 this->GenerateCellVectorsOn();
251 this->GenerateCellNormalsOn();
252 this->GenerateCellTCoordsOn();
253 this->GenerateCellTensorsOn();
254 this->GenerateCellArrayOn();
258 this->GenerateCellScalarsOff();
259 this->GenerateCellVectorsOff();
260 this->GenerateCellNormalsOff();
261 this->GenerateCellTCoordsOff();
262 this->GenerateCellTensorsOff();
263 this->GenerateCellArrayOff();
267 this->GenerateAllPointDataOn();
268 this->GenerateAllCellDataOn();
269 this->GenerateFieldArrayOn();
273 this->GenerateAllPointDataOff();
274 this->GenerateAllCellDataOff();
275 this->GenerateFieldArrayOff();
283 virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *);
308 vtkDataArray *GenerateData(
int dataType, vtkIdType numTuples,
int numComp,
309 int minComp,
int maxComp,
double min,
double max);
void SetDataTypeToUnsignedShort()
void GenerateAllPointDataOff()
void GenerateAllPointDataOn()
void GenerateAllCellDataOff()
double MinimumComponentValue
void GenerateAllDataOff()
void SetDataTypeToUnsignedChar()
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
void SetDataTypeToFloat()
double MaximumComponentValue
void SetDataTypeToUnsignedInt()
void SetDataTypeToUnsignedLong()
void GenerateAllCellDataOn()
void PrintSelf(ostream &os, vtkIndent indent)
Superclass for algorithms that produce output of the same type as input.
generate and create random data attributes
void SetDataTypeToShort()
static vtkDataSetAlgorithm * New()
~vtkRandomAttributeGenerator()
void SetDataTypeToDouble()