Skip to content
Snippets Groups Projects
Select Git revision
  • 31a965b99407882d7e4359c29b78f3ad5ed060cf
  • master default protected
  • fix_Makefile.mingw#2
  • update_Makefile.mingw
  • fix_Makefile.mingw
  • fix_API_for_C_apps
  • fix_procinfo_mac
  • boinccmd_gpu_mode_always_until_sigterm
  • fgrp_osx_hotfix
  • fix_boinc_master@f8250782
  • eah_wrapper_improvements
  • diagnostics_win-hotfix
  • diagnostics_win-hotfix-old
  • current_fgrp_apps
  • testing_gw_apps
  • gw_app_darwin_15
  • current_brp_apps
  • current_brp_apps_android10
  • current_gfx_apps
  • current_server
  • current_gw_apps
  • previous_fgrp_apps
  • previous_gw_apps
  • testing_brp_apps
  • apps_FGRP3_1.07
  • apps_FGRP3_1.08
26 results

graphics2.h

Blame
  • pulsescopewidget.h 2.11 KiB
    /******************************************************************************
     *   Copyright (C) 2009 by Oliver Bock                                        *
     *   oliver.bock[AT]aei.mpg.de                                                *
     *                                                                            *
     *   This file is part of PulsatingScience.                                   *
     *                                                                            *
     *   PulsatingScience is free software: you can redistribute it and/or modify *
     *   it under the terms of the GNU General Public License as published        *
     *   by the Free Software Foundation, version 3 of the License.               *
     *                                                                            *
     *   PulsatingScience is distributed in the hope that it will be useful,      *
     *   but WITHOUT ANY WARRANTY; without even the implied warranty of           *
     *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the             *
     *   GNU General Public License for more details.                             *
     *                                                                            *
     *   You should have received a copy of the GNU General Public License        *
     *   along with PulsatingScience. If not, see <http://www.gnu.org/licenses/>. *
     *                                                                            *
     ******************************************************************************/
    
    #ifndef PULSESCOPEWIDGET_H_
    #define PULSESCOPEWIDGET_H_
    
    #include <cmath>
    
    #include <QGraphicsView>
    #include <QGraphicsScene>
    #include <QGLContext>
    #include <QGraphicsLineItem>
    
    
    class PulseScopeWidget : public QGraphicsView
    {
    	Q_OBJECT
    
    public:
    	PulseScopeWidget(QWidget *parent = 0);
    	virtual ~PulseScopeWidget();
    
    	void resizeEvent(QResizeEvent *event);
    
    public slots:
    	void drawCurve(const QVector<float>& vector);
    	void markerStep(float stepSize);
    	void markerReset();
    
    private:
    	QGraphicsScene m_scene;
    	QVector<float> m_data;
    	QGraphicsLineItem m_marker;
    
    	int m_scopeSizeH;
    	int m_scopeSizeV;
    };
    
    #endif /* PULSESCOPEWIDGET_H_ */