All Classes Files Functions Enumerations Enumerator Macros
qfi_TC.h
Go to the documentation of this file.
/***************************************************************************/
#ifndef QFI_TC_H
#define QFI_TC_H
#include <QGraphicsView>
#include <QGraphicsSvgItem>
class qfi_TC : public QGraphicsView
{
Q_OBJECT
public:
qfi_TC( QWidget *parent = 0 );
virtual ~qfi_TC();
void reinit();
void update();
void setTurnRate( float turnRate );
void setSlipSkid( float slipSkid );
protected:
void resizeEvent( QResizeEvent *event );
private:
QGraphicsScene *m_scene;
QGraphicsSvgItem *m_itemBack;
QGraphicsSvgItem *m_itemBall;
QGraphicsSvgItem *m_itemFace_1;
QGraphicsSvgItem *m_itemFace_2;
QGraphicsSvgItem *m_itemMark;
QGraphicsSvgItem *m_itemCase;
float m_turnRate;
float m_slipSkid;
float m_scaleX;
float m_scaleY;
const int m_originalHeight;
const int m_originalWidth;
QPointF m_originalMarkCtr;
QPointF m_originalBallCtr;
const int m_backZ;
const int m_ballZ;
const int m_face1Z;
const int m_face2Z;
const int m_markZ;
const int m_caseZ;
void init();
void reset();
void updateView();
};
#endif // QFI_TC_H
qfi_TC::update
void update()
Definition: qfi_TC.cpp:133
qfi_TC::setSlipSkid
void setSlipSkid(float slipSkid)
Definition: qfi_TC.cpp:150
qfi_TC::qfi_TC
qfi_TC(QWidget *parent=0)
Definition: qfi_TC.cpp:64
qfi_TC::reinit
void reinit()
Definition: qfi_TC.cpp:121
qfi_TC::setTurnRate
void setTurnRate(float turnRate)
Definition: qfi_TC.cpp:140
qfi_TC::~qfi_TC
virtual ~qfi_TC()
Definition: qfi_TC.cpp:107
qfi_TC
Definition: qfi_TC.h:59
qfi_TC::resizeEvent
void resizeEvent(QResizeEvent *event)
Definition: qfi_TC.cpp:160