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 
83 
91  void SetDisableAutoConvertMultiBlockDataSets(bool val);
92  vtkGetMacro(DisableAutoConvertMultiBlockDataSets, bool);
94 
95 protected:
97  ~vtkSISourceProxy() override;
98 
102  bool CreateVTKObjects() override;
103 
107  bool ReadXMLAttributes(vtkPVXMLElement* element) override;
108 
115  void OnCreateVTKObjects() override;
116 
122  virtual bool CreateOutputPorts();
123 
125 
128  void MarkStartEvent();
129  void MarkEndEvent();
131 
133  vtkSetStringMacro(ExecutiveName);
135  bool DisableAutoConvertMultiBlockDataSets = false;
136 
138 
139 private:
140  vtkSISourceProxy(const vtkSISourceProxy&) = delete;
141  void operator=(const vtkSISourceProxy&) = delete;
142 
143  class vtkInternals;
144  vtkInternals* Internals;
145  bool PortsCreated;
146  int StartEventCounter;
147 };
148 
149 #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.