vtkCPPythonScriptV2Pipeline.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: ParaView
4  Module: vtkCPPythonScriptV2Pipeline.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 =========================================================================*/
29 #ifndef vtkCPPythonScriptV2Pipeline_h
30 #define vtkCPPythonScriptV2Pipeline_h
31 
32 #include "vtkCPPythonPipeline.h"
33 #include "vtkNew.h" // for vtkNew
34 #include "vtkPVPythonCatalystModule.h" // For windows import/export of shared libraries
35 
37 
39 {
40 public:
43  void PrintSelf(ostream& os, vtkIndent indent) override;
44 
54  bool Initialize(const char* filename);
55 
57 
60  int RequestDataDescription(vtkCPDataDescription* dataDescription) override;
61  int CoProcess(vtkCPDataDescription* dataDescription) override;
62  int Finalize() override;
64 
65 protected:
68 
69 private:
71  void operator=(const vtkCPPythonScriptV2Pipeline&) = delete;
72 
74  bool CoProcessHasBeenCalled;
75 };
76 
77 #endif
#define VTKPVPYTHONCATALYST_EXPORT
vtkCPPipeline for Catalyst Python script / package version 2.0
void PrintSelf(ostream &os, vtkIndent indent) override
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.