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();
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.
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.