VTK
TestVectorFieldSource.h
Go to the documentation of this file.
1 #include "vtkImageAlgorithm.h"
2 #include <vtkInformationVector.h>
3 
5 {
6 public:
7  static TestVectorFieldSource * New();
9  void SetBoundingBox(double x0, double x1, double y0,
10  double y1, double z0, double z1);
11  void SetExtent(int xMin, int xMax, int yMin, int yMax,
12  int zMin, int zMax);
13 
14 protected:
17  virtual int RequestInformation(vtkInformation *request,
18  vtkInformationVector **inputInfoVectors,
19  vtkInformationVector *outputInfoVector) override;
20  void GetSpacing(double dx[3]);
21  void GetSize(double dx[3]);
22  virtual void ExecuteDataWithInformation(vtkDataObject *outData,vtkInformation *outInfo) override;
23 private:
24  int Extent[6];
25  double BoundingBox[6];
26  int Spacing;
27 };
TestVectorFieldSource::RequestInformation
virtual 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::SetExtent
void SetExtent(int xMin, int xMax, int yMin, int yMax, int zMin, int zMax)
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:41
TestVectorFieldSource::SetBoundingBox
void SetBoundingBox(double x0, double x1, double y0, double y1, double z0, double z1)
vtkImageAlgorithm.h
vtkImageAlgorithm
Generic algorithm superclass for image algs.
Definition: vtkImageAlgorithm.h:40
vtkInformationVector.h
TestVectorFieldSource
Definition: TestVectorFieldSource.h:4
TestVectorFieldSource::TestVectorFieldSource
TestVectorFieldSource()
TestVectorFieldSource::ExecuteDataWithInformation
virtual void ExecuteDataWithInformation(vtkDataObject *outData, vtkInformation *outInfo) override
This is a convenience method that is implemented in many subclasses instead of RequestData.
TestVectorFieldSource::GetSize
void GetSize(double dx[3])
TestVectorFieldSource::New
static TestVectorFieldSource * New()
TestVectorFieldSource::GetSpacing
void GetSpacing(double dx[3])
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:86
TestVectorFieldSource::~TestVectorFieldSource
~TestVectorFieldSource()
vtkDataObject
general representation of visualization data
Definition: vtkDataObject.h:64