VTK
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
vtkFieldDataToAttributeDataFilter Class Reference

map field data to dataset attribute data More...

#include <vtkFieldDataToAttributeDataFilter.h>

Inheritance diagram for vtkFieldDataToAttributeDataFilter:
[legend]
Collaboration diagram for vtkFieldDataToAttributeDataFilter:
[legend]

Public Types

typedef vtkDataSetAlgorithm Superclass
 
- Public Types inherited from vtkDataSetAlgorithm
typedef vtkAlgorithm Superclass
 
- Public Types inherited from vtkAlgorithm
typedef vtkObject Superclass
 
enum  DesiredOutputPrecision { SINGLE_PRECISION, DOUBLE_PRECISION, DEFAULT_PRECISION }
 
- Public Types inherited from vtkObject
typedef vtkObjectBase Superclass
 

Public Member Functions

void PrintSelf (ostream &os, vtkIndent indent)
 
virtual int IsA (const char *type)
 
vtkFieldDataToAttributeDataFilterNewInstance () const
 
virtual int RequestUpdateExtent (vtkInformation *, vtkInformationVector **, vtkInformationVector *)
 
virtual void SetInputField (int)
 
virtual int GetInputField ()
 
void SetInputFieldToDataObjectField ()
 
void SetInputFieldToPointDataField ()
 
void SetInputFieldToCellDataField ()
 
virtual void SetOutputAttributeData (int)
 
virtual int GetOutputAttributeData ()
 
void SetOutputAttributeDataToCellData ()
 
void SetOutputAttributeDataToPointData ()
 
void SetScalarComponent (int comp, const char *arrayName, int arrayComp, int min, int max, int normalize)
 
void SetScalarComponent (int comp, const char *arrayName, int arrayComp)
 
const char * GetScalarComponentArrayName (int comp)
 
int GetScalarComponentArrayComponent (int comp)
 
int GetScalarComponentMinRange (int comp)
 
int GetScalarComponentMaxRange (int comp)
 
int GetScalarComponentNormalizeFlag (int comp)
 
void SetVectorComponent (int comp, const char *arrayName, int arrayComp, int min, int max, int normalize)
 
void SetVectorComponent (int comp, const char *arrayName, int arrayComp)
 
const char * GetVectorComponentArrayName (int comp)
 
int GetVectorComponentArrayComponent (int comp)
 
int GetVectorComponentMinRange (int comp)
 
int GetVectorComponentMaxRange (int comp)
 
int GetVectorComponentNormalizeFlag (int comp)
 
void SetNormalComponent (int comp, const char *arrayName, int arrayComp, int min, int max, int normalize)
 
void SetNormalComponent (int comp, const char *arrayName, int arrayComp)
 
const char * GetNormalComponentArrayName (int comp)
 
int GetNormalComponentArrayComponent (int comp)
 
int GetNormalComponentMinRange (int comp)
 
int GetNormalComponentMaxRange (int comp)
 
int GetNormalComponentNormalizeFlag (int comp)
 
void SetTensorComponent (int comp, const char *arrayName, int arrayComp, int min, int max, int normalize)
 
void SetTensorComponent (int comp, const char *arrayName, int arrayComp)
 
const char * GetTensorComponentArrayName (int comp)
 
int GetTensorComponentArrayComponent (int comp)
 
int GetTensorComponentMinRange (int comp)
 
int GetTensorComponentMaxRange (int comp)
 
int GetTensorComponentNormalizeFlag (int comp)
 
void SetTCoordComponent (int comp, const char *arrayName, int arrayComp, int min, int max, int normalize)
 
void SetTCoordComponent (int comp, const char *arrayName, int arrayComp)
 
const char * GetTCoordComponentArrayName (int comp)
 
int GetTCoordComponentArrayComponent (int comp)
 
int GetTCoordComponentMinRange (int comp)
 
int GetTCoordComponentMaxRange (int comp)
 
int GetTCoordComponentNormalizeFlag (int comp)
 
virtual void SetDefaultNormalize (int)
 
virtual int GetDefaultNormalize ()
 
virtual void DefaultNormalizeOn ()
 
virtual void DefaultNormalizeOff ()
 
- Public Member Functions inherited from vtkDataSetAlgorithm
vtkDataSetAlgorithmNewInstance () const
 
vtkDataObjectGetInput ()
 
vtkPolyDataGetPolyDataOutput ()
 
vtkStructuredPointsGetStructuredPointsOutput ()
 
vtkImageDataGetImageDataOutput ()
 
vtkStructuredGridGetStructuredGridOutput ()
 
vtkUnstructuredGridGetUnstructuredGridOutput ()
 
vtkRectilinearGridGetRectilinearGridOutput ()
 
vtkDataSetGetOutput ()
 
vtkDataSetGetOutput (int)
 
void SetInputData (vtkDataObject *)
 
void SetInputData (int, vtkDataObject *)
 
void SetInputData (vtkDataSet *)
 
void SetInputData (int, vtkDataSet *)
 
void AddInputData (vtkDataObject *)
 
void AddInputData (vtkDataSet *)
 
void AddInputData (int, vtkDataSet *)
 
void AddInputData (int, vtkDataObject *)
 
virtual int ProcessRequest (vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
 
- Public Member Functions inherited from vtkAlgorithm
vtkAlgorithmNewInstance () const
 
int HasExecutive ()
 
vtkExecutiveGetExecutive ()
 
virtual void SetExecutive (vtkExecutive *executive)
 
virtual int ModifyRequest (vtkInformation *request, int when)
 
vtkInformationGetInputPortInformation (int port)
 
vtkInformationGetOutputPortInformation (int port)
 
int GetNumberOfInputPorts ()
 
int GetNumberOfOutputPorts ()
 
void UpdateProgress (double amount)
 
vtkInformationGetInputArrayInformation (int idx)
 
void RemoveAllInputs ()
 
vtkDataObjectGetOutputDataObject (int port)
 
virtual void RemoveInputConnection (int port, vtkAlgorithmOutput *input)
 
virtual void RemoveInputConnection (int port, int idx)
 
virtual void RemoveAllInputConnections (int port)
 
int GetNumberOfInputConnections (int port)
 
int GetTotalNumberOfInputConnections ()
 
vtkAlgorithmOutputGetInputConnection (int port, int index)
 
vtkAlgorithmGetInputAlgorithm (int port, int index, int &algPort)
 
vtkAlgorithmGetInputAlgorithm (int port, int index)
 
vtkExecutiveGetInputExecutive (int port, int index)
 
vtkInformationGetInputInformation (int port, int index)
 
vtkInformationGetOutputInformation (int port)
 
virtual void UpdateInformation ()
 
virtual void UpdateDataObject ()
 
virtual void PropagateUpdateExtent ()
 
virtual void UpdateWholeExtent ()
 
void ConvertTotalInputToPortConnection (int ind, int &port, int &conn)
 
int SetUpdateExtentToWholeExtent (int port)
 
int SetUpdateExtentToWholeExtent ()
 
void SetUpdateExtent (int port, int extent[6])
 
int ProcessRequest (vtkInformation *request, vtkCollection *inInfo, vtkInformationVector *outInfo)
 
virtual int ComputePipelineMTime (vtkInformation *request, vtkInformationVector **inInfoVec, vtkInformationVector *outInfoVec, int requestFromOutputPort, unsigned long *mtime)
 
virtual vtkInformationGetInformation ()
 
virtual void SetInformation (vtkInformation *)
 
virtual void Register (vtkObjectBase *o)
 
virtual void UnRegister (vtkObjectBase *o)
 
virtual void SetAbortExecute (int)
 
virtual int GetAbortExecute ()
 
virtual void AbortExecuteOn ()
 
virtual void AbortExecuteOff ()
 
virtual void SetProgress (double)
 
virtual double GetProgress ()
 
void SetProgressText (const char *ptext)
 
virtual char * GetProgressText ()
 
virtual unsigned long GetErrorCode ()
 
virtual void SetInputArrayToProcess (int idx, int port, int connection, int fieldAssociation, const char *name)
 
virtual void SetInputArrayToProcess (int idx, int port, int connection, int fieldAssociation, int fieldAttributeType)
 
virtual void SetInputArrayToProcess (int idx, vtkInformation *info)
 
virtual void SetInputArrayToProcess (int idx, int port, int connection, const char *fieldAssociation, const char *attributeTypeorName)
 
vtkDataObjectGetInputDataObject (int port, int connection)
 
virtual void SetInputConnection (int port, vtkAlgorithmOutput *input)
 
virtual void SetInputConnection (vtkAlgorithmOutput *input)
 
virtual void AddInputConnection (int port, vtkAlgorithmOutput *input)
 
virtual void AddInputConnection (vtkAlgorithmOutput *input)
 
virtual void SetInputDataObject (int port, vtkDataObject *data)
 
virtual void SetInputDataObject (vtkDataObject *data)
 
virtual void AddInputDataObject (int port, vtkDataObject *data)
 
virtual void AddInputDataObject (vtkDataObject *data)
 
vtkAlgorithmOutputGetOutputPort (int index)
 
vtkAlgorithmOutputGetOutputPort ()
 
vtkAlgorithmGetInputAlgorithm ()
 
vtkExecutiveGetInputExecutive ()
 
vtkInformationGetInputInformation ()
 
virtual void Update (int port)
 
virtual void Update ()
 
virtual void SetReleaseDataFlag (int)
 
virtual int GetReleaseDataFlag ()
 
void ReleaseDataFlagOn ()
 
void ReleaseDataFlagOff ()
 
int UpdateExtentIsEmpty (vtkInformation *pinfo, vtkDataObject *output)
 
int UpdateExtentIsEmpty (vtkInformation *pinfo, int extentType)
 
void SetUpdateExtent (int port, int piece, int numPieces, int ghostLevel)
 
void SetUpdateExtent (int piece, int numPieces, int ghostLevel)
 
void SetUpdateExtent (int extent[6])
 
intGetUpdateExtent ()
 
intGetUpdateExtent (int port)
 
void GetUpdateExtent (int &x0, int &x1, int &y0, int &y1, int &z0, int &z1)
 
void GetUpdateExtent (int port, int &x0, int &x1, int &y0, int &y1, int &z0, int &z1)
 
void GetUpdateExtent (int extent[6])
 
void GetUpdateExtent (int port, int extent[6])
 
int GetUpdatePiece ()
 
int GetUpdatePiece (int port)
 
int GetUpdateNumberOfPieces ()
 
int GetUpdateNumberOfPieces (int port)
 
int GetUpdateGhostLevel ()
 
int GetUpdateGhostLevel (int port)
 
void SetProgressObserver (vtkProgressObserver *)
 
virtual vtkProgressObserverGetProgressObserver ()
 
- Public Member Functions inherited from vtkObject
vtkObjectNewInstance () const
 
virtual void DebugOn ()
 
virtual void DebugOff ()
 
bool GetDebug ()
 
void SetDebug (bool debugFlag)
 
virtual void Modified ()
 
virtual unsigned long GetMTime ()
 
unsigned long AddObserver (unsigned long event, vtkCommand *, float priority=0.0f)
 
unsigned long AddObserver (const char *event, vtkCommand *, float priority=0.0f)
 
vtkCommandGetCommand (unsigned long tag)
 
void RemoveObserver (vtkCommand *)
 
void RemoveObservers (unsigned long event, vtkCommand *)
 
void RemoveObservers (const char *event, vtkCommand *)
 
int HasObserver (unsigned long event, vtkCommand *)
 
int HasObserver (const char *event, vtkCommand *)
 
void RemoveObserver (unsigned long tag)
 
void RemoveObservers (unsigned long event)
 
void RemoveObservers (const char *event)
 
void RemoveAllObservers ()
 
int HasObserver (unsigned long event)
 
int HasObserver (const char *event)
 
template<class U , class T >
unsigned long AddObserver (unsigned long event, U observer, void(T::*callback)(), float priority=0.0f)
 
template<class U , class T >
unsigned long AddObserver (unsigned long event, U observer, void(T::*callback)(vtkObject *, unsigned long, void *), float priority=0.0f)
 
template<class U , class T >
unsigned long AddObserver (unsigned long event, U observer, bool(T::*callback)(vtkObject *, unsigned long, void *), float priority=0.0f)
 
int InvokeEvent (unsigned long event, void *callData)
 
int InvokeEvent (const char *event, void *callData)
 
int InvokeEvent (unsigned long event)
 
int InvokeEvent (const char *event)
 
- Public Member Functions inherited from vtkObjectBase
const char * GetClassName () const
 
virtual void Delete ()
 
virtual void FastDelete ()
 
void Print (ostream &os)
 
void SetReferenceCount (int)
 
void PrintRevisions (ostream &)
 
virtual void PrintHeader (ostream &os, vtkIndent indent)
 
virtual void PrintTrailer (ostream &os, vtkIndent indent)
 
int GetReferenceCount ()
 

Static Public Member Functions

static int IsTypeOf (const char *type)
 
static vtkFieldDataToAttributeDataFilterSafeDownCast (vtkObjectBase *o)
 
static vtkFieldDataToAttributeDataFilterNew ()
 
static int GetComponentsType (int numComp, vtkDataArray **arrays)
 
static vtkDataArrayGetFieldArray (vtkFieldData *fd, char *name, int comp)
 
static void SetArrayName (vtkObject *self, char *&name, const char *newName)
 
static int ConstructArray (vtkDataArray *da, int comp, vtkDataArray *frray, int fieldComp, vtkIdType min, vtkIdType max, int normalize)
 
static int UpdateComponentRange (vtkDataArray *da, vtkIdType compRange[2])
 
- Static Public Member Functions inherited from vtkDataSetAlgorithm
static vtkDataSetAlgorithmNew ()
 
static int IsTypeOf (const char *type)
 
static vtkDataSetAlgorithmSafeDownCast (vtkObjectBase *o)
 
- Static Public Member Functions inherited from vtkAlgorithm
static vtkAlgorithmNew ()
 
static int IsTypeOf (const char *type)
 
static vtkAlgorithmSafeDownCast (vtkObjectBase *o)
 
static vtkInformationIntegerKeyINPUT_IS_OPTIONAL ()
 
static vtkInformationIntegerKeyINPUT_IS_REPEATABLE ()
 
static vtkInformationInformationVectorKeyINPUT_REQUIRED_FIELDS ()
 
static vtkInformationStringVectorKeyINPUT_REQUIRED_DATA_TYPE ()
 
static vtkInformationInformationVectorKeyINPUT_ARRAYS_TO_PROCESS ()
 
static vtkInformationIntegerKeyINPUT_PORT ()
 
static vtkInformationIntegerKeyINPUT_CONNECTION ()
 
static vtkInformationIntegerKeyCAN_PRODUCE_SUB_EXTENT ()
 
static vtkInformationIntegerKeyCAN_HANDLE_PIECE_REQUEST ()
 
static void SetDefaultExecutivePrototype (vtkExecutive *proto)
 
- Static Public Member Functions inherited from vtkObject
static int IsTypeOf (const char *type)
 
static vtkObjectSafeDownCast (vtkObjectBase *o)
 
static vtkObjectNew ()
 
static void BreakOnError ()
 
static void SetGlobalWarningDisplay (int val)
 
static void GlobalWarningDisplayOn ()
 
static void GlobalWarningDisplayOff ()
 
static int GetGlobalWarningDisplay ()
 
- Static Public Member Functions inherited from vtkObjectBase
static int IsTypeOf (const char *name)
 
static vtkObjectBaseNew ()
 

Protected Member Functions

virtual vtkObjectBaseNewInstanceInternal () const
 
 vtkFieldDataToAttributeDataFilter ()
 
 ~vtkFieldDataToAttributeDataFilter ()
 
virtual int RequestData (vtkInformation *, vtkInformationVector **, vtkInformationVector *)
 
void ConstructScalars (int num, vtkFieldData *fd, vtkDataSetAttributes *attr, vtkIdType componentRange[4][2], char *arrays[4], int arrayComponents[4], int normalize[4], int numComp)
 
void ConstructVectors (int num, vtkFieldData *fd, vtkDataSetAttributes *attr, vtkIdType componentRange[3][2], char *arrays[3], int arrayComponents[3], int normalize[3])
 
void ConstructGhostLevels (int num, vtkFieldData *fd, vtkDataSetAttributes *attr, vtkIdType componentRange[2], char *array, int arrayComponent, int normalize)
 
void ConstructNormals (int num, vtkFieldData *fd, vtkDataSetAttributes *attr, vtkIdType componentRange[3][2], char *arrays[3], int arrayComponents[3], int normalize[3])
 
void ConstructTCoords (int num, vtkFieldData *fd, vtkDataSetAttributes *attr, vtkIdType componentRange[3][2], char *arrays[3], int arrayComponents[3], int normalize[3], int numComp)
 
void ConstructTensors (int num, vtkFieldData *fd, vtkDataSetAttributes *attr, vtkIdType componentRange[9][2], char *arrays[9], int arrayComponents[9], int normalize[9])
 
void ConstructFieldData (int num, vtkDataSetAttributes *attr)
 
- Protected Member Functions inherited from vtkDataSetAlgorithm
 vtkDataSetAlgorithm ()
 
 ~vtkDataSetAlgorithm ()
 
virtual int FillOutputPortInformation (int port, vtkInformation *info)
 
virtual int FillInputPortInformation (int port, vtkInformation *info)
 
vtkDataObjectGetInput (int port)
 
virtual int RequestInformation (vtkInformation *, vtkInformationVector **, vtkInformationVector *)
 
virtual int RequestDataObject (vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
 
- Protected Member Functions inherited from vtkAlgorithm
 vtkAlgorithm ()
 
 ~vtkAlgorithm ()
 
virtual void SetNumberOfInputPorts (int n)
 
virtual void SetNumberOfOutputPorts (int n)
 
int InputPortIndexInRange (int index, const char *action)
 
int OutputPortIndexInRange (int index, const char *action)
 
int GetInputArrayAssociation (int idx, vtkInformationVector **inputVector)
 
virtual vtkExecutiveCreateDefaultExecutive ()
 
virtual void ReportReferences (vtkGarbageCollector *)
 
virtual void SetNumberOfInputConnections (int port, int n)
 
int GetInputArrayAssociation (int idx, int connection, vtkInformationVector **inputVector)
 
int GetInputArrayAssociation (int idx, vtkDataObject *input)
 
vtkDataArrayGetInputArrayToProcess (int idx, vtkInformationVector **inputVector)
 
vtkDataArrayGetInputArrayToProcess (int idx, vtkInformationVector **inputVector, int &association)
 
vtkDataArrayGetInputArrayToProcess (int idx, int connection, vtkInformationVector **inputVector)
 
vtkDataArrayGetInputArrayToProcess (int idx, int connection, vtkInformationVector **inputVector, int &association)
 
vtkDataArrayGetInputArrayToProcess (int idx, vtkDataObject *input)
 
vtkDataArrayGetInputArrayToProcess (int idx, vtkDataObject *input, int &association)
 
vtkAbstractArrayGetInputAbstractArrayToProcess (int idx, vtkInformationVector **inputVector)
 
vtkAbstractArrayGetInputAbstractArrayToProcess (int idx, vtkInformationVector **inputVector, int &association)
 
vtkAbstractArrayGetInputAbstractArrayToProcess (int idx, int connection, vtkInformationVector **inputVector)
 
vtkAbstractArrayGetInputAbstractArrayToProcess (int idx, int connection, vtkInformationVector **inputVector, int &association)
 
vtkAbstractArrayGetInputAbstractArrayToProcess (int idx, vtkDataObject *input)
 
vtkAbstractArrayGetInputAbstractArrayToProcess (int idx, vtkDataObject *input, int &association)
 
vtkInformationGetInputArrayFieldInformation (int idx, vtkInformationVector **inputVector)
 
virtual void SetNthInputConnection (int port, int index, vtkAlgorithmOutput *input)
 
void SetInputDataInternal (int port, vtkDataObject *input)
 
void AddInputDataInternal (int port, vtkDataObject *input)
 
virtual void SetErrorCode (unsigned long)
 
- Protected Member Functions inherited from vtkObject
 vtkObject ()
 
virtual ~vtkObject ()
 
virtual void RegisterInternal (vtkObjectBase *, int check)
 
virtual void UnRegisterInternal (vtkObjectBase *, int check)
 
void InternalGrabFocus (vtkCommand *mouseEvents, vtkCommand *keypressEvents=NULL)
 
void InternalReleaseFocus ()
 
- Protected Member Functions inherited from vtkObjectBase
 vtkObjectBase ()
 
virtual ~vtkObjectBase ()
 
virtual void CollectRevisions (ostream &)
 
 vtkObjectBase (const vtkObjectBase &)
 
void operator= (const vtkObjectBase &)
 

Protected Attributes

int InputField
 
int OutputAttributeData
 
int NumberOfScalarComponents
 
char * ScalarArrays [4]
 
int ScalarArrayComponents [4]
 
vtkIdType ScalarComponentRange [4][2]
 
int ScalarNormalize [4]
 
char * VectorArrays [3]
 
int VectorArrayComponents [3]
 
vtkIdType VectorComponentRange [3][2]
 
int VectorNormalize [3]
 
char * GhostLevelArray
 
int GhostLevelArrayComponent
 
vtkIdType GhostLevelComponentRange [2]
 
int GhostLevelNormalize
 
char * NormalArrays [3]
 
int NormalArrayComponents [3]
 
vtkIdType NormalComponentRange [3][2]
 
int NormalNormalize [3]
 
char * TensorArrays [9]
 
int TensorArrayComponents [9]
 
vtkIdType TensorComponentRange [9][2]
 
int TensorNormalize [9]
 
int NumberOfTCoordComponents
 
char * TCoordArrays [3]
 
int TCoordArrayComponents [3]
 
vtkIdType TCoordComponentRange [3][2]
 
int TCoordNormalize [3]
 
int DefaultNormalize
 
- Protected Attributes inherited from vtkAlgorithm
vtkInformationInformation
 
double Progress
 
char * ProgressText
 
vtkProgressObserverProgressObserver
 
unsigned long ErrorCode
 
- Protected Attributes inherited from vtkObject
bool Debug
 
vtkTimeStamp MTime
 
vtkSubjectHelper * SubjectHelper
 
- Protected Attributes inherited from vtkObjectBase
vtkAtomicInt32 ReferenceCount
 
vtkWeakPointerBase ** WeakPointers
 

Additional Inherited Members

- Public Attributes inherited from vtkAlgorithm
int AbortExecute
 
- Static Protected Member Functions inherited from vtkAlgorithm
static vtkInformationIntegerKeyPORT_REQUIREMENTS_FILLED ()
 
- Static Protected Attributes inherited from vtkAlgorithm
static vtkExecutiveDefaultExecutivePrototype
 

Detailed Description

map field data to dataset attribute data

vtkFieldDataToAttributeDataFilter is a class that maps field data into dataset attributes. The input to this filter is any type of dataset and the output is the same dataset (geometry/topology) with new attribute data (attribute data is passed through if not replaced during filter execution).

To use this filter you must specify which field data from the input dataset to use. There are three possibilities: the cell field data, the point field data, or the field data associated with the data object superclass. Then you specify which attribute data to create: either cell attribute data or point attribute data. Finally, you must define how to construct the various attribute data types (e.g., scalars, vectors, normals, etc.) from the arrays and the components of the arrays from the field data. This is done by associating components in the input field with components making up the attribute data. For example, you would specify a scalar with three components (RGB) by assigning components from the field for the R, then G, then B values of the scalars. You may also have to specify component ranges (for each R-G-B) to make sure that the number of R, G, and B values is the same. Also, you may want to normalize the components which helps distribute the data uniformly.

This filter is often used in conjunction with vtkDataObjectToDataSetFilter. vtkDataObjectToDataSetFilter filter generates dataset topology and geometry and passes its input field data along to its output. Then this filter is used to generate the attribute data to go along with the dataset.

Warning
Make sure that the data you extract is consistent. That is, if you have N points, extract N point attributes (scalars, vectors, etc.).
See also
vtkFieldData vtkDataSet vtkDataObjectToDataSetFilter vtkDataSetAttributes vtkDataArray
Tests:
vtkFieldDataToAttributeDataFilter (Tests)

Definition at line 74 of file vtkFieldDataToAttributeDataFilter.h.

Member Typedef Documentation

Definition at line 78 of file vtkFieldDataToAttributeDataFilter.h.

Constructor & Destructor Documentation

vtkFieldDataToAttributeDataFilter::vtkFieldDataToAttributeDataFilter ( )
protected
vtkFieldDataToAttributeDataFilter::~vtkFieldDataToAttributeDataFilter ( )
protected

Member Function Documentation

void vtkFieldDataToAttributeDataFilter::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 vtkDataSetAlgorithm.

static int vtkFieldDataToAttributeDataFilter::IsTypeOf ( const char *  type)
static
virtual int vtkFieldDataToAttributeDataFilter::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 vtkDataSetAlgorithm.

static vtkFieldDataToAttributeDataFilter* vtkFieldDataToAttributeDataFilter::SafeDownCast ( vtkObjectBase o)
static
virtual vtkObjectBase* vtkFieldDataToAttributeDataFilter::NewInstanceInternal ( ) const
protectedvirtual

Reimplemented from vtkDataSetAlgorithm.

vtkFieldDataToAttributeDataFilter* vtkFieldDataToAttributeDataFilter::NewInstance ( ) const
static vtkFieldDataToAttributeDataFilter* vtkFieldDataToAttributeDataFilter::New ( )
static

Construct object with input field set to the data object field, and the output attribute data set to generate point data.

virtual void vtkFieldDataToAttributeDataFilter::SetInputField ( int  )
virtual

Specify which field data to use to generate the output attribute data. There are three choices: the field data associated with the vtkDataObject superclass; the point field attribute data; and the cell field attribute data.

virtual int vtkFieldDataToAttributeDataFilter::GetInputField ( )
virtual

Specify which field data to use to generate the output attribute data. There are three choices: the field data associated with the vtkDataObject superclass; the point field attribute data; and the cell field attribute data.

void vtkFieldDataToAttributeDataFilter::SetInputFieldToDataObjectField ( )
inline

Specify which field data to use to generate the output attribute data. There are three choices: the field data associated with the vtkDataObject superclass; the point field attribute data; and the cell field attribute data.

Definition at line 91 of file vtkFieldDataToAttributeDataFilter.h.

void vtkFieldDataToAttributeDataFilter::SetInputFieldToPointDataField ( )
inline

Specify which field data to use to generate the output attribute data. There are three choices: the field data associated with the vtkDataObject superclass; the point field attribute data; and the cell field attribute data.

Definition at line 93 of file vtkFieldDataToAttributeDataFilter.h.

void vtkFieldDataToAttributeDataFilter::SetInputFieldToCellDataField ( )
inline

Specify which field data to use to generate the output attribute data. There are three choices: the field data associated with the vtkDataObject superclass; the point field attribute data; and the cell field attribute data.

Definition at line 95 of file vtkFieldDataToAttributeDataFilter.h.

virtual void vtkFieldDataToAttributeDataFilter::SetOutputAttributeData ( int  )
virtual

Specify which attribute data to output: point or cell data attributes.

virtual int vtkFieldDataToAttributeDataFilter::GetOutputAttributeData ( )
virtual

Specify which attribute data to output: point or cell data attributes.

void vtkFieldDataToAttributeDataFilter::SetOutputAttributeDataToCellData ( )
inline

Specify which attribute data to output: point or cell data attributes.

Definition at line 104 of file vtkFieldDataToAttributeDataFilter.h.

void vtkFieldDataToAttributeDataFilter::SetOutputAttributeDataToPointData ( )
inline

Specify which attribute data to output: point or cell data attributes.

Definition at line 106 of file vtkFieldDataToAttributeDataFilter.h.

void vtkFieldDataToAttributeDataFilter::SetScalarComponent ( int  comp,
const char *  arrayName,
int  arrayComp,
int  min,
int  max,
int  normalize 
)

Define the component(s) of the field to be used for the scalar components. Note that the parameter comp must lie between (0,4). To define the field component to use you specify an array name and the component in that array. The (min,max) values are the range of data in the component you wish to extract.

void vtkFieldDataToAttributeDataFilter::SetScalarComponent ( int  comp,
const char *  arrayName,
int  arrayComp 
)
inline

Define the component(s) of the field to be used for the scalar components. Note that the parameter comp must lie between (0,4). To define the field component to use you specify an array name and the component in that array. The (min,max) values are the range of data in the component you wish to extract.

Definition at line 118 of file vtkFieldDataToAttributeDataFilter.h.

const char* vtkFieldDataToAttributeDataFilter::GetScalarComponentArrayName ( int  comp)

Define the component(s) of the field to be used for the scalar components. Note that the parameter comp must lie between (0,4). To define the field component to use you specify an array name and the component in that array. The (min,max) values are the range of data in the component you wish to extract.

int vtkFieldDataToAttributeDataFilter::GetScalarComponentArrayComponent ( int  comp)

Define the component(s) of the field to be used for the scalar components. Note that the parameter comp must lie between (0,4). To define the field component to use you specify an array name and the component in that array. The (min,max) values are the range of data in the component you wish to extract.

int vtkFieldDataToAttributeDataFilter::GetScalarComponentMinRange ( int  comp)

Define the component(s) of the field to be used for the scalar components. Note that the parameter comp must lie between (0,4). To define the field component to use you specify an array name and the component in that array. The (min,max) values are the range of data in the component you wish to extract.

int vtkFieldDataToAttributeDataFilter::GetScalarComponentMaxRange ( int  comp)

Define the component(s) of the field to be used for the scalar components. Note that the parameter comp must lie between (0,4). To define the field component to use you specify an array name and the component in that array. The (min,max) values are the range of data in the component you wish to extract.

int vtkFieldDataToAttributeDataFilter::GetScalarComponentNormalizeFlag ( int  comp)

Define the component(s) of the field to be used for the scalar components. Note that the parameter comp must lie between (0,4). To define the field component to use you specify an array name and the component in that array. The (min,max) values are the range of data in the component you wish to extract.

void vtkFieldDataToAttributeDataFilter::SetVectorComponent ( int  comp,
const char *  arrayName,
int  arrayComp,
int  min,
int  max,
int  normalize 
)

Define the component(s) of the field to be used for the vector components. Note that the parameter comp must lie between (0,3). To define the field component to use you specify an array name and the component in that array. The (min,max) values are the range of data in the component you wish to extract.

void vtkFieldDataToAttributeDataFilter::SetVectorComponent ( int  comp,
const char *  arrayName,
int  arrayComp 
)
inline

Define the component(s) of the field to be used for the vector components. Note that the parameter comp must lie between (0,3). To define the field component to use you specify an array name and the component in that array. The (min,max) values are the range of data in the component you wish to extract.

Definition at line 135 of file vtkFieldDataToAttributeDataFilter.h.

const char* vtkFieldDataToAttributeDataFilter::GetVectorComponentArrayName ( int  comp)

Define the component(s) of the field to be used for the vector components. Note that the parameter comp must lie between (0,3). To define the field component to use you specify an array name and the component in that array. The (min,max) values are the range of data in the component you wish to extract.

int vtkFieldDataToAttributeDataFilter::GetVectorComponentArrayComponent ( int  comp)

Define the component(s) of the field to be used for the vector components. Note that the parameter comp must lie between (0,3). To define the field component to use you specify an array name and the component in that array. The (min,max) values are the range of data in the component you wish to extract.

int vtkFieldDataToAttributeDataFilter::GetVectorComponentMinRange ( int  comp)

Define the component(s) of the field to be used for the vector components. Note that the parameter comp must lie between (0,3). To define the field component to use you specify an array name and the component in that array. The (min,max) values are the range of data in the component you wish to extract.

int vtkFieldDataToAttributeDataFilter::GetVectorComponentMaxRange ( int  comp)

Define the component(s) of the field to be used for the vector components. Note that the parameter comp must lie between (0,3). To define the field component to use you specify an array name and the component in that array. The (min,max) values are the range of data in the component you wish to extract.

int vtkFieldDataToAttributeDataFilter::GetVectorComponentNormalizeFlag ( int  comp)

Define the component(s) of the field to be used for the vector components. Note that the parameter comp must lie between (0,3). To define the field component to use you specify an array name and the component in that array. The (min,max) values are the range of data in the component you wish to extract.

void vtkFieldDataToAttributeDataFilter::SetNormalComponent ( int  comp,
const char *  arrayName,
int  arrayComp,
int  min,
int  max,
int  normalize 
)

Define the component(s) of the field to be used for the normal components. Note that the parameter comp must lie between (0,3). To define the field component to use you specify an array name and the component in that array. The (min,max) values are the range of data in the component you wish to extract.

void vtkFieldDataToAttributeDataFilter::SetNormalComponent ( int  comp,
const char *  arrayName,
int  arrayComp 
)
inline

Define the component(s) of the field to be used for the normal components. Note that the parameter comp must lie between (0,3). To define the field component to use you specify an array name and the component in that array. The (min,max) values are the range of data in the component you wish to extract.

Definition at line 152 of file vtkFieldDataToAttributeDataFilter.h.

const char* vtkFieldDataToAttributeDataFilter::GetNormalComponentArrayName ( int  comp)

Define the component(s) of the field to be used for the normal components. Note that the parameter comp must lie between (0,3). To define the field component to use you specify an array name and the component in that array. The (min,max) values are the range of data in the component you wish to extract.

int vtkFieldDataToAttributeDataFilter::GetNormalComponentArrayComponent ( int  comp)

Define the component(s) of the field to be used for the normal components. Note that the parameter comp must lie between (0,3). To define the field component to use you specify an array name and the component in that array. The (min,max) values are the range of data in the component you wish to extract.

int vtkFieldDataToAttributeDataFilter::GetNormalComponentMinRange ( int  comp)

Define the component(s) of the field to be used for the normal components. Note that the parameter comp must lie between (0,3). To define the field component to use you specify an array name and the component in that array. The (min,max) values are the range of data in the component you wish to extract.

int vtkFieldDataToAttributeDataFilter::GetNormalComponentMaxRange ( int  comp)

Define the component(s) of the field to be used for the normal components. Note that the parameter comp must lie between (0,3). To define the field component to use you specify an array name and the component in that array. The (min,max) values are the range of data in the component you wish to extract.

int vtkFieldDataToAttributeDataFilter::GetNormalComponentNormalizeFlag ( int  comp)

Define the component(s) of the field to be used for the normal components. Note that the parameter comp must lie between (0,3). To define the field component to use you specify an array name and the component in that array. The (min,max) values are the range of data in the component you wish to extract.

void vtkFieldDataToAttributeDataFilter::SetTensorComponent ( int  comp,
const char *  arrayName,
int  arrayComp,
int  min,
int  max,
int  normalize 
)

Define the components of the field to be used for the tensor components. Note that the parameter comp must lie between (0,9). To define the field component to use you specify an array name and the component in that array. The (min,max) values are the range of data in the component you wish to extract.

void vtkFieldDataToAttributeDataFilter::SetTensorComponent ( int  comp,
const char *  arrayName,
int  arrayComp 
)
inline

Define the components of the field to be used for the tensor components. Note that the parameter comp must lie between (0,9). To define the field component to use you specify an array name and the component in that array. The (min,max) values are the range of data in the component you wish to extract.

Definition at line 169 of file vtkFieldDataToAttributeDataFilter.h.

const char* vtkFieldDataToAttributeDataFilter::GetTensorComponentArrayName ( int  comp)

Define the components of the field to be used for the tensor components. Note that the parameter comp must lie between (0,9). To define the field component to use you specify an array name and the component in that array. The (min,max) values are the range of data in the component you wish to extract.

int vtkFieldDataToAttributeDataFilter::GetTensorComponentArrayComponent ( int  comp)

Define the components of the field to be used for the tensor components. Note that the parameter comp must lie between (0,9). To define the field component to use you specify an array name and the component in that array. The (min,max) values are the range of data in the component you wish to extract.

int vtkFieldDataToAttributeDataFilter::GetTensorComponentMinRange ( int  comp)

Define the components of the field to be used for the tensor components. Note that the parameter comp must lie between (0,9). To define the field component to use you specify an array name and the component in that array. The (min,max) values are the range of data in the component you wish to extract.

int vtkFieldDataToAttributeDataFilter::GetTensorComponentMaxRange ( int  comp)

Define the components of the field to be used for the tensor components. Note that the parameter comp must lie between (0,9). To define the field component to use you specify an array name and the component in that array. The (min,max) values are the range of data in the component you wish to extract.

int vtkFieldDataToAttributeDataFilter::GetTensorComponentNormalizeFlag ( int  comp)

Define the components of the field to be used for the tensor components. Note that the parameter comp must lie between (0,9). To define the field component to use you specify an array name and the component in that array. The (min,max) values are the range of data in the component you wish to extract.

void vtkFieldDataToAttributeDataFilter::SetTCoordComponent ( int  comp,
const char *  arrayName,
int  arrayComp,
int  min,
int  max,
int  normalize 
)

Define the components of the field to be used for the cell texture coord components. Note that the parameter comp must lie between (0,9). To define the field component to use you specify an array name and the component in that array. The (min,max) values are the range of data in the component you wish to extract.

void vtkFieldDataToAttributeDataFilter::SetTCoordComponent ( int  comp,
const char *  arrayName,
int  arrayComp 
)
inline

Define the components of the field to be used for the cell texture coord components. Note that the parameter comp must lie between (0,9). To define the field component to use you specify an array name and the component in that array. The (min,max) values are the range of data in the component you wish to extract.

Definition at line 186 of file vtkFieldDataToAttributeDataFilter.h.

const char* vtkFieldDataToAttributeDataFilter::GetTCoordComponentArrayName ( int  comp)

Define the components of the field to be used for the cell texture coord components. Note that the parameter comp must lie between (0,9). To define the field component to use you specify an array name and the component in that array. The (min,max) values are the range of data in the component you wish to extract.

int vtkFieldDataToAttributeDataFilter::GetTCoordComponentArrayComponent ( int  comp)

Define the components of the field to be used for the cell texture coord components. Note that the parameter comp must lie between (0,9). To define the field component to use you specify an array name and the component in that array. The (min,max) values are the range of data in the component you wish to extract.

int vtkFieldDataToAttributeDataFilter::GetTCoordComponentMinRange ( int  comp)

Define the components of the field to be used for the cell texture coord components. Note that the parameter comp must lie between (0,9). To define the field component to use you specify an array name and the component in that array. The (min,max) values are the range of data in the component you wish to extract.

int vtkFieldDataToAttributeDataFilter::GetTCoordComponentMaxRange ( int  comp)

Define the components of the field to be used for the cell texture coord components. Note that the parameter comp must lie between (0,9). To define the field component to use you specify an array name and the component in that array. The (min,max) values are the range of data in the component you wish to extract.

int vtkFieldDataToAttributeDataFilter::GetTCoordComponentNormalizeFlag ( int  comp)

Define the components of the field to be used for the cell texture coord components. Note that the parameter comp must lie between (0,9). To define the field component to use you specify an array name and the component in that array. The (min,max) values are the range of data in the component you wish to extract.

virtual void vtkFieldDataToAttributeDataFilter::SetDefaultNormalize ( int  )
virtual

Set the default Normalize() flag for those methods setting a default Normalize value (e.g., SetScalarComponents).

virtual int vtkFieldDataToAttributeDataFilter::GetDefaultNormalize ( )
virtual

Set the default Normalize() flag for those methods setting a default Normalize value (e.g., SetScalarComponents).

virtual void vtkFieldDataToAttributeDataFilter::DefaultNormalizeOn ( )
virtual

Set the default Normalize() flag for those methods setting a default Normalize value (e.g., SetScalarComponents).

virtual void vtkFieldDataToAttributeDataFilter::DefaultNormalizeOff ( )
virtual

Set the default Normalize() flag for those methods setting a default Normalize value (e.g., SetScalarComponents).

static int vtkFieldDataToAttributeDataFilter::GetComponentsType ( int  numComp,
vtkDataArray **  arrays 
)
static

Given an array of names of arrays in field data, return the common type for these arrays. For example, if a vector is constructed of the three type (char,int,float), the return type is float.

static int vtkFieldDataToAttributeDataFilter::ConstructArray ( vtkDataArray da,
int  comp,
vtkDataArray frray,
int  fieldComp,
vtkIdType  min,
vtkIdType  max,
int  normalize 
)
static

Construct a portion of a data array (the comp portion) from another data array and its component. The variables min and max control the range of the data to use from the other data array; normalize is a flag that when set will normalize the data between (0,1).

static vtkDataArray* vtkFieldDataToAttributeDataFilter::GetFieldArray ( vtkFieldData fd,
char *  name,
int  comp 
)
static

Return an array of a particular name from field data and do error checking.

static void vtkFieldDataToAttributeDataFilter::SetArrayName ( vtkObject self,
char *&  name,
const char *  newName 
)
static

Specify an array name for one of the components.

static int vtkFieldDataToAttributeDataFilter::UpdateComponentRange ( vtkDataArray da,
vtkIdType  compRange[2] 
)
static

Update the maximum and minimum component range values. Returns a flag indicating whether the range was updated.

virtual int vtkFieldDataToAttributeDataFilter::RequestUpdateExtent ( vtkInformation ,
vtkInformationVector **  ,
vtkInformationVector  
)
virtual

If output does not need exact extent, the I do not either.

Reimplemented from vtkDataSetAlgorithm.

virtual int vtkFieldDataToAttributeDataFilter::RequestData ( vtkInformation ,
vtkInformationVector **  ,
vtkInformationVector  
)
protectedvirtual

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 vtkDataSetAlgorithm.

void vtkFieldDataToAttributeDataFilter::ConstructScalars ( int  num,
vtkFieldData fd,
vtkDataSetAttributes attr,
vtkIdType  componentRange[4][2],
char *  arrays[4],
int  arrayComponents[4],
int  normalize[4],
int  numComp 
)
protected
void vtkFieldDataToAttributeDataFilter::ConstructVectors ( int  num,
vtkFieldData fd,
vtkDataSetAttributes attr,
vtkIdType  componentRange[3][2],
char *  arrays[3],
int  arrayComponents[3],
int  normalize[3] 
)
protected
void vtkFieldDataToAttributeDataFilter::ConstructGhostLevels ( int  num,
vtkFieldData fd,
vtkDataSetAttributes attr,
vtkIdType  componentRange[2],
char *  array,
int  arrayComponent,
int  normalize 
)
protected
void vtkFieldDataToAttributeDataFilter::ConstructNormals ( int  num,
vtkFieldData fd,
vtkDataSetAttributes attr,
vtkIdType  componentRange[3][2],
char *  arrays[3],
int  arrayComponents[3],
int  normalize[3] 
)
protected
void vtkFieldDataToAttributeDataFilter::ConstructTCoords ( int  num,
vtkFieldData fd,
vtkDataSetAttributes attr,
vtkIdType  componentRange[3][2],
char *  arrays[3],
int  arrayComponents[3],
int  normalize[3],
int  numComp 
)
protected
void vtkFieldDataToAttributeDataFilter::ConstructTensors ( int  num,
vtkFieldData fd,
vtkDataSetAttributes attr,
vtkIdType  componentRange[9][2],
char *  arrays[9],
int  arrayComponents[9],
int  normalize[9] 
)
protected
void vtkFieldDataToAttributeDataFilter::ConstructFieldData ( int  num,
vtkDataSetAttributes attr 
)
protected

Member Data Documentation

int vtkFieldDataToAttributeDataFilter::InputField
protected

Definition at line 244 of file vtkFieldDataToAttributeDataFilter.h.

int vtkFieldDataToAttributeDataFilter::OutputAttributeData
protected

Definition at line 245 of file vtkFieldDataToAttributeDataFilter.h.

int vtkFieldDataToAttributeDataFilter::NumberOfScalarComponents
protected

Definition at line 247 of file vtkFieldDataToAttributeDataFilter.h.

char* vtkFieldDataToAttributeDataFilter::ScalarArrays[4]
protected

Definition at line 248 of file vtkFieldDataToAttributeDataFilter.h.

int vtkFieldDataToAttributeDataFilter::ScalarArrayComponents[4]
protected

Definition at line 249 of file vtkFieldDataToAttributeDataFilter.h.

vtkIdType vtkFieldDataToAttributeDataFilter::ScalarComponentRange[4][2]
protected

Definition at line 250 of file vtkFieldDataToAttributeDataFilter.h.

int vtkFieldDataToAttributeDataFilter::ScalarNormalize[4]
protected

Definition at line 251 of file vtkFieldDataToAttributeDataFilter.h.

char* vtkFieldDataToAttributeDataFilter::VectorArrays[3]
protected

Definition at line 253 of file vtkFieldDataToAttributeDataFilter.h.

int vtkFieldDataToAttributeDataFilter::VectorArrayComponents[3]
protected

Definition at line 254 of file vtkFieldDataToAttributeDataFilter.h.

vtkIdType vtkFieldDataToAttributeDataFilter::VectorComponentRange[3][2]
protected

Definition at line 255 of file vtkFieldDataToAttributeDataFilter.h.

int vtkFieldDataToAttributeDataFilter::VectorNormalize[3]
protected

Definition at line 256 of file vtkFieldDataToAttributeDataFilter.h.

char* vtkFieldDataToAttributeDataFilter::GhostLevelArray
protected

Definition at line 258 of file vtkFieldDataToAttributeDataFilter.h.

int vtkFieldDataToAttributeDataFilter::GhostLevelArrayComponent
protected

Definition at line 259 of file vtkFieldDataToAttributeDataFilter.h.

vtkIdType vtkFieldDataToAttributeDataFilter::GhostLevelComponentRange[2]
protected

Definition at line 260 of file vtkFieldDataToAttributeDataFilter.h.

int vtkFieldDataToAttributeDataFilter::GhostLevelNormalize
protected

Definition at line 261 of file vtkFieldDataToAttributeDataFilter.h.

char* vtkFieldDataToAttributeDataFilter::NormalArrays[3]
protected

Definition at line 263 of file vtkFieldDataToAttributeDataFilter.h.

int vtkFieldDataToAttributeDataFilter::NormalArrayComponents[3]
protected

Definition at line 264 of file vtkFieldDataToAttributeDataFilter.h.

vtkIdType vtkFieldDataToAttributeDataFilter::NormalComponentRange[3][2]
protected

Definition at line 265 of file vtkFieldDataToAttributeDataFilter.h.

int vtkFieldDataToAttributeDataFilter::NormalNormalize[3]
protected

Definition at line 266 of file vtkFieldDataToAttributeDataFilter.h.

char* vtkFieldDataToAttributeDataFilter::TensorArrays[9]
protected

Definition at line 268 of file vtkFieldDataToAttributeDataFilter.h.

int vtkFieldDataToAttributeDataFilter::TensorArrayComponents[9]
protected

Definition at line 269 of file vtkFieldDataToAttributeDataFilter.h.

vtkIdType vtkFieldDataToAttributeDataFilter::TensorComponentRange[9][2]
protected

Definition at line 270 of file vtkFieldDataToAttributeDataFilter.h.

int vtkFieldDataToAttributeDataFilter::TensorNormalize[9]
protected

Definition at line 271 of file vtkFieldDataToAttributeDataFilter.h.

int vtkFieldDataToAttributeDataFilter::NumberOfTCoordComponents
protected

Definition at line 273 of file vtkFieldDataToAttributeDataFilter.h.

char* vtkFieldDataToAttributeDataFilter::TCoordArrays[3]
protected

Definition at line 274 of file vtkFieldDataToAttributeDataFilter.h.

int vtkFieldDataToAttributeDataFilter::TCoordArrayComponents[3]
protected

Definition at line 275 of file vtkFieldDataToAttributeDataFilter.h.

vtkIdType vtkFieldDataToAttributeDataFilter::TCoordComponentRange[3][2]
protected

Definition at line 276 of file vtkFieldDataToAttributeDataFilter.h.

int vtkFieldDataToAttributeDataFilter::TCoordNormalize[3]
protected

Definition at line 277 of file vtkFieldDataToAttributeDataFilter.h.

int vtkFieldDataToAttributeDataFilter::DefaultNormalize
protected

Definition at line 279 of file vtkFieldDataToAttributeDataFilter.h.


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