Man Page for vtkExtractVectorComponents
Table of Contents

NAME

vtkExtractVectorComponents - extract components of vector as separate scalars

SYNOPSIS


#include "/opt/vtk-c++/graphics/vtkExtractVectorComponents.h"

class VTK_EXPORT vtkExtractVectorComponents : public vtkFilter

vtkExtractVectorComponents();
static vtkExtractVectorComponents *New() {return new vtkExtractVectorComponents;};
const char *GetClassName() {return "vtkExtractVectorComponents";};
void Update();
virtual void SetInput(vtkDataSet *input);
void SetInput(vtkDataSet &input) {this->SetInput(&input);};
vtkDataSet *GetVxComponent();
vtkDataSet *GetVyComponent();
vtkDataSet *GetVzComponent();

vtkDataSet *GetOutput(int i=0);
default extracts vector component.

DESCRIPTION

vtkExtractVectorComponents is a filter that extracts vector components as separate scalars. This is accomplished by creating three different outputs. Each output is the same as the input, except that the scalar values will be one of the three components of the vector. These can be found in the VxComponent, VyComponent, and VzComponent.

CAVEATS

This filter is unusual in that it creates multiple outputs. As a result, it cannot take advantage of the convenience classes (e.g., vtkPolyDataToPolyDataFilter) for deriving concrete filters. Instead, it overloads the Update() method of its superclasses and provides methods for retrieving the output.

If you use the GetOutput() method, you will be retrieving the x vector component.

SUMMARY

vtkDataSet *GetOutput(int i)
Get the output dataset containing the indicated component. The component is specified by an index between
(0,2) corresponding to the x, y, or z vector component. By default, the x component is extracted.

vtkDataSet *GetVxComponent()
Get the output dataset representing velocity xcomponent. If output is NULL this method returns the
same information as the GetOutput() method with an index of 0.)

vtkDataSet *GetVyComponent()
Get the output dataset representing velocity ycomponent. If output is NULL this method returns the
same information as the GetOutput() method with an index of 1.)

vtkDataSet *GetVzComponent()
Get the output dataset representing velocity zcomponent. If output is NULL this method returns the
same information as the GetOutput() method with an index of 2.)

void SetInput(vtkDataSet *input)
Specify the input data or filter.

void Update()
Update input to this filter and the filter itself. Note that we are overloading this method because the output is an abstract dataset type. This requires special treatment.


Table of Contents