All Classes Files Functions Enumerations Enumerator Macros
qfi_ADI.h
Go to the documentation of this file.
/***************************************************************************/
#ifndef QFI_ADI_H
#define QFI_ADI_H
#include <QGraphicsView>
#include <QGraphicsSvgItem>
class qfi_ADI : public QGraphicsView
{
Q_OBJECT
public:
qfi_ADI( QWidget *parent = 0 );
virtual ~qfi_ADI();
void reinit();
void update();
void setRoll( float roll );
void setPitch( float pitch );
protected:
void resizeEvent( QResizeEvent *event );
private:
QGraphicsScene *m_scene;
QGraphicsSvgItem *m_itemBack;
QGraphicsSvgItem *m_itemFace;
QGraphicsSvgItem *m_itemRing;
QGraphicsSvgItem *m_itemCase;
float m_roll;
float m_pitch;
float m_faceDeltaX_new;
float m_faceDeltaX_old;
float m_faceDeltaY_new;
float m_faceDeltaY_old;
float m_scaleX;
float m_scaleY;
const int m_originalHeight;
const int m_originalWidth;
const float m_originalPixPerDeg;
QPointF m_originalAdiCtr;
const int m_backZ;
const int m_faceZ;
const int m_ringZ;
const int m_caseZ;
void init();
void reset();
void updateView();
};
#endif // QFI_ADI_H
qfi_ADI::resizeEvent
void resizeEvent(QResizeEvent *event)
Definition: qfi_ADI.cpp:165
qfi_ADI::setPitch
void setPitch(float pitch)
Definition: qfi_ADI.cpp:155
qfi_ADI::update
void update()
Definition: qfi_ADI.cpp:135
qfi_ADI
Definition: qfi_ADI.h:59
qfi_ADI::~qfi_ADI
virtual ~qfi_ADI()
Definition: qfi_ADI.cpp:109
qfi_ADI::qfi_ADI
qfi_ADI(QWidget *parent=0)
Definition: qfi_ADI.cpp:64
qfi_ADI::setRoll
void setRoll(float roll)
Definition: qfi_ADI.cpp:145
qfi_ADI::reinit
void reinit()
Definition: qfi_ADI.cpp:123