Files
HPPA/HPPA/imagerSimulatioin.h
tangchao0503 0b4ee48355 1、实现了光谱仪简单的采集功能:曝光、调焦、暗电流、采集影像、保存影像;
2、设置光谱仪帧率、曝光时间、gain;
3、在页面中嵌入了rgb相机图传(通过opencv实现);
4、平台的相机位置模拟、x/y马达的分别控制、x/y马达的量程检测;
5、轨迹规划;
6、加入了张卓的自动调焦模块;
7、加入了自动电源控制;
2023-03-14 22:52:38 +08:00

34 lines
892 B
C++
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#ifndef IMAGER_SIMULATIOIN
#define IMAGER_SIMULATIOIN
#include <QGraphicsItem>
class imagerSimulatioin :public QObject,public QGraphicsItem
{
Q_OBJECT
Q_INTERFACES(QGraphicsItem)
public:
imagerSimulatioin(QGraphicsItem *parent = Q_NULLPTR);
~imagerSimulatioin();
QRectF boundingRect() const;
void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget);
void setPos(qreal x, qreal y);
//在QGraphicsScene中限制图元的拖动范围https://www.cnblogs.com/sfy5848/p/6611824.html
QVariant itemChange(GraphicsItemChange change, const QVariant &value);
void mouseMoveEvent(QGraphicsSceneMouseEvent *event);//当拖动item时不停会的绘制消除拖动重影
void mouseReleaseEvent(QGraphicsSceneMouseEvent *event);//当放开鼠标时发射此时图元在scene中的坐标
protected:
private:
int m_width;
int m_height;
signals :
void leftMouseButtonPressed(int, int);
};
#endif