vtkCPPythonPipeline.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: ParaView
4  Module: vtkCPPythonPipeline.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 =========================================================================*/
15 #ifndef vtkCPPythonPipeline_h
16 #define vtkCPPythonPipeline_h
17 
18 #include "vtkCPPipeline.h"
19 #include "vtkPVPythonCatalystModule.h" // For windows import/export of shared libraries
20 #include "vtkSmartPointer.h" // for vtkSmartPointer
21 #include <string> // For member function use
22 
24 
30 {
31 public:
33 
39  static int DetectScriptVersion(const char* fname);
40 
47  static vtkSmartPointer<vtkCPPythonPipeline> CreatePipeline(
48  const char* fname, int default_version = 1);
49 
56  static vtkSmartPointer<vtkCPPythonPipeline> CreateAndInitializePipeline(
57  const char* fname, int default_version = 1);
58 
60 
66  static vtkCPPythonPipeline* NewPipeline(const char* fname, int default_version = 1);
68  static vtkCPPythonPipeline* NewAndInitializePipeline(const char* fname, int default_version = 1);
70 protected:
73  void FixEOL(std::string&);
74 
76  std::string GetPythonAddress(void* pointer);
77 
79  ~vtkCPPythonPipeline() override;
80 
81 private:
83  void operator=(const vtkCPPythonPipeline&) = delete;
84 };
85 #endif
#define VTKPVPYTHONCATALYST_EXPORT
Abstract class that takes care of initializing Catalyst Python pipelines for all concrete implementat...
#define VTK_NEWINSTANCE
Generic interface for operating on pipelines.
Definition: vtkCPPipeline.h:29
This class provides the description of the data for the coprocessor pipelines.