vtkNetworkImageSource.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: ParaView
4  Module: vtkNetworkImageSource.h
5 
6  Copyright (c) Kitware, Inc.
7  All rights reserved.
8  See Copyright.txt or http://www.paraview.org/HTML/Copyright.html for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
25 #ifndef vtkNetworkImageSource_h
26 #define vtkNetworkImageSource_h
27 
28 #include "vtkImageAlgorithm.h"
29 #include "vtkPVVTKExtensionsFiltersRenderingModule.h" //needed for exports
30 
31 class vtkImageData;
33 
35 {
36 public:
37  static vtkNetworkImageSource* New();
39  void PrintSelf(ostream& os, vtkIndent indent) override;
40 
42 
45  vtkSetStringMacro(FileName);
46  vtkGetStringMacro(FileName);
48 
52  void UpdateImage();
53 
54 protected:
56  ~vtkNetworkImageSource() override;
57 
59 
60  char* FileName;
61 
63  int ReadImageFromFile(const char* filename);
64  int RequestData(vtkInformation* request, vtkInformationVector** inputVector,
65  vtkInformationVector* outputVector) override;
66  int RequestInformation(vtkInformation* request, vtkInformationVector** inputVector,
67  vtkInformationVector* outputVector) override;
68 
69 private:
71  void operator=(const vtkNetworkImageSource&) = delete;
72 };
73 
74 #endif
Store messages for the interpreter.
virtual int RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
#define VTKPVVTKEXTENSIONSFILTERSRENDERING_EXPORT
an image source that can read an image file on one process and ensure that it's available on some oth...
void PrintSelf(ostream &os, vtkIndent indent) VTK_OVERRIDE
static vtkAlgorithm * New()
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
void operator=(const vtkObjectBase &)