• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdeedu API Reference
  • KDE Home
  • Contact Us
 

Analitza

  • sources
  • kde-4.12
  • kdeedu
  • analitza
  • analitzagui
plotsview3d.h
Go to the documentation of this file.
1 /*************************************************************************************
2  * Copyright (C) 2010-2012 by Percy Camilo T. Aucahuasi <percy.camilo.ta@gmail.com> *
3  * Copyright (C) 2007 by Abderrahman Taha: Basic OpenGL calls like scene, lights *
4  * and mouse behaviour taken from K3DSurf *
5  * *
6  * This program is free software; you can redistribute it and/or *
7  * modify it under the terms of the GNU General Public License *
8  * as published by the Free Software Foundation; either version 2 *
9  * of the License, or (at your option) any later version. *
10  * *
11  * This program is distributed in the hope that it will be useful, *
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of *
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
14  * GNU General Public License for more details. *
15  * *
16  * You should have received a copy of the GNU General Public License *
17  * along with this program; if not, write to the Free Software *
18  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA *
19  *************************************************************************************/
20 
21 #ifndef PLOTSVIEW3D_H
22 #define PLOTSVIEW3D_H
23 
24 #ifdef _WIN32
25 #include <GL/glew.h>
26 #endif
27 
28 #include <QGLWidget>
29 #include <QMouseEvent>
30 
31 #include <QModelIndex>
32 #include "analitzaguiexport.h"
33 #include <analitzaplot/plotter3d.h>
34 
35 class QItemSelectionModel;
36 
37 namespace Analitza
38 {
39 class Surface;
40 class PlotItem;
41 
53 class ANALITZAGUI_EXPORT PlotsView3D : public QGLWidget, public Plotter3D
54 {
55  Q_OBJECT
56 
57 public:
58  PlotsView3D(QWidget* parent = 0);
59  virtual ~PlotsView3D();
60 
61  void setSelectionModel(QItemSelectionModel* selection);
62 
63 public slots:
64  void resetView();
65 
66 private slots:
67  void updateFuncs(const QModelIndex &indexf,const QModelIndex &indext);
68  void addFuncs(const QModelIndex &index,int,int);
69  void removeFuncs(const QModelIndex &index,int,int);
70 
71 private:
72  virtual int currentPlot() const { return -1 ;}
73  virtual void modelChanged();
74  virtual void renderGL();
75 
76  virtual void keyPressEvent(QKeyEvent*);
77 
78  virtual void wheelEvent(QWheelEvent* ev);
79  virtual void mousePressEvent(QMouseEvent *event);
80  virtual void mouseMoveEvent(QMouseEvent *event);
81 
82  virtual void paintGL();
83  virtual void initializeGL();
84  virtual void resizeGL(int width, int height);
85 
86  QItemSelectionModel* m_selection;
87 
88  Qt::MouseButtons buttons;
89  double old_x, old_y;
90 };
91 
92 }
93 
94 #endif
Analitza::Plotter3D
This class manage the OpenGL scene where the plots will be rendered.
Definition: plotter3d.h:61
analitzaguiexport.h
QWidget
ANALITZAGUI_EXPORT
#define ANALITZAGUI_EXPORT
Definition: analitzaguiexport.h:28
Analitza::PlotsView3D
Widget that allows visualization of 3D plots.
Definition: plotsview3d.h:53
plotter3d.h
QGLWidget
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:35:21 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

Analitza

Skip menu "Analitza"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Modules
  • Related Pages

kdeedu API Reference

Skip menu "kdeedu API Reference"
  • Analitza
  •     lib
  • kalgebra
  • kalzium
  •   libscience
  • kanagram
  • kig
  •   lib
  • klettres
  • kstars
  • libkdeedu
  •   keduvocdocument
  • marble
  • parley
  • rocs
  •   App
  •   RocsCore
  •   VisualEditor
  •   stepcore

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal