pqOutputPort.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Kitware Inc.
2 // SPDX-FileCopyrightText: Copyright (c) Sandia Corporation
3 // SPDX-License-Identifier: BSD-3-Clause
4 #ifndef pqOutputPort_h
5 #define pqOutputPort_h
6 
7 #include "pqCoreModule.h"
8 #include "pqProxy.h"
9 
11 class pqPipelineSource;
12 class pqServer;
13 class pqView;
16 class vtkSMOutputPort;
17 class vtkSMSourceProxy;
18 
30 {
31  Q_OBJECT
32  typedef pqProxy Superclass;
33 
34 public:
35  pqOutputPort(pqPipelineSource* source, int portno);
36  ~pqOutputPort() override;
37 
41  vtkSMOutputPort* getOutputPortProxy() const;
42 
46  pqPipelineSource* getSource() const { return this->Source; }
47 
51  vtkSMSourceProxy* getSourceProxy() const;
52 
56  pqServer* getServer() const;
57 
61  int getPortNumber() const { return this->PortNumber; }
62 
66  QString getPortName() const;
67 
71  int getNumberOfConsumers() const;
72 
76  pqPipelineSource* getConsumer(int index) const;
77 
81  QList<pqPipelineSource*> getConsumers() const;
82 
87  QList<pqDataRepresentation*> getRepresentations(pqView* view) const;
88 
93  pqDataRepresentation* getRepresentation(pqView* view) const;
94 
99  QList<pqView*> getViews() const;
100 
106  vtkPVDataInformation* getDataInformation() const;
107 
111  vtkPVDataInformation* getRankDataInformation(int rank) const;
112 
117  vtkPVTemporalDataInformation* getTemporalDataInformation();
118 
127  vtkPVDataInformation* getSelectedDataInformation(int es_port = 0) const;
128 
132  const char* getDataClassName() const;
133 
138  vtkSMSourceProxy* getSelectionInput();
139 
144  unsigned int getSelectionInputPort();
145 
149  void setSelectionInput(vtkSMSourceProxy* src, int port);
150 
154  QString prettyName() const;
155 
156 public Q_SLOTS: // NOLINT(readability-redundant-access-specifiers)
162  void renderAllViews(bool force = false);
163 
164 Q_SIGNALS:
168  void connectionAdded(pqOutputPort* port, pqPipelineSource* consumer);
169  void preConnectionAdded(pqOutputPort* port, pqPipelineSource* consumer);
170 
174  void connectionRemoved(pqOutputPort* port, pqPipelineSource* consumer);
175  void preConnectionRemoved(pqOutputPort* port, pqPipelineSource* consumer);
176 
180  void representationAdded(pqOutputPort* source, pqDataRepresentation* repr);
181 
185  void representationRemoved(pqOutputPort* source, pqDataRepresentation* repr);
186 
192  void visibilityChanged(pqOutputPort* source, pqDataRepresentation* repr);
193 
194 protected Q_SLOTS:
195  void onRepresentationVisibilityChanged();
196 
197 protected: // NOLINT(readability-redundant-access-specifiers)
198  friend class pqPipelineFilter;
199  friend class pqDataRepresentation;
200 
204  void removeConsumer(pqPipelineSource*);
205  void addConsumer(pqPipelineSource*);
206 
210  void addRepresentation(pqDataRepresentation*);
211  void removeRepresentation(pqDataRepresentation*);
212 
215 
216 private:
217  Q_DISABLE_COPY(pqOutputPort)
218 
219  class pqInternal;
220  pqInternal* Internal;
221 };
222 
223 #endif
pqDataRepresentation is the superclass for a display for a pqPipelineSource i.e.
pqOutputPort is a server manager model item for an output port of any pqPipelineSource item...
Definition: pqOutputPort.h:29
provides meta data about a vtkDataObject subclass.
int getPortNumber() const
Returns the port number of the output port which this item represents.
Definition: pqOutputPort.h:61
pqPipelineSource * getSource() const
Returns the pqPipelineSource whose output port this is.
Definition: pqOutputPort.h:46
This is a PQ abstraction of a generic view module.
Definition: pqView.h:26
pqPipelineSource * Source
Definition: pqOutputPort.h:213
proxy for a VTK source on a server
#define PQCORE_EXPORT
Definition: pqCoreModule.h:15
source
This class represents any registered Server Manager proxy.
Definition: pqProxy.h:28
pqServer * getServer() const
Get the server on which this proxy exists.
reference for an output port of a vtkAlgorithm.
PQ representation for a vtkSMProxy that can be involved in a pipeline.
port
extends vtkPVDataInformation to gather information across timesteps.
index
pqServer (should be renamed to pqSession) is a pqServerManagerModelItem subclass that represents a vt...
Definition: pqServer.h:35