vtkSISourceProxy.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: ParaView
4  Module: vtkSISourceProxy.h
5 
6  Copyright (c) Kitware, Inc.
7  All rights reserved.
8  See Copyright.txt or http://www.paraview.org/HTML/Copyright.html for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
25 #ifndef vtkSISourceProxy_h
26 #define vtkSISourceProxy_h
27 
28 #include "vtkRemotingServerManagerModule.h" //needed for exports
29 #include "vtkSIProxy.h"
30 
31 class vtkAlgorithm;
32 class vtkAlgorithmOutput;
33 class vtkInformation;
34 
36 {
37 public:
38  static vtkSISourceProxy* New();
39  vtkTypeMacro(vtkSISourceProxy, vtkSIProxy);
40  void PrintSelf(ostream& os, vtkIndent indent) override;
41 
45  virtual vtkAlgorithmOutput* GetOutputPort(int port);
46 
50  void UpdatePipelineInformation() override;
51 
56  virtual void UpdatePipeline(int port, double time, bool doTime);
57 
61  virtual void SetupSelectionProxy(int port, vtkSIProxy* extractSelection);
62 
67  virtual void SetDisablePipelineExecution(bool value) { this->DisablePipelineExecution = value; }
68 
72  void RecreateVTKObjects() override;
73 
74 protected:
76  ~vtkSISourceProxy() override;
77 
81  bool CreateVTKObjects() override;
82 
86  bool ReadXMLAttributes(vtkPVXMLElement* element) override;
87 
94  void OnCreateVTKObjects() override;
95 
101  virtual bool CreateOutputPorts();
102 
104 
107  void MarkStartEvent();
108  void MarkEndEvent();
110 
112  vtkSetStringMacro(ExecutiveName);
114 
116 
117 private:
118  vtkSISourceProxy(const vtkSISourceProxy&) = delete;
119  void operator=(const vtkSISourceProxy&) = delete;
120 
121  class vtkInternals;
122  vtkInternals* Internals;
123  bool PortsCreated;
124  int StartEventCounter;
125 };
126 
127 #endif
virtual void UpdatePipelineInformation()
Triggers UpdateInformation() on vtkObject if possible.
Definition: vtkSIProxy.h:120
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:34
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.