
2、设置光谱仪帧率、曝光时间、gain; 3、在页面中嵌入了rgb相机图传(通过opencv实现); 4、平台的相机位置模拟、x/y马达的分别控制、x/y马达的量程检测; 5、轨迹规划; 6、加入了张卓的自动调焦模块; 7、加入了自动电源控制;
35 lines
693 B
C++
35 lines
693 B
C++
#ifndef IMAGER_POSITION_SIMULATION
|
|
#define IMAGER_POSITION_SIMULATION
|
|
#include <QGraphicsView>
|
|
#include <QGraphicsScene>
|
|
|
|
#include "imagerSimulatioin.h"
|
|
|
|
class ImagerPositionSimulation :public QGraphicsView
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
ImagerPositionSimulation(QWidget* pParent = NULL);
|
|
~ImagerPositionSimulation();
|
|
|
|
imagerSimulatioin *imager;
|
|
|
|
void drawX();
|
|
|
|
void setSceneRect();//½«QGraphicsViewµÄviewportÉèÖÃΪsceneRect
|
|
|
|
QRectF sceneRect();
|
|
|
|
void mousePressEvent(QMouseEvent *event);
|
|
|
|
void mouseReleaseEvent(QMouseEvent *event);
|
|
|
|
private:
|
|
QGraphicsScene *m_Scene;
|
|
QGraphicsRectItem *m_rectangle;
|
|
|
|
QGraphicsLineItem *topLeftToLowerRight;
|
|
QGraphicsLineItem *topRightToLowerLeft;
|
|
|
|
};
|
|
#endif |