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 
65  void ClearAbortFlags();
66 
71  void EnableAbortCheck();
72 
73 protected:
75  ~vtkSISourceProxy() override;
76 
80  bool CreateVTKObjects() override;
81 
85  bool ReadXMLAttributes(vtkPVXMLElement* element) override;
86 
93  void OnCreateVTKObjects() override;
94 
100  virtual bool CreateOutputPorts();
101 
103 
106  void MarkStartEvent();
107  void MarkEndEvent();
109 
111  vtkSetStringMacro(ExecutiveName);
113 
115 
116 private:
117  vtkSISourceProxy(const vtkSISourceProxy&) = delete;
118  void operator=(const vtkSISourceProxy&) = delete;
119 
120  class vtkInternals;
121  vtkInternals* Internals;
122  bool PortsCreated;
123  int StartEventCounter;
124 };
125 
126 #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.