Skip to content
Snippets Groups Projects
Select Git revision
  • 640175cd31dc97ef77ee826d3d87da6c00847950
  • main default protected
  • dev protected
  • Issue/3142-kpiGenerator
  • Hotfix/3115-userReportingEmpty2
  • Hotfix/3115-userReportingEmpty
  • Issue/3043-DataStorageNrwResource
  • Issue/3011-maintenanceMode
  • Issue/2492-respOrg
  • Issue/2446-addingResponsibleOrganization
  • Issue/2982-kpiDataPub
  • Issue/2981-dataPubInDb
  • Issue/2881-messageController
  • test-linux-pipelines
  • Issue/2944-gdShenanigans
  • Issue/2672-fixSfbPidPointing
  • Issue/2769-migrateCron
  • Issue/2668-graphDeployer
  • Issue/2847-reporting
  • Issue/2627-addPidRecord
  • Issue/2432-publicationKpi
  • v1.9.10
  • v1.9.9
  • v1.9.8
  • v1.9.7
  • v1.9.6
  • v1.9.5
  • v1.9.4
  • v1.9.3
  • v1.9.2
  • v1.9.1
  • v1.9.0
  • v1.8.0
  • v1.7.0
  • v1.6.0
  • v1.5.0
  • v1.4.0
  • v1.3.3
  • v1.3.2
  • v1.3.1
  • v1.3.0
41 results

MetadataUpdateAdminParameters.cs

Blame
  • Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    OglViewerWidget.h 1.82 KiB
    #pragma once
    
    #include "geometryengine.h"
    
    #include <QOpenGLWidget>
    #include <QOpenGLFunctions>
    #include <QMatrix4x4>
    #include <QQuaternion>
    #include <QVector2D>
    #include <QBasicTimer>
    #include <QOpenGLShaderProgram>
    
    
    class GeometryEngine;
    
    class OglViewerWidget : public QOpenGLWidget, protected QOpenGLFunctions
    {
    	Q_OBJECT
    
    public:
    	explicit OglViewerWidget(QWidget *parent = 0);
    	~OglViewerWidget();
    
    signals:
    	void loadFile(QString);
    
    private:
    	struct {
    		bool left = false;
    		bool right = false;
    		QVector2D position;
    	} m_mouse;
    
    	struct {
    		bool x = true;
    		bool y = true;
    		bool z = true;
    	} m_rotDirections;
    
    	struct {
    		QVector4D position = { 1,1,1,0 };
    		QVector3D intensities = { 1.0,1.0,1.0 };
    		float attenuationFactor = 0.2f;
    		float ambientCoefficient = 0.005f;
    	} m_light;
    
    	QVector4D m_backgroundColor = {0.5f, 0.8f, 1.0f, 1.0f};
    
    	QOpenGLShaderProgram m_program;
    	GeometryEngine *m_dataEngine;
    
    	QMatrix4x4 m_projection;
    	QVector3D m_translation;
    	QQuaternion m_rotation;
    
    	bool m_wireframe = false;
    	bool m_lightOn = false;
    
    	double m_zSpeed = 1.0;
    
    protected:
    	void mousePressEvent(QMouseEvent *e) Q_DECL_OVERRIDE;
    	void mouseReleaseEvent(QMouseEvent *e) Q_DECL_OVERRIDE;
    	void mouseMoveEvent(QMouseEvent *e) Q_DECL_OVERRIDE;
    	void wheelEvent(QWheelEvent *e) Q_DECL_OVERRIDE;
    	void dragEnterEvent(QDragEnterEvent *e) Q_DECL_OVERRIDE;
    	void dropEvent(QDropEvent * event) Q_DECL_OVERRIDE;
    	void keyPressEvent(QKeyEvent *e) Q_DECL_OVERRIDE;
    
    	void initializeGL() Q_DECL_OVERRIDE;