vtkSMInputProperty.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Kitware Inc.
2 // SPDX-License-Identifier: BSD-3-Clause
18 #ifndef vtkSMInputProperty_h
19 #define vtkSMInputProperty_h
20 
21 struct vtkSMInputPropertyInternals;
22 
23 #include "vtkRemotingServerManagerModule.h" //needed for exports
24 #include "vtkSMProxyProperty.h"
25 
26 class vtkSMStateLocator;
27 
29 {
30 public:
31  static vtkSMInputProperty* New();
33  void PrintSelf(ostream& os, vtkIndent indent) override;
34 
36 
40  vtkSetMacro(MultipleInput, int);
41  vtkGetMacro(MultipleInput, int);
43 
45 
51  void AddInputConnection(vtkSMProxy* proxy, unsigned int outputPort);
52  void SetInputConnection(unsigned int idx, vtkSMProxy* proxy, unsigned int outputPort);
54 
55  void AddUncheckedInputConnection(vtkSMProxy* proxy, unsigned int outputPort);
56  void SetUncheckedInputConnection(unsigned int idx, vtkSMProxy* proxy, unsigned int inputPort);
57 
59 
62  virtual void SetProxies(
63  unsigned int numElements, vtkSMProxy* proxies[], unsigned int outputports[]);
64  using Superclass::SetProxies;
66 
68 
72  unsigned int GetOutputPortForConnection(unsigned int idx);
73  unsigned int GetUncheckedOutputPortForConnection(unsigned int idx);
75 
77 
81  vtkSetMacro(PortIndex, int);
82  vtkGetMacro(PortIndex, int);
84 
85 protected:
87  ~vtkSMInputProperty() override;
88 
93  int ReadXMLAttributes(vtkSMProxy* parent, vtkPVXMLElement* element) override;
94 
99  vtkPVXMLElement* propertyElement, unsigned int idx) override;
100 
103 
104 private:
105  vtkSMInputProperty(const vtkSMInputProperty&) = delete;
106  void operator=(const vtkSMInputProperty&) = delete;
107 };
108 
109 #endif
virtual void SetProxies(unsigned int numElements, vtkSMProxy *proxies[])
Sets the value of the property to the list of proxies specified.
static vtkSMProxyProperty * New()
property representing pointer(s) to vtkObject(s)
#define VTKREMOTINGSERVERMANAGER_EXPORT
int ReadXMLAttributes(vtkSMProxy *parent, vtkPVXMLElement *element) override
Set the appropriate ivars from the xml element.
void PrintSelf(ostream &os, vtkIndent indent) override
proxy for a VTK object(s) on a server
Definition: vtkSMProxy.h:140
This is used by vtkPVXMLParser to represent an XML document starting at the root element.
virtual vtkPVXMLElement * AddProxyElementState(vtkPVXMLElement *prop, unsigned int idx)
Fill state property/proxy XML element with proxy info.
proxy representing inputs to a filter
Class used to retrieve a given message state based on its GlobalID.