pqPipelineRepresentation.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: ParaView
4  Module: pqPipelineRepresentation.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 
38 #ifndef _pqPipelineRepresentation_h
39 #define _pqPipelineRepresentation_h
40 
41 #include "pqDataRepresentation.h"
42 #include <QPair>
43 
44 class pqPipelineSource;
45 class pqRenderViewModule;
46 class pqServer;
51 
59 {
60  Q_OBJECT
62 
63 public:
64  // Constructor.
65  // \c group :- smgroup in which the proxy has been registered.
66  // \c name :- smname as which the proxy has been registered.
67  // \c repr :- the representation proxy.
68  // \c server:- server on which the proxy is created.
69  // \c parent:- QObject parent.
70  pqPipelineRepresentation(const QString& group, const QString& name, vtkSMProxy* repr,
71  pqServer* server, QObject* parent = NULL);
72  ~pqPipelineRepresentation() override;
73 
74  // Get the internal display proxy.
75  vtkSMRepresentationProxy* getRepresentationProxy() const;
76 
77 protected:
78  // Overridden to set up some additional Qt connections
79  void setView(pqView* view) override;
80 
81 public Q_SLOTS:
82  // If lookuptable is set up and is used for coloring,
83  // then calling this method resets the table ranges to match the current
84  // range of the selected array.
85  void resetLookupTableScalarRange();
86 
87  // If lookuptable is set up and is used for coloring,
88  // then calling this method resets the table ranges to match the
89  // range of the selected array over time. This can potentially be a slow
90  // processes hence use with caution!!!
91  void resetLookupTableScalarRangeOverTime();
92 };
93 
94 #endif
Proxy for a representations.
pqDataRepresentation is the superclass for a display for a pqPipelineSource i.e.
This is PQ representation for a single representation.
This is PQ representation for a single display.
This is a PQ abstraction of a generic view module.
Definition: pqView.h:54
name
#define PQCORE_EXPORT
Definition: pqCoreModule.h:15
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.
virtual void setView(pqView *)
Called by pqView when this representation gets added to / removed from the view.
pqServer (should be renamed to pqSession) is a pqServerManagerModelItem subclass that represents a vt...
Definition: pqServer.h:64