pqDataRepresentation.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 pqDataRepresentation_h
5 #define pqDataRepresentation_h
6 
7 #include "pqRepresentation.h"
8 
9 class pqDataRepresentationInternal;
10 class pqOutputPort;
11 class pqPipelineSource;
12 class pqScalarsToColors;
17 
25 {
26  Q_OBJECT
28 
29 public:
30  pqDataRepresentation(const QString& group, const QString& name, vtkSMProxy* display,
31  pqServer* server, QObject* parent = nullptr);
32  ~pqDataRepresentation() override;
33 
37  pqPipelineSource* getInput() const;
38 
43  pqOutputPort* getOutputPortFromInput() const;
44 
49  vtkPVDataInformation* getInputDataInformation() const;
50 
55  vtkPVTemporalDataInformation* getInputTemporalDataInformation() const;
56 
60  vtkPVDataInformation* getInputRankDataInformation(int rank) const;
61 
68  vtkPVDataInformation* getRepresentedDataInformation(bool update = true) const;
69 
74  bool getDataBounds(double bounds[6]);
75 
81  virtual vtkSMProxy* getLookupTableProxy();
82 
88  virtual pqScalarsToColors* getLookupTable();
89 
94  unsigned long getFullResMemorySize();
95 
102  pqDataRepresentation* getRepresentationForUpstreamSource() const;
103 
104 Q_SIGNALS:
108  void dataUpdated();
109 
114  void colorTransferFunctionModified();
115 
121  void colorArrayNameModified();
122 
128  void attrArrayNameModified();
129 
133  void representationTypeModified();
134 
138  void useSeparateOpacityArrayModified();
139 
143  void useTransfer2DModified();
144 
145 public Q_SLOTS:
150  virtual void updateLookupTable();
151 
152  virtual void resetAllTransferFunctionRangesUsingCurrentData();
153 
157  void onVisibilityChanged() override;
158 
159 protected Q_SLOTS:
164  virtual void onInputChanged();
165 
166 protected: // NOLINT(readability-redundant-access-specifiers)
172  void initialize() override
173  {
174  this->Superclass::initialize();
175  this->onInputChanged();
176  }
177 
178 private:
179  Q_DISABLE_COPY(pqDataRepresentation)
180 
181  pqDataRepresentationInternal* Internal;
182 };
183 
184 #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.
pqScalarsToColors is a represents a vtkScalarsToColors proxy.
This is PQ representation for a single representation.
virtual void onVisibilityChanged()
called when the display visibility property changes.
name
Prominent values a data array takes on.
#define PQCORE_EXPORT
Definition: pqCoreModule.h:15
proxy for a VTK object(s) on a server
Definition: vtkSMProxy.h:140
provides meta data about arrays.
PQ representation for a vtkSMProxy that can be involved in a pipeline.
extends vtkPVDataInformation to gather information across timesteps.
void initialize() override
Use this method to initialize the pqObject state using the underlying vtkSMProxy. ...
pqServer (should be renamed to pqSession) is a pqServerManagerModelItem subclass that represents a vt...
Definition: pqServer.h:35