vtkSISourceProxy.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Kitware Inc.
2 // SPDX-License-Identifier: BSD-3-Clause
13 #ifndef vtkSISourceProxy_h
14 #define vtkSISourceProxy_h
15 
16 #include "vtkRemotingServerManagerModule.h" //needed for exports
17 #include "vtkSIProxy.h"
18 
19 class vtkAlgorithm;
20 class vtkAlgorithmOutput;
21 class vtkInformation;
22 
24 {
25 public:
26  static vtkSISourceProxy* New();
27  vtkTypeMacro(vtkSISourceProxy, vtkSIProxy);
28  void PrintSelf(ostream& os, vtkIndent indent) override;
29 
33  virtual vtkAlgorithmOutput* GetOutputPort(int port);
34 
38  void UpdatePipelineInformation() override;
39 
44  virtual void UpdatePipeline(int port, double time, bool doTime);
45 
49  virtual void SetupSelectionProxy(int port, vtkSIProxy* extractSelection);
50 
55  virtual void SetDisablePipelineExecution(bool value) { this->DisablePipelineExecution = value; }
56 
60  void RecreateVTKObjects() override;
61 
62 protected:
64  ~vtkSISourceProxy() override;
65 
69  bool CreateVTKObjects() override;
70 
74  bool ReadXMLAttributes(vtkPVXMLElement* element) override;
75 
82  void OnCreateVTKObjects() override;
83 
89  virtual bool CreateOutputPorts();
90 
92 
95  void MarkStartEvent();
96  void MarkEndEvent();
98 
100  vtkSetStringMacro(ExecutiveName);
102 
104 
105 private:
106  vtkSISourceProxy(const vtkSISourceProxy&) = delete;
107  void operator=(const vtkSISourceProxy&) = delete;
108 
109  class vtkInternals;
110  vtkInternals* Internals;
111  bool PortsCreated;
112  int StartEventCounter;
113 };
114 
115 #endif
virtual void UpdatePipelineInformation()
Triggers UpdateInformation() on vtkObject if possible.
Definition: vtkSIProxy.h:108
virtual bool ReadXMLAttributes(vtkPVXMLElement *element)
Parses the XML to create property/subproxy helpers.
vtkSISourceProxy is the server-side helper for a vtkSMSourceProxy.
virtual bool CreateVTKObjects()
Creates the VTK objects.
#define VTKREMOTINGSERVERMANAGER_EXPORT
virtual void OnCreateVTKObjects()
Called after CreateVTKObjects().
void PrintSelf(ostream &os, vtkIndent indent) override
vtkSIProxy is the server-implementation for a vtkSMProxy that helps the vtkSMProxy with managing/upda...
Definition: vtkSIProxy.h:22
static vtkSIProxy * New()
virtual void RecreateVTKObjects()
Called by vtkSMProxy::RecreateVTKObjects() to re-create the VTK objects.
virtual void SetDisablePipelineExecution(bool value)
Allow to shut down pipeline execution.
This is used by vtkPVXMLParser to represent an XML document starting at the root element.
vtkSICompoundSourceProxy is the server-side helper for a vtkSMCompoundSourceProxy.