cisst-saw
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
vctPlot2DOpenGLQtWidget.h
Go to the documentation of this file.
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /* ex: set filetype=cpp softtabstop=4 shiftwidth=4 tabstop=4 cindent expandtab: */
3 
4 /*
5 
6  Author(s): Anton Deguet
7  Created on: 2010-05-05
8 
9  (C) Copyright 2010-2013 Johns Hopkins University (JHU), All Rights Reserved.
10 
11 --- begin cisst license - do not edit ---
12 
13 This software is provided "as is" under an open source license, with
14 no warranty. The complete license can be found in license.txt and
15 http://www.cisst.org/cisst/license.txt.
16 
17 --- end cisst license ---
18 */
19 
20 #ifndef _vctPlot2DOpenGLQtWidget_h
21 #define _vctPlot2DOpenGLQtWidget_h
22 
23 #include <QGLWidget>
25 
26 // Always include last
28 
29 class CISST_EXPORT vctPlot2DOpenGLQtWidget: public QGLWidget, public vctPlot2DOpenGL
30 {
31  Q_OBJECT;
32 
33 public:
34  vctPlot2DOpenGLQtWidget(QWidget * parent = 0);
36 
37 protected:
38 
41  virtual void initializeGL(void);
42  virtual void resizeGL(int w, int h);
43  virtual void paintGL(void);
44  virtual void mouseReleaseEvent(QMouseEvent * event);
45  virtual void keyPressEvent(QKeyEvent * event);
47 
48 public slots:
49  void FreezeSlot(bool);
50  void FitXSlot(void);
51  void FitYSlot(void);
52  void SetContinuousFitXSlot(bool);
53  void SetContinuousFitYSlot(bool);
54  void SetContinuousExpandYSlot(bool);
55  void SetContinuousExpandYResetSlot(void);
56 };
57 
58 #endif // _vctPlot2DOpenGLQtWidget_h
#define CISST_EXPORT
Definition: cmnExportMacros.h:50
Macros to export the symbols of cisstVectorQt (in a Dll).
Definition: vctPlot2DOpenGL.h:29
Definition: vctPlot2DOpenGLQtWidget.h:29
~vctPlot2DOpenGLQtWidget(void)
Definition: vctPlot2DOpenGLQtWidget.h:35