vtkNetworkImageSource.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Kitware Inc.
2 // SPDX-License-Identifier: BSD-3-Clause
13 #ifndef vtkNetworkImageSource_h
14 #define vtkNetworkImageSource_h
15 
16 #include "vtkImageAlgorithm.h"
17 #include "vtkPVVTKExtensionsFiltersRenderingModule.h" //needed for exports
18 
19 class vtkImageData;
21 
23 {
24 public:
25  static vtkNetworkImageSource* New();
27  void PrintSelf(ostream& os, vtkIndent indent) override;
28 
29  enum class ModeType : int
30  {
31  ReadFromFile,
32  ReadFromMemory
33  };
34 
36 
39  vtkSetStringMacro(FileName);
40  vtkGetStringMacro(FileName);
42 
44 
47  vtkSetStringMacro(TrivialProducerKey);
48  vtkGetStringMacro(TrivialProducerKey);
50 
52 
55  vtkSetEnumMacro(Mode, ModeType);
56  void SetMode(int mode);
58 
62  void UpdateImage();
63 
64 protected:
66  ~vtkNetworkImageSource() override;
67 
69 
70  char* FileName;
73 
75  int ReadImageFromFile(const char* filename);
76  int ReadImageFromMemory(const char* trivialProducerKey);
77  int RequestData(vtkInformation* request, vtkInformationVector** inputVector,
78  vtkInformationVector* outputVector) override;
79  int RequestInformation(vtkInformation* request, vtkInformationVector** inputVector,
80  vtkInformationVector* outputVector) override;
81 
82 private:
84  void operator=(const vtkNetworkImageSource&) = delete;
85 };
86 
87 #endif
int
Store messages for the interpreter.
#define VTKPVVTKEXTENSIONSFILTERSRENDERING_EXPORT
mode
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()