VTK: Filters/ParallelFlowPaths/Testing/Cxx/TestVectorFieldSource.h Source File

| VTK 9.3.1

TestVectorFieldSource.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2 // SPDX-License-Identifier: BSD-3-Clause
3 #include "vtkImageAlgorithm.h"
4 #include <vtkInformationVector.h>
5
6 class TestVectorFieldSource : public vtkImageAlgorithm
7 {
8 public:
9 static TestVectorFieldSource* New();
10 vtkTypeMacro(TestVectorFieldSource, vtkImageAlgorithm);
11 void SetBoundingBox(double x0, double x1, double y0, double y1, double z0, double z1);
12 void SetExtent(int xMin, int xMax, int yMin, int yMax, int zMin, int zMax);
13
14 protected:
15 TestVectorFieldSource();
16 ~TestVectorFieldSource() override;
17 int RequestInformation(vtkInformation* request, vtkInformationVector** inputInfoVectors,
18 vtkInformationVector* outputInfoVector) override;
19 void GetSpacing(double dx[3]);
20 void GetSize(double dx[3]);
21 void ExecuteDataWithInformation(vtkDataObject* outData, vtkInformation* outInfo) override;
22
23 private:
24 int Extent[6];
25 double BoundingBox[6];
26 };
TestVectorFieldSource
Definition: TestVectorFieldSource.h:7
TestVectorFieldSource::RequestInformation
int RequestInformation(vtkInformation *request, vtkInformationVector **inputInfoVectors, vtkInformationVector *outputInfoVector) override
Subclasses can reimplement this method to collect information from their inputs and set information f...
TestVectorFieldSource::TestVectorFieldSource
TestVectorFieldSource()
TestVectorFieldSource::ExecuteDataWithInformation
void ExecuteDataWithInformation(vtkDataObject *outData, vtkInformation *outInfo) override
This is a convenience method that is implemented in many subclasses instead of RequestData.
TestVectorFieldSource::GetSpacing
void GetSpacing(double dx[3])
TestVectorFieldSource::~TestVectorFieldSource
~TestVectorFieldSource() override
TestVectorFieldSource::SetBoundingBox
void SetBoundingBox(double x0, double x1, double y0, double y1, double z0, double z1)
TestVectorFieldSource::SetExtent
void SetExtent(int xMin, int xMax, int yMin, int yMax, int zMin, int zMax)
TestVectorFieldSource::GetSize
void GetSize(double dx[3])
TestVectorFieldSource::New
static TestVectorFieldSource * New()
vtkDataObject
general representation of visualization data
Definition: vtkDataObject.h:64
vtkImageAlgorithm
Generic algorithm superclass for image algs.
Definition: vtkImageAlgorithm.h:39
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:40
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:72
vtkImageAlgorithm.h
vtkInformationVector.h