VTK
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes
vtkRandomAttributeGenerator Class Reference

generate and create random data attributes More...

#include <vtkRandomAttributeGenerator.h>

Inheritance diagram for vtkRandomAttributeGenerator:
Inheritance graph
[legend]
Collaboration diagram for vtkRandomAttributeGenerator:
Collaboration graph
[legend]

List of all members.

Public Types

typedef vtkPassInputTypeAlgorithm Superclass

Public Member Functions

virtual int IsA (const char *type)
vtkRandomAttributeGeneratorNewInstance () const
void PrintSelf (ostream &os, vtkIndent indent)
virtual void SetDataType (int)
void SetDataTypeToBit ()
void SetDataTypeToChar ()
void SetDataTypeToUnsignedChar ()
void SetDataTypeToShort ()
void SetDataTypeToUnsignedShort ()
void SetDataTypeToInt ()
void SetDataTypeToUnsignedInt ()
void SetDataTypeToLong ()
void SetDataTypeToUnsignedLong ()
void SetDataTypeToFloat ()
void SetDataTypeToDouble ()
virtual int GetDataType ()
virtual void SetNumberOfComponents (int)
virtual int GetNumberOfComponents ()
virtual void SetMinimumComponentValue (double)
virtual double GetMinimumComponentValue ()
void SetComponentRange (double minimumValue, double maximumValue)
virtual void SetMaximumComponentValue (double)
virtual double GetMaximumComponentValue ()
virtual void SetNumberOfTuples (vtkIdType)
virtual vtkIdType GetNumberOfTuples ()
virtual void SetGeneratePointScalars (int)
virtual int GetGeneratePointScalars ()
virtual void GeneratePointScalarsOn ()
virtual void GeneratePointScalarsOff ()
virtual void SetGeneratePointVectors (int)
virtual int GetGeneratePointVectors ()
virtual void GeneratePointVectorsOn ()
virtual void GeneratePointVectorsOff ()
virtual void SetGeneratePointNormals (int)
virtual int GetGeneratePointNormals ()
virtual void GeneratePointNormalsOn ()
virtual void GeneratePointNormalsOff ()
virtual void SetGeneratePointTensors (int)
virtual int GetGeneratePointTensors ()
virtual void GeneratePointTensorsOn ()
virtual void GeneratePointTensorsOff ()
virtual void SetGeneratePointTCoords (int)
virtual int GetGeneratePointTCoords ()
virtual void GeneratePointTCoordsOn ()
virtual void GeneratePointTCoordsOff ()
virtual void SetGeneratePointArray (int)
virtual int GetGeneratePointArray ()
virtual void GeneratePointArrayOn ()
virtual void GeneratePointArrayOff ()
virtual void SetGenerateCellScalars (int)
virtual int GetGenerateCellScalars ()
virtual void GenerateCellScalarsOn ()
virtual void GenerateCellScalarsOff ()
virtual void SetGenerateCellVectors (int)
virtual int GetGenerateCellVectors ()
virtual void GenerateCellVectorsOn ()
virtual void GenerateCellVectorsOff ()
virtual void SetGenerateCellNormals (int)
virtual int GetGenerateCellNormals ()
virtual void GenerateCellNormalsOn ()
virtual void GenerateCellNormalsOff ()
virtual void SetGenerateCellTensors (int)
virtual int GetGenerateCellTensors ()
virtual void GenerateCellTensorsOn ()
virtual void GenerateCellTensorsOff ()
virtual void SetGenerateCellTCoords (int)
virtual int GetGenerateCellTCoords ()
virtual void GenerateCellTCoordsOn ()
virtual void GenerateCellTCoordsOff ()
virtual void SetGenerateCellArray (int)
virtual int GetGenerateCellArray ()
virtual void GenerateCellArrayOn ()
virtual void GenerateCellArrayOff ()
virtual void SetGenerateFieldArray (int)
virtual int GetGenerateFieldArray ()
virtual void GenerateFieldArrayOn ()
virtual void GenerateFieldArrayOff ()
virtual void SetAttributesConstantPerBlock (bool)
virtual bool GetAttributesConstantPerBlock ()
virtual void AttributesConstantPerBlockOn ()
virtual void AttributesConstantPerBlockOff ()
void GenerateAllPointDataOn ()
void GenerateAllPointDataOff ()
void GenerateAllCellDataOn ()
void GenerateAllCellDataOff ()
void GenerateAllDataOn ()
void GenerateAllDataOff ()

Static Public Member Functions

static
vtkRandomAttributeGenerator
New ()
static int IsTypeOf (const char *type)
static
vtkRandomAttributeGenerator
SafeDownCast (vtkObjectBase *o)

Protected Member Functions

virtual vtkObjectBaseNewInstanceInternal () const
 vtkRandomAttributeGenerator ()
 ~vtkRandomAttributeGenerator ()
virtual int RequestData (vtkInformation *, vtkInformationVector **, vtkInformationVector *)
virtual int FillInputPortInformation (int port, vtkInformation *info)
vtkDataArrayGenerateData (int dataType, vtkIdType numTuples, int numComp, int minComp, int maxComp, double min, double max)
int RequestData (vtkDataSet *input, vtkDataSet *output)
int RequestData (vtkCompositeDataSet *input, vtkCompositeDataSet *output)
template<class T >
void GenerateRandomTuples (T *data, vtkIdType numTuples, int numComp, int minComp, int maxComp, double min, double max)

Protected Attributes

int DataType
int NumberOfComponents
vtkIdType NumberOfTuples
double MinimumComponentValue
double MaximumComponentValue
int GeneratePointScalars
int GeneratePointVectors
int GeneratePointNormals
int GeneratePointTCoords
int GeneratePointTensors
int GeneratePointArray
int GenerateCellScalars
int GenerateCellVectors
int GenerateCellNormals
int GenerateCellTCoords
int GenerateCellTensors
int GenerateCellArray
int GenerateFieldArray
bool AttributesConstantPerBlock

Detailed Description

generate and create random data attributes

vtkRandomAttributeGenerator is a filter that creates random attributes including scalars, vectors, normals, tensors, texture coordinates and/or general data arrays. These attributes can be generated as point data, cell data or general field data. The generation of each component is normalized between a user-specified minimum and maximum value.

This filter provides that capability to specify the data type of the attributes, the range for each of the components, and the number of components. Note, however, that this flexibility only goes so far because some attributes (e.g., normals, vectors and tensors) are fixed in the number of components, and in the case of normals and tensors, are constrained in the values that some of the components can take (i.e., normals have magnitude one, and tensors are symmetric).

Warning:
In general this class is used for debugging or testing purposes.
It is possible to generate multiple attributes simultaneously.
By default, no data is generated. Make sure to enable the generation of some attributes if you want this filter to affect the output. Also note that this filter passes through input geometry, topology and attributes. Newly created attributes may replace attribute data that would have otherwise been passed through.
See also:
vtkBrownianPoints
Tests:
vtkRandomAttributeGenerator (Tests)

Definition at line 61 of file vtkRandomAttributeGenerator.h.


Member Typedef Documentation

Reimplemented from vtkPassInputTypeAlgorithm.

Definition at line 67 of file vtkRandomAttributeGenerator.h.


Constructor & Destructor Documentation

Definition at line 301 of file vtkRandomAttributeGenerator.h.


Member Function Documentation

Create instance with minimum speed 0.0, maximum speed 1.0.

Reimplemented from vtkPassInputTypeAlgorithm.

static int vtkRandomAttributeGenerator::IsTypeOf ( const char *  name) [static]

Return 1 if this class type is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h.

Reimplemented from vtkPassInputTypeAlgorithm.

virtual int vtkRandomAttributeGenerator::IsA ( const char *  name) [virtual]

Return 1 if this class is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h.

Reimplemented from vtkPassInputTypeAlgorithm.

Reimplemented from vtkPassInputTypeAlgorithm.

virtual vtkObjectBase* vtkRandomAttributeGenerator::NewInstanceInternal ( ) const [protected, virtual]

Reimplemented from vtkPassInputTypeAlgorithm.

Reimplemented from vtkPassInputTypeAlgorithm.

void vtkRandomAttributeGenerator::PrintSelf ( ostream &  os,
vtkIndent  indent 
) [virtual]

Methods invoked by print to print information about the object including superclasses. Typically not called by the user (use Print() instead) but used in the hierarchical print process to combine the output of several classes.

Reimplemented from vtkPassInputTypeAlgorithm.

virtual void vtkRandomAttributeGenerator::SetDataType ( int  ) [virtual]

Specify the type of array to create (all components of this array are of this type). This holds true for all arrays that are created.

Specify the type of array to create (all components of this array are of this type). This holds true for all arrays that are created.

Definition at line 74 of file vtkRandomAttributeGenerator.h.

Specify the type of array to create (all components of this array are of this type). This holds true for all arrays that are created.

Definition at line 75 of file vtkRandomAttributeGenerator.h.

Specify the type of array to create (all components of this array are of this type). This holds true for all arrays that are created.

Definition at line 76 of file vtkRandomAttributeGenerator.h.

Specify the type of array to create (all components of this array are of this type). This holds true for all arrays that are created.

Definition at line 77 of file vtkRandomAttributeGenerator.h.

Specify the type of array to create (all components of this array are of this type). This holds true for all arrays that are created.

Definition at line 78 of file vtkRandomAttributeGenerator.h.

Specify the type of array to create (all components of this array are of this type). This holds true for all arrays that are created.

Definition at line 79 of file vtkRandomAttributeGenerator.h.

Specify the type of array to create (all components of this array are of this type). This holds true for all arrays that are created.

Definition at line 80 of file vtkRandomAttributeGenerator.h.

Specify the type of array to create (all components of this array are of this type). This holds true for all arrays that are created.

Definition at line 81 of file vtkRandomAttributeGenerator.h.

Specify the type of array to create (all components of this array are of this type). This holds true for all arrays that are created.

Definition at line 82 of file vtkRandomAttributeGenerator.h.

Specify the type of array to create (all components of this array are of this type). This holds true for all arrays that are created.

Definition at line 83 of file vtkRandomAttributeGenerator.h.

Specify the type of array to create (all components of this array are of this type). This holds true for all arrays that are created.

Definition at line 84 of file vtkRandomAttributeGenerator.h.

Specify the type of array to create (all components of this array are of this type). This holds true for all arrays that are created.

Specify the number of components to generate. This value only applies to those attribute types that take a variable number of components. For example, a vector is only three components so the number of components is not applicable; whereas a scalar may support multiple, varying number of components.

Specify the number of components to generate. This value only applies to those attribute types that take a variable number of components. For example, a vector is only three components so the number of components is not applicable; whereas a scalar may support multiple, varying number of components.

Set the minimum component value. This applies to all data that is generated, although normals and tensors have internal constraints that must be observed.

Set the minimum component value. This applies to all data that is generated, although normals and tensors have internal constraints that must be observed.

void vtkRandomAttributeGenerator::SetComponentRange ( double  minimumValue,
double  maximumValue 
) [inline]

Set the minimum component value. This applies to all data that is generated, although normals and tensors have internal constraints that must be observed.

Definition at line 104 of file vtkRandomAttributeGenerator.h.

Set the maximum component value. This applies to all data that is generated, although normals and tensors have internal constraints that must be observed.

Set the maximum component value. This applies to all data that is generated, although normals and tensors have internal constraints that must be observed.

Specify the number of tuples to generate. This value only applies when creating general field data. In all other cases (i.e., point data or cell data), the number of tuples is controlled by the number of points and cells, respectively.

Specify the number of tuples to generate. This value only applies when creating general field data. In all other cases (i.e., point data or cell data), the number of tuples is controlled by the number of points and cells, respectively.

Indicate that point scalars are to be generated. Note that the specified number of components is used to create the scalar.

Indicate that point scalars are to be generated. Note that the specified number of components is used to create the scalar.

Indicate that point scalars are to be generated. Note that the specified number of components is used to create the scalar.

Indicate that point scalars are to be generated. Note that the specified number of components is used to create the scalar.

Indicate that point vectors are to be generated. Note that the number of components is always equal to three.

Indicate that point vectors are to be generated. Note that the number of components is always equal to three.

Indicate that point vectors are to be generated. Note that the number of components is always equal to three.

Indicate that point vectors are to be generated. Note that the number of components is always equal to three.

Indicate that point normals are to be generated. Note that the number of components is always equal to three.

Indicate that point normals are to be generated. Note that the number of components is always equal to three.

Indicate that point normals are to be generated. Note that the number of components is always equal to three.

Indicate that point normals are to be generated. Note that the number of components is always equal to three.

Indicate that point tensors are to be generated. Note that the number of components is always equal to nine.

Indicate that point tensors are to be generated. Note that the number of components is always equal to nine.

Indicate that point tensors are to be generated. Note that the number of components is always equal to nine.

Indicate that point tensors are to be generated. Note that the number of components is always equal to nine.

Indicate that point texture coordinates are to be generated. Note that the specified number of components is used to create the texture coordinates (but must range between one and three).

Indicate that point texture coordinates are to be generated. Note that the specified number of components is used to create the texture coordinates (but must range between one and three).

Indicate that point texture coordinates are to be generated. Note that the specified number of components is used to create the texture coordinates (but must range between one and three).

Indicate that point texture coordinates are to be generated. Note that the specified number of components is used to create the texture coordinates (but must range between one and three).

Indicate that an arbitrary point array is to be generated. Note that the specified number of components is used to create the array.

Indicate that an arbitrary point array is to be generated. Note that the specified number of components is used to create the array.

Indicate that an arbitrary point array is to be generated. Note that the specified number of components is used to create the array.

Indicate that an arbitrary point array is to be generated. Note that the specified number of components is used to create the array.

Indicate that cell scalars are to be generated. Note that the specified number of components is used to create the scalar.

Indicate that cell scalars are to be generated. Note that the specified number of components is used to create the scalar.

Indicate that cell scalars are to be generated. Note that the specified number of components is used to create the scalar.

Indicate that cell scalars are to be generated. Note that the specified number of components is used to create the scalar.

Indicate that cell vectors are to be generated. Note that the number of components is always equal to three.

Indicate that cell vectors are to be generated. Note that the number of components is always equal to three.

Indicate that cell vectors are to be generated. Note that the number of components is always equal to three.

Indicate that cell vectors are to be generated. Note that the number of components is always equal to three.

Indicate that cell normals are to be generated. Note that the number of components is always equal to three.

Indicate that cell normals are to be generated. Note that the number of components is always equal to three.

Indicate that cell normals are to be generated. Note that the number of components is always equal to three.

Indicate that cell normals are to be generated. Note that the number of components is always equal to three.

Indicate that cell tensors are to be generated. Note that the number of components is always equal to nine.

Indicate that cell tensors are to be generated. Note that the number of components is always equal to nine.

Indicate that cell tensors are to be generated. Note that the number of components is always equal to nine.

Indicate that cell tensors are to be generated. Note that the number of components is always equal to nine.

Indicate that cell texture coordinates are to be generated. Note that the specified number of components is used to create the texture coordinates (but must range between one and three).

Indicate that cell texture coordinates are to be generated. Note that the specified number of components is used to create the texture coordinates (but must range between one and three).

Indicate that cell texture coordinates are to be generated. Note that the specified number of components is used to create the texture coordinates (but must range between one and three).

Indicate that cell texture coordinates are to be generated. Note that the specified number of components is used to create the texture coordinates (but must range between one and three).

Indicate that an arbitrary cell array is to be generated. Note that the specified number of components is used to create the array.

Indicate that an arbitrary cell array is to be generated. Note that the specified number of components is used to create the array.

Indicate that an arbitrary cell array is to be generated. Note that the specified number of components is used to create the array.

Indicate that an arbitrary cell array is to be generated. Note that the specified number of components is used to create the array.

Indicate that an arbitrary field data array is to be generated. Note that the specified number of components is used to create the scalar.

Indicate that an arbitrary field data array is to be generated. Note that the specified number of components is used to create the scalar.

Indicate that an arbitrary field data array is to be generated. Note that the specified number of components is used to create the scalar.

Indicate that an arbitrary field data array is to be generated. Note that the specified number of components is used to create the scalar.

Indicate that the generated attributes are constant within a block. This can be used to highlight blocks in a composite dataset.

Indicate that the generated attributes are constant within a block. This can be used to highlight blocks in a composite dataset.

Indicate that the generated attributes are constant within a block. This can be used to highlight blocks in a composite dataset.

Indicate that the generated attributes are constant within a block. This can be used to highlight blocks in a composite dataset.

Convenience methods for generating data: all data, all point data, or all cell data. For example, if all data is enabled, then all point, cell and field data is generated. If all point data is enabled, then point scalars, vectors, normals, tensors, tcoords, and a data array are produced.

Definition at line 249 of file vtkRandomAttributeGenerator.h.

Convenience methods for generating data: all data, all point data, or all cell data. For example, if all data is enabled, then all point, cell and field data is generated. If all point data is enabled, then point scalars, vectors, normals, tensors, tcoords, and a data array are produced.

Definition at line 258 of file vtkRandomAttributeGenerator.h.

Convenience methods for generating data: all data, all point data, or all cell data. For example, if all data is enabled, then all point, cell and field data is generated. If all point data is enabled, then point scalars, vectors, normals, tensors, tcoords, and a data array are produced.

Definition at line 267 of file vtkRandomAttributeGenerator.h.

Convenience methods for generating data: all data, all point data, or all cell data. For example, if all data is enabled, then all point, cell and field data is generated. If all point data is enabled, then point scalars, vectors, normals, tensors, tcoords, and a data array are produced.

Definition at line 276 of file vtkRandomAttributeGenerator.h.

Convenience methods for generating data: all data, all point data, or all cell data. For example, if all data is enabled, then all point, cell and field data is generated. If all point data is enabled, then point scalars, vectors, normals, tensors, tcoords, and a data array are produced.

Definition at line 285 of file vtkRandomAttributeGenerator.h.

Convenience methods for generating data: all data, all point data, or all cell data. For example, if all data is enabled, then all point, cell and field data is generated. If all point data is enabled, then point scalars, vectors, normals, tensors, tcoords, and a data array are produced.

Definition at line 291 of file vtkRandomAttributeGenerator.h.

This is called within ProcessRequest when a request asks the algorithm to do its work. This is the method you should override to do whatever the algorithm is designed to do. This happens during the fourth pass in the pipeline execution process.

Reimplemented from vtkPassInputTypeAlgorithm.

virtual int vtkRandomAttributeGenerator::FillInputPortInformation ( int  port,
vtkInformation info 
) [protected, virtual]

Fill the input port information objects for this algorithm. This is invoked by the first call to GetInputPortInformation for each port so subclasses can specify what they can handle.

Reimplemented from vtkPassInputTypeAlgorithm.

vtkDataArray* vtkRandomAttributeGenerator::GenerateData ( int  dataType,
vtkIdType  numTuples,
int  numComp,
int  minComp,
int  maxComp,
double  min,
double  max 
) [protected]
int vtkRandomAttributeGenerator::RequestData ( vtkDataSet input,
vtkDataSet output 
) [protected]
template<class T >
void vtkRandomAttributeGenerator::GenerateRandomTuples ( T *  data,
vtkIdType  numTuples,
int  numComp,
int  minComp,
int  maxComp,
double  min,
double  max 
) [protected]

Member Data Documentation

Definition at line 307 of file vtkRandomAttributeGenerator.h.

Definition at line 308 of file vtkRandomAttributeGenerator.h.

Definition at line 309 of file vtkRandomAttributeGenerator.h.

Definition at line 310 of file vtkRandomAttributeGenerator.h.

Definition at line 311 of file vtkRandomAttributeGenerator.h.

Definition at line 313 of file vtkRandomAttributeGenerator.h.

Definition at line 314 of file vtkRandomAttributeGenerator.h.

Definition at line 315 of file vtkRandomAttributeGenerator.h.

Definition at line 316 of file vtkRandomAttributeGenerator.h.

Definition at line 317 of file vtkRandomAttributeGenerator.h.

Definition at line 318 of file vtkRandomAttributeGenerator.h.

Definition at line 320 of file vtkRandomAttributeGenerator.h.

Definition at line 321 of file vtkRandomAttributeGenerator.h.

Definition at line 322 of file vtkRandomAttributeGenerator.h.

Definition at line 323 of file vtkRandomAttributeGenerator.h.

Definition at line 324 of file vtkRandomAttributeGenerator.h.

Definition at line 325 of file vtkRandomAttributeGenerator.h.

Definition at line 327 of file vtkRandomAttributeGenerator.h.

Definition at line 328 of file vtkRandomAttributeGenerator.h.


The documentation for this class was generated from the following file: