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 
77 
84  virtual std::vector<vtkSMProxy*> getLookupTableProxies(
85  int selectedPropertiesType = 0 /*Representation*/) const;
86  virtual vtkSMProxy* getLookupTableProxy(int selectedPropertiesType = 0 /*Representation*/) const;
88 
96  virtual pqScalarsToColors* getLookupTable(
97  int selectedPropertiesType = 0 /*Representation*/) const;
98 
103  unsigned long getFullResMemorySize();
104 
111  pqDataRepresentation* getRepresentationForUpstreamSource() const;
112 
113 Q_SIGNALS:
117  void dataUpdated();
118 
120 
124  void colorTransferFunctionModified();
125  void blockColorTransferFunctionModified();
127 
129 
134  void colorArrayNameModified();
135  void blockColorArrayNameModified();
137 
143  void attrArrayNameModified();
144 
148  void representationTypeModified();
149 
153  void useSeparateOpacityArrayModified();
154 
158  void useTransfer2DModified();
159 
160 public Q_SLOTS:
165  virtual void updateLookupTable();
166 
167  virtual void resetAllTransferFunctionRangesUsingCurrentData();
168 
172  void onVisibilityChanged() override;
173 
174 protected Q_SLOTS:
179  virtual void onInputChanged();
180 
181 protected: // NOLINT(readability-redundant-access-specifiers)
187  void initialize() override
188  {
189  this->Superclass::initialize();
190  this->onInputChanged();
191  }
192 
193 private:
194  Q_DISABLE_COPY(pqDataRepresentation)
195 
196  pqDataRepresentationInternal* Internal;
197 };
198 
199 #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