vtkSISourceProxy.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Kitware Inc.
2 // SPDX-License-Identifier: BSD-3-Clause
16 #ifndef vtkSISourceProxy_h
17 #define vtkSISourceProxy_h
18 
19 #include "vtkRemotingServerManagerModule.h" //needed for exports
20 #include "vtkSIProxy.h"
21 
22 class vtkAlgorithm;
23 class vtkAlgorithmOutput;
24 class vtkInformation;
25 
26 class VTKREMOTINGSERVERMANAGER_EXPORT vtkSISourceProxy : public vtkSIProxy
27 {
28 public:
29  static vtkSISourceProxy* New();
30  vtkTypeMacro(vtkSISourceProxy, vtkSIProxy);
31  void PrintSelf(ostream& os, vtkIndent indent) override;
32 
36  virtual vtkAlgorithmOutput* GetOutputPort(int port);
37 
41  void UpdatePipelineInformation() override;
42 
47  virtual void UpdatePipeline(int port, double time, bool doTime);
48 
52  virtual void SetupSelectionProxy(int port, vtkSIProxy* extractSelection);
53 
58  virtual void SetDisablePipelineExecution(bool value) { this->DisablePipelineExecution = value; }
59 
63  void RecreateVTKObjects() override;
64 
68  void ClearAbortFlags();
69 
74  void EnableAbortCheck();
75 
80  void ReduceAbort();
81 
82 protected:
84  ~vtkSISourceProxy() override;
85 
89  bool CreateVTKObjects() override;
90 
94  bool ReadXMLAttributes(vtkPVXMLElement* element) override;
95 
102  void OnCreateVTKObjects() override;
103 
109  virtual bool CreateOutputPorts();
110 
112 
115  void MarkStartEvent();
116  void MarkEndEvent();
118 
120  vtkSetStringMacro(ExecutiveName);
122 
124 
125 private:
126  vtkSISourceProxy(const vtkSISourceProxy&) = delete;
127  void operator=(const vtkSISourceProxy&) = delete;
128 
129  class vtkInternals;
130  vtkInternals* Internals;
131  bool PortsCreated;
132  int StartEventCounter;
133 };
134 
135 #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.
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.