ParaView
pqContourWidget.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: ParaView
4  Module: pqContourWidget.h
5 
6  Copyright (c) 2005,2006 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 pqContourWidget_h
33 #define pqContourWidget_h
34 
35 #include "pq3DWidget.h"
36 #include <QColor>
37 
38 class pqServer;
39 class vtkSMProxy;
40 
44 class PQDEPRECATED_EXPORT pqContourWidget : public pq3DWidget
45 {
46  Q_OBJECT
47  typedef pq3DWidget Superclass;
48 
49 public:
50  pqContourWidget(vtkSMProxy* refProxy, vtkSMProxy* proxy, QWidget* parent);
51  virtual ~pqContourWidget();
52 
61  virtual void resetBounds(double /*bounds*/[6]) {}
62  virtual void resetBounds() { return this->Superclass::resetBounds(); }
63 
64  // Some convenient methods
65  // Set the point placer/line interpolator
66  virtual void setPointPlacer(vtkSMProxy*);
67  virtual void setLineInterpolator(vtkSMProxy*);
68 
72  virtual void select();
76  virtual void deselect();
77 
81  virtual void setLineColor(const QColor& color);
82 
83 signals:
88  void contourLoopClosed();
89  void contourDone();
90 
91 public slots:
92  void removeAllNodes();
93  void checkContourLoopClosed();
94 
98  void closeLoop(bool);
99 
103  void updateMode();
104 
108  void toggleEditMode();
109 
113  void finishContour();
114 
122  virtual void reset();
123 
124 protected:
128  virtual void createWidget(pqServer*);
129 
133  virtual void updateWidgetVisibility();
134 
135 protected slots:
136  void deleteAllNodes();
137 
138 private:
139  Q_DISABLE_COPY(pqContourWidget)
140 
141  void updateRepProperty(vtkSMProxy* smProxy, const char* propertyName);
142 
143  class pqInternals;
144  pqInternals* Internals;
145 };
146 
147 #endif
virtual void updateWidgetVisibility()
Update the widget visibility according to the WidgetVisible and Selected flags.
GUI for ContourWidgetRepresentation.
******DEPRECATION WARNING******* pqProxyPanel and subclasses will soon be removed from ParaView...
Definition: pqProxyPanel.h:55
virtual void resetBounds()
Resets the bounds of the 3D widget to the reference proxy bounds.
pq3DWidget is the abstract superclass for all 3D widgets.
Definition: pq3DWidget.h:53
virtual void reset()
Resets pending changes.
proxy for a VTK object(s) on a server
Definition: vtkSMProxy.h:152
virtual void resetBounds(double [6])
Resets the bounds of the 3D widget to the reference proxy bounds.
virtual void deselect()
Deactivates the widget.
virtual void select()
Activates the widget.
pqServer (should be renamed to pqSession) is a pqServerManagerModelItem subclass that represents a vt...
Definition: pqServer.h:64