vtkCPPythonScriptV2Pipeline.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Kitware Inc.
2 // SPDX-License-Identifier: BSD-3-Clause
17 #ifndef vtkCPPythonScriptV2Pipeline_h
18 #define vtkCPPythonScriptV2Pipeline_h
19 
20 #include "vtkCPPythonPipeline.h"
21 #include "vtkNew.h" // for vtkNew
22 #include "vtkPVPythonCatalystModule.h" // For windows import/export of shared libraries
23 
25 
27 {
28 public:
31  void PrintSelf(ostream& os, vtkIndent indent) override;
32 
42  bool Initialize(const char* filename);
43 
45 
48  int RequestDataDescription(vtkCPDataDescription* dataDescription) override;
49  int CoProcess(vtkCPDataDescription* dataDescription) override;
50  int Finalize() override;
52 
53 protected:
55  ~vtkCPPythonScriptV2Pipeline() override;
56 
57 private:
59  void operator=(const vtkCPPythonScriptV2Pipeline&) = delete;
60 
62  bool CoProcessHasBeenCalled;
63 };
64 
65 #endif
void PrintSelf(ostream &os, vtkIndent indent) override
#define VTKPVPYTHONCATALYST_EXPORT
vtkCPPipeline for Catalyst Python script / package version 2.0
an internal class encapsulating logic for Catalyst Python scripts.
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.
static vtkObject * New()
This class provides the description of the data for the coprocessor pipelines.