vtkSMExtractWriterProxy.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: ParaView
4  Module: vtkSMExtractWriterProxy.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 =========================================================================*/
24 #ifndef vtkSMExtractWriterProxy_h
25 #define vtkSMExtractWriterProxy_h
26 
27 #include "vtkSMProxy.h"
28 
30 
32 {
33 public:
35  void PrintSelf(ostream& os, vtkIndent indent) override;
36 
40  virtual bool Write(vtkSMExtractsController* extractor) = 0;
41 
47  virtual bool CanExtract(vtkSMProxy* proxy) = 0;
48 
53  virtual bool IsExtracting(vtkSMProxy* proxy) = 0;
54 
56 
60  virtual void SetInput(vtkSMProxy* proxy) = 0;
61  virtual vtkSMProxy* GetInput() = 0;
63 protected:
65  ~vtkSMExtractWriterProxy() override;
66 
68 
72  static std::string GenerateDataExtractsFileName(
73  const std::string& fname, vtkSMExtractsController* extractor);
74  static std::string GenerateImageExtractsFileName(
75  const std::string& fname, vtkSMExtractsController* extractor);
76  static std::string GenerateImageExtractsFileName(
77  const std::string& fname, const std::string& cameraparams, vtkSMExtractsController* extractor);
79 
80 private:
82  void operator=(const vtkSMExtractWriterProxy&) = delete;
83 
84  static std::string GenerateExtractsFileName(
85  const std::string& fname, vtkSMExtractsController* extractor, const char* rootdir);
86 };
87 
88 #endif
void PrintSelf(ostream &os, vtkIndent indent) override
#define VTKREMOTINGSERVERMANAGER_EXPORT
abstract class defining extract writer proxy API
proxy for a VTK object(s) on a server
Definition: vtkSMProxy.h:152
void operator=(const vtkSMProxy &)=delete
controller for extract generation