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 
52 class PQCORE_EXPORT pqDataRepresentation : public pqRepresentation
53 {
54  Q_OBJECT
56 
57 public:
58  pqDataRepresentation(const QString& group, const QString& name, vtkSMProxy* display,
59  pqServer* server, QObject* parent = 0);
60  ~pqDataRepresentation() override;
61 
65  pqPipelineSource* getInput() const;
66 
71  pqOutputPort* getOutputPortFromInput() const;
72 
77  vtkPVDataInformation* getInputDataInformation() const;
78 
83  vtkPVTemporalDataInformation* getInputTemporalDataInformation() const;
84 
91  vtkPVDataInformation* getRepresentedDataInformation(bool update = true) const;
92 
97  bool getDataBounds(double bounds[6]);
98 
104  virtual vtkSMProxy* getLookupTableProxy();
105 
112  virtual pqScalarsToColors* getLookupTable();
113 
118  unsigned long getFullResMemorySize();
119 
126  pqDataRepresentation* getRepresentationForUpstreamSource() const;
127 
128 signals:
132  void dataUpdated();
133 
138  void colorTransferFunctionModified();
139 
145  void colorArrayNameModified();
146 
147 public slots:
152  virtual void updateLookupTable();
153 
154  virtual void resetAllTransferFunctionRangesUsingCurrentData();
155 
159  void onVisibilityChanged() override;
160 
161 protected slots:
166  virtual void onInputChanged();
167 
168 protected:
174  void initialize() override
175  {
176  this->Superclass::initialize();
177  this->onInputChanged();
178  }
179 
180 private:
181  Q_DISABLE_COPY(pqDataRepresentation)
182 
183  pqDataRepresentationInternal* Internal;
184 };
185 
186 #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
Light object for holding data information.
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.
proxy for a VTK object(s) on a server
Definition: vtkSMProxy.h:152
Data array information like type.
PQ representation for a vtkSMProxy that can be involved in a pipeline.
vtkPVTemporalDataInformation is used to gather data information over time.
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:64