vtkSMImageExtractWriterProxy.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: ParaView
4  Module: vtkSMImageExtractWriterProxy.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 =========================================================================*/
26 #ifndef vtkSMImageExtractWriterProxy_h
27 #define vtkSMImageExtractWriterProxy_h
28 
29 #include "vtkRemotingViewsModule.h" // needed for exports
31 #include "vtkSMExtractsController.h" // for SummaryParametersT type
32 
34 {
35 public:
38  void PrintSelf(ostream& os, vtkIndent indent) override;
39 
41 
44  bool Write(vtkSMExtractsController* extractor) override;
45  bool CanExtract(vtkSMProxy* proxy) override;
46  bool IsExtracting(vtkSMProxy* proxy) override;
47  void SetInput(vtkSMProxy* proxy) override;
48  vtkSMProxy* GetInput() override;
50 
52  {
53  Static = 0,
54  PhiTheta = 1,
55  };
56 
57 protected:
59  ~vtkSMImageExtractWriterProxy() override;
60 
61  void CreateVTKObjects() override;
62 
64 
70  bool WriteImage(vtkSMExtractsController* extractor,
71  const SummaryParametersT& cameraParams = SummaryParametersT{});
72 
77  virtual bool WriteInternal(
78  vtkSMExtractsController* extractor, const SummaryParametersT& params = SummaryParametersT{});
79 
84  virtual const char* GetShortName(const std::string& key) const;
85 
86 private:
88  void operator=(const vtkSMImageExtractWriterProxy&) = delete;
89 };
90 
91 #endif
#define VTKREMOTINGVIEWS_EXPORT
void PrintSelf(ostream &os, vtkIndent indent) override
extract writer for images or rendering results
std::map< std::string, std::string > SummaryParametersT
Called by vtkSMExtractWriterProxy subclasses to add an entry to the summary table.
abstract class defining extract writer proxy API
virtual vtkSMProxy * GetInput()=0
This is convenience method that gets called by vtkSMExtractsController to set the extract writer to e...
virtual bool IsExtracting(vtkSMProxy *proxy)=0
Returns true this extract writer proxy is generating and extract from the provided proxy...
static vtkSMProxy * New()
virtual void CreateVTKObjects()
Given a class name (by setting VTKClassName) and server ids (by setting ServerIDs), this methods instantiates the objects on the server(s)
proxy for a VTK object(s) on a server
Definition: vtkSMProxy.h:152
virtual void SetInput(vtkSMProxy *proxy)=0
This is convenience method that gets called by vtkSMExtractsController to set the extract writer to e...
virtual bool Write(vtkSMExtractsController *extractor)=0
Generate the extract.
vtkSMExtractsController::SummaryParametersT SummaryParametersT
controller for extract generation
virtual bool CanExtract(vtkSMProxy *proxy)=0
Returns true if the provided proxy can be extracted/written by this writer.
key