ParaView
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;
41 class vtkPVArrayInformation;
42 class vtkPVDataInformation;
43 class vtkPVProminentValuesInformation;
44 class vtkPVTemporalDataInformation;
45 
50 class PQCORE_EXPORT pqDataRepresentation : public pqRepresentation
51 {
52  Q_OBJECT
54 public:
55  pqDataRepresentation(const QString& group, const QString& name,
56  vtkSMProxy* display, pqServer* server,
57  QObject* parent=0);
58  virtual ~pqDataRepresentation();
59 
61  pqPipelineSource* getInput() const;
62 
65  pqOutputPort* getOutputPortFromInput() const;
66 
69  vtkPVDataInformation* getInputDataInformation() const;
70 
73  vtkPVTemporalDataInformation* getInputTemporalDataInformation() const;
74 
79  vtkPVDataInformation* getRepresentedDataInformation(bool update=true) const;
80 
83  bool getDataBounds(double bounds[6]);
84 
88  virtual vtkSMProxy* getLookupTableProxy();
89 
94  virtual pqScalarsToColors* getLookupTable();
95 
98  unsigned long getFullResMemorySize();
99 
104  pqDataRepresentation* getRepresentationForUpstreamSource() const;
105 
106 signals:
108  void dataUpdated();
109 
112  void colorTransferFunctionModified();
113 
117  void colorArrayNameModified();
118 
119 public slots:
122  virtual void updateLookupTable();
123 
124  virtual void resetAllTransferFunctionRangesUsingCurrentData();
125 
127  virtual void onVisibilityChanged();
128 
129 protected slots:
132  virtual void onInputChanged();
133 
134 protected:
138  virtual void initialize()
139  {
140  this->Superclass::initialize();
141  this->onInputChanged();
142  }
143 private:
144  Q_DISABLE_COPY(pqDataRepresentation)
145 
146  pqDataRepresentationInternal* Internal;
147 };
148 
149 #endif
150 
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:55
virtual void initialize()
Use this method to initialize the pqObject state using the underlying vtkSMProxy. ...
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.
PQ representation for a vtkSMProxy that can be involved in a pipeline.
pqServer (should be renamed to pqSession) is a pqServerManagerModelItem subclass that represents a vt...
Definition: pqServer.h:62