ParaView
pqRenderViewBase.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: ParaView
4  Module: pqRenderViewBase.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 pqRenderViewBase_h
33 #define pqRenderViewBase_h
34 
35 #include "pqSMProxy.h" //needed for pqSMProxy.
36 #include "pqView.h"
37 #include "vtkSetGet.h" // needed for VTK_LEGACY.
38 class pqTimer;
39 
43 class PQCORE_EXPORT pqRenderViewBase : public pqView
44 {
45  Q_OBJECT
46  typedef pqView Superclass;
47 
48 protected:
49  // Constructor:
50  // \c type :- view type.
51  // \c group :- SManager registration group name.
52  // \c name :- SManager registration name.
53  // \c view :- RenderView proxy.
54  // \c server:- server on which the proxy is created.
55  // \c parent:- QObject parent.
56  pqRenderViewBase(const QString& type,
57  const QString& group,
58  const QString& name,
59  vtkSMViewProxy* renModule,
60  pqServer* server,
61  QObject* parent=NULL);
62 
63 public:
64  // Destructor.
65  virtual ~pqRenderViewBase();
66 
70  virtual void resetCamera()=0;
71 
73  virtual void resetDisplay();
74 
83  VTK_LEGACY(static void setStereo(int mode));
84 
85 protected slots:
86  virtual void initializeAfterObjectsCreated();
87 
89  void beginDelayInteractiveRender();
90  void endDelayInteractiveRender();
91 
93  void updateStatusMessage();
94 
95 protected:
98  virtual bool eventFilter(QObject* caller, QEvent* e);
99 
102  virtual QWidget* createWidget();
103 
107  virtual void initialize();
108 
110  // updates.
112 
113 private:
114  Q_DISABLE_COPY(pqRenderViewBase)
115 
116  class pqInternal;
117  pqInternal* Internal;
118  pqTimer* InteractiveDelayUpdateTimer;
119 };
120 
121 #endif
bool AllowCaching
On Mac, we usually try to cache the front buffer to avoid unecessary.
This is a PQ abstraction of a generic view module.
Definition: pqView.h:55
virtual void resetDisplay()
Called to reset the view's display.
Definition: pqView.h:121
pqRenderViewBase is an abstract base class for all render-view based views.
virtual void initialize()
Use this method to initialize the pqObject state using the underlying vtkSMProxy. ...
virtual QWidget * createWidget()=0
Subclasses must override this method to create a widget for the view.
pqServer (should be renamed to pqSession) is a pqServerManagerModelItem subclass that represents a vt...
Definition: pqServer.h:62