ParaView
pqSphereWidget.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: ParaView
4  Module: pqSphereWidget.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.1.
11 
12  See License_v1.1.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 pqSphereWidget_h
33 #define pqSphereWidget_h
34 
35 #include "pq3DWidget.h"
36 
37 class pqServer;
38 class PQDEPRECATED_EXPORT pqSphereWidget : public pq3DWidget
39 {
40  Q_OBJECT
41  typedef pq3DWidget Superclass;
42 
43 public:
44  pqSphereWidget(vtkSMProxy* refProxy, vtkSMProxy* proxy, QWidget* p = 0);
45  virtual ~pqSphereWidget();
46 
55  virtual void resetBounds() { this->Superclass::resetBounds(); }
56  virtual void resetBounds(double bounds[6]);
57 
61  virtual void accept();
62 
66  virtual void reset();
67 
71  void enableDirection(bool);
72 
73 protected:
77  void createWidget(pqServer*);
78 
79 private slots:
83  void onWidgetVisibilityChanged(bool visible);
84 
85 private:
86  Q_DISABLE_COPY(pqSphereWidget)
87 
88  class pqImplementation;
89  pqImplementation* Implementation;
90 };
91 
92 #endif
******DEPRECATION WARNING******* pqProxyPanel and subclasses will soon be removed from ParaView...
Definition: pqProxyPanel.h:55
pq3DWidget is the abstract superclass for all 3D widgets.
Definition: pq3DWidget.h:53
virtual void accept()
Accepts pending changes.
virtual void resetBounds()
Resets the bounds of the 3D widget to the reference proxy bounds.
virtual void reset()
Resets pending changes.
proxy for a VTK object(s) on a server
Definition: vtkSMProxy.h:152
virtual void resetBounds()
Resets the bounds of the 3D widget to the reference proxy bounds.
pqServer (should be renamed to pqSession) is a pqServerManagerModelItem subclass that represents a vt...
Definition: pqServer.h:64