vtkSMImageExtractWriterProxy.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Kitware Inc.
2 // SPDX-License-Identifier: BSD-3-Clause
14 #ifndef vtkSMImageExtractWriterProxy_h
15 #define vtkSMImageExtractWriterProxy_h
16 
17 #include "vtkRemotingViewsModule.h" // needed for exports
19 #include "vtkSMExtractsController.h" // for SummaryParametersT type
20 
22 {
23 public:
26  void PrintSelf(ostream& os, vtkIndent indent) override;
27 
29 
32  bool Write(vtkSMExtractsController* extractor) override;
33  bool CanExtract(vtkSMProxy* proxy) override;
34  bool IsExtracting(vtkSMProxy* proxy) override;
35  void SetInput(vtkSMProxy* proxy) override;
36  vtkSMProxy* GetInput() override;
38 
40  {
41  Static = 0,
42  PhiTheta = 1,
43  };
44 
45 protected:
47  ~vtkSMImageExtractWriterProxy() override;
48 
49  void CreateVTKObjects() override;
50 
52 
58  bool WriteImage(vtkSMExtractsController* extractor,
59  const SummaryParametersT& cameraParams = SummaryParametersT{});
60 
65  virtual bool WriteInternal(
66  vtkSMExtractsController* extractor, const SummaryParametersT& params = SummaryParametersT{});
67 
72  virtual const char* GetShortName(const std::string& key) const;
73 
74 private:
76  void operator=(const vtkSMImageExtractWriterProxy&) = delete;
77 };
78 
79 #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:140
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