123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113 |
- #include "CameraImageHandler.h"
- #include "CameraMaterialGroupWnd/Group.h"
- #include "CInterface.h"
- CameraImageHandler::CameraImageHandler(int iCameraId) {
- captureAndConvertImage(iCameraId);
- }
- void CameraImageHandler::captureAndConvertImage(int iCameraId) {
-
-
-
-
-
-
- initGroup(iCameraId);
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- }
- Group* CameraImageHandler::getGroup() const {
- return group;
- }
- Wafer* CameraImageHandler::getWafer() const{
- return wafer;
- }
- Waffle* CameraImageHandler::getWaffle() const{
- return waffle;
- }
- void CameraImageHandler::initGroup(int CameraId) {
- QStringList dispmodel1;
- dispmodel1 << "P die align" << "D device align";
- QStringList dispmodel2;
- dispmodel2 << "D device align" << "P die align";
- QStringList dispmodel3;
- dispmodel3 << "B device align" << "P die align";
- QStringList dispmodel4;
- dispmodel4 << "U die align" << "D device align";
- if (CameraId == 1) {
- MaterialWindowType = 1;
- wafer = new Wafer(0);
- group = new Group(CameraId, ":/images/test_image/image_1.png", MaterialWindowType, dispmodel1, this);
- } else if (CameraId == 2) {
- MaterialWindowType = 2;
- waffle = new Waffle(0);
- group = new Group(CameraId, ":/images/test_image/image_3.png", MaterialWindowType, dispmodel2, this);
- } else if (CameraId == 3) {
- MaterialWindowType = 3;
- waffle = new Waffle(0);
- group = new Group(CameraId, ":/images/test_image/image_5.png", MaterialWindowType, dispmodel3, this);
- } else if (CameraId == 4) {
- MaterialWindowType = 1;
- wafer = new Wafer(0);
- group = new Group(CameraId, ":/images/test_image/image_7.png", MaterialWindowType, dispmodel4, this);
- } else if (CameraId == 5) {
- MaterialWindowType = 1;
- wafer = new Wafer(0);
- group = new Group(CameraId, ":/images/test_image/image_1.png", MaterialWindowType, dispmodel1, this);
- } else if (CameraId == 6) {
- MaterialWindowType = 2;
- waffle = new Waffle(0);
- group = new Group(CameraId, ":/images/test_image/image_3.png", MaterialWindowType, dispmodel2, this);
- } else if (CameraId == 7) {
- MaterialWindowType = 3;
- group = new Group(CameraId, ":/images/test_image/image_5.png", MaterialWindowType, dispmodel3, this);
- } else if (CameraId == 8) {
- MaterialWindowType = 1;
- wafer = new Wafer(0);
- group = new Group(CameraId, ":/images/test_image/image_7.png", MaterialWindowType, dispmodel4, this);
- } else {
- group = nullptr;
- }
- }
|