All Classes Files Functions Enumerations Enumerator Macros
qfi_ALT.h
Go to the documentation of this file.
/***************************************************************************/
#ifndef QFI_ALT_H
#define QFI_ALT_H
#include <QGraphicsView>
#include <QGraphicsSvgItem>
class qfi_ALT : public QGraphicsView
{
Q_OBJECT
public:
qfi_ALT( QWidget *parent = 0 );
virtual ~qfi_ALT();
void reinit();
void update();
void setAltitude( float altitude );
void setPressure( float aressure );
protected:
void resizeEvent( QResizeEvent *event );
private:
QGraphicsScene *m_scene;
QGraphicsSvgItem *m_itemFace_1;
QGraphicsSvgItem *m_itemFace_2;
QGraphicsSvgItem *m_itemFace_3;
QGraphicsSvgItem *m_itemHand_1;
QGraphicsSvgItem *m_itemHand_2;
QGraphicsSvgItem *m_itemCase;
float m_altitude;
float m_pressure;
float m_scaleX;
float m_scaleY;
const int m_originalHeight;
const int m_originalWidth;
QPointF m_originalAltCtr;
const int m_face1Z;
const int m_face2Z;
const int m_face3Z;
const int m_hand1Z;
const int m_hand2Z;
const int m_caseZ;
void init();
void reset();
void updateView();
};
#endif // QFI_ALT_H
qfi_ALT::reinit
void reinit()
Definition: qfi_ALT.cpp:120
qfi_ALT
Definition: qfi_ALT.h:59
qfi_ALT::update
void update()
Definition: qfi_ALT.cpp:132
qfi_ALT::setAltitude
void setAltitude(float altitude)
Definition: qfi_ALT.cpp:139
qfi_ALT::setPressure
void setPressure(float aressure)
Definition: qfi_ALT.cpp:146
qfi_ALT::resizeEvent
void resizeEvent(QResizeEvent *event)
Definition: qfi_ALT.cpp:156
qfi_ALT::~qfi_ALT
virtual ~qfi_ALT()
Definition: qfi_ALT.cpp:106
qfi_ALT::qfi_ALT
qfi_ALT(QWidget *parent=0)
Definition: qfi_ALT.cpp:64