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 
42 class PQDEPRECATED_EXPORT pqContourWidget : public pq3DWidget
43 {
44  Q_OBJECT
45  typedef pq3DWidget Superclass;
46 public:
47  pqContourWidget(vtkSMProxy* refProxy, vtkSMProxy* proxy, QWidget* parent);
48  virtual ~pqContourWidget();
49 
56  virtual void resetBounds(double /*bounds*/[6]) {}
57  virtual void resetBounds()
58  { return this->Superclass::resetBounds(); }
59 
60  // Some convenient methods
61  // Set the point placer/line interpolator
62  virtual void setPointPlacer(vtkSMProxy*);
63  virtual void setLineInterpolator(vtkSMProxy*);
64 
66  virtual void select();
68  virtual void deselect();
69 
71  virtual void setLineColor(const QColor& color);
72 
73 signals:
76  void contourLoopClosed();
77  void contourDone();
78 
79 public slots:
80  void removeAllNodes();
81  void checkContourLoopClosed();
82 
84  void closeLoop(bool);
85 
87  void updateMode( );
88 
90  void toggleEditMode( );
91 
93  void finishContour( );
94 
100  virtual void reset();
101 
102 protected:
104  virtual void createWidget(pqServer*);
105 
107  virtual void updateWidgetVisibility();
108 
109 protected slots:
110  void deleteAllNodes();
111 
112 private:
113  Q_DISABLE_COPY(pqContourWidget)
114 
115  void updateRepProperty(vtkSMProxy* smProxy,
116  const char* propertyName);
117 
118  class pqInternals;
119  pqInternals* Internals;
120 };
121 
122 #endif
virtual void updateWidgetVisibility()
Update the widget visibility according to the WidgetVisible and Selected flags.
GUI for ContourWidgetRepresentation. This is a 3D widget that edits a Contour.
******DEPRECATION WARNING******* pqProxyPanel and subclasses will soon be removed from ParaView...
Definition: pqProxyPanel.h:53
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:51
virtual void reset()
Resets pending changes.
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. Respects the visibility flag.
pqServer (should be renamed to pqSession) is a pqServerManagerModelItem subclass that represents a vt...
Definition: pqServer.h:62