VTK  9.1.0
TestVectorFieldSource.h
Go to the documentation of this file.
1 #include "vtkImageAlgorithm.h"
2 #include <vtkInformationVector.h>
3 
5 {
6 public:
9  void SetBoundingBox(double x0, double x1, double y0, double y1, double z0, double z1);
10  void SetExtent(int xMin, int xMax, int yMin, int yMax, int zMin, int zMax);
11 
12 protected:
15  int RequestInformation(vtkInformation* request, vtkInformationVector** inputInfoVectors,
16  vtkInformationVector* outputInfoVector) override;
17  void GetSpacing(double dx[3]);
18  void GetSize(double dx[3]);
19  void ExecuteDataWithInformation(vtkDataObject* outData, vtkInformation* outInfo) override;
20 
21 private:
22  int Extent[6];
23  double BoundingBox[6];
24  int Spacing;
25 };
int RequestInformation(vtkInformation *request, vtkInformationVector **inputInfoVectors, vtkInformationVector *outputInfoVector) override
Subclasses can reimplement this method to collect information from their inputs and set information f...
void ExecuteDataWithInformation(vtkDataObject *outData, vtkInformation *outInfo) override
This is a convenience method that is implemented in many subclasses instead of RequestData.
void GetSpacing(double dx[3])
void SetBoundingBox(double x0, double x1, double y0, double y1, double z0, double z1)
void SetExtent(int xMin, int xMax, int yMin, int yMax, int zMin, int zMax)
void GetSize(double dx[3])
static TestVectorFieldSource * New()
general representation of visualization data
Definition: vtkDataObject.h:60
Generic algorithm superclass for image algs.
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.