vtkCPPythonScriptPipeline.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Kitware Inc.
2 // SPDX-License-Identifier: BSD-3-Clause
3 #ifndef vtkCPPythonScriptPipeline_h
4 #define vtkCPPythonScriptPipeline_h
5 
6 #include "vtkCPPythonPipeline.h"
7 #include "vtkPVPythonCatalystModule.h" // For windows import/export of shared libraries
8 
10 
17 {
18 public:
21  void PrintSelf(ostream& os, vtkIndent indent) override;
22 
25  int Initialize(const char* fileName);
26 
34  int RequestDataDescription(vtkCPDataDescription* dataDescription) override;
35 
37  int CoProcess(vtkCPDataDescription* dataDescription) override;
38 
41  int Finalize() override;
42 
43 protected:
45  ~vtkCPPythonScriptPipeline() override;
46 
48  vtkSetStringMacro(PythonScriptName);
49  vtkGetStringMacro(PythonScriptName);
50 
51 private:
53  void operator=(const vtkCPPythonScriptPipeline&) = delete;
54 
57  char* PythonScriptName;
58 };
59 
60 #endif
void PrintSelf(ostream &os, vtkIndent indent) override
#define VTKPVPYTHONCATALYST_EXPORT
virtual int RequestDataDescription(vtkCPDataDescription *dataDescription)=0
Configuration Step: The coprocessor first determines if any coprocessing needs to be done at this Tim...
virtual int CoProcess(vtkCPDataDescription *dataDescription)=0
Execute the pipeline. Returns 1 for success and 0 for failure.
Abstract class that takes care of initializing Catalyst Python pipelines for all concrete implementat...
virtual int Finalize()
Finalize the pipeline before deleting it.
Class that creates a coprocessing pipeline starting from a coprocessing script.
static vtkObject * New()
This class provides the description of the data for the coprocessor pipelines.