pqDataRepresentation.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: ParaView
4  Module: pqDataRepresentation.h
5 
6  Copyright (c) 2005-2008 Sandia Corporation, Kitware Inc.
7  All rights reserved.
8 
9  ParaView is a free software; you can redistribute it and/or modify it
10  under the terms of the ParaView license version 1.2.
11 
12  See License_v1.2.txt for the full ParaView license.
13  A copy of this license can be obtained by contacting
14  Kitware Inc.
15  28 Corporate Drive
16  Clifton Park, NY 12065
17  USA
18 
19 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
20 ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
21 LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
22 A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHORS OR
23 CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
24 EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
25 PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
26 PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
27 LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
28 NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
29 SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30 
31 =========================================================================*/
32 #ifndef pqDataRepresentation_h
33 #define pqDataRepresentation_h
34 
35 #include "pqRepresentation.h"
36 
37 class pqDataRepresentationInternal;
38 class pqOutputPort;
39 class pqPipelineSource;
40 class pqScalarsToColors;
45 
53 {
54  Q_OBJECT
56 
57 public:
58  pqDataRepresentation(const QString& group, const QString& name, vtkSMProxy* display,
59  pqServer* server, QObject* parent = nullptr);
60  ~pqDataRepresentation() override;
61 
65  pqPipelineSource* getInput() const;
66 
71  pqOutputPort* getOutputPortFromInput() const;
72 
77  vtkPVDataInformation* getInputDataInformation() const;
78 
83  vtkPVTemporalDataInformation* getInputTemporalDataInformation() const;
84 
88  vtkPVDataInformation* getInputRankDataInformation(int rank) const;
89 
96  vtkPVDataInformation* getRepresentedDataInformation(bool update = true) const;
97 
102  bool getDataBounds(double bounds[6]);
103 
109  virtual vtkSMProxy* getLookupTableProxy();
110 
116  virtual pqScalarsToColors* getLookupTable();
117 
122  unsigned long getFullResMemorySize();
123 
130  pqDataRepresentation* getRepresentationForUpstreamSource() const;
131 
132 Q_SIGNALS:
136  void dataUpdated();
137 
142  void colorTransferFunctionModified();
143 
149  void colorArrayNameModified();
150 
156  void attrArrayNameModified();
157 
158 public Q_SLOTS:
163  virtual void updateLookupTable();
164 
165  virtual void resetAllTransferFunctionRangesUsingCurrentData();
166 
170  void onVisibilityChanged() override;
171 
172 protected Q_SLOTS:
177  virtual void onInputChanged();
178 
179 protected: // NOLINT(readability-redundant-access-specifiers)
185  void initialize() override
186  {
187  this->Superclass::initialize();
188  this->onInputChanged();
189  }
190 
191 private:
192  Q_DISABLE_COPY(pqDataRepresentation)
193 
194  pqDataRepresentationInternal* Internal;
195 };
196 
197 #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:57
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:152
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:63