| | |
| | | // DlgAlign.cpp : 구현 파일입니다. |
| | | // DlgAlign.cpp : ���� �����Դϴ�. |
| | | // |
| | | |
| | | #include "stdafx.h" |
| | |
| | | #include "CHReviewSetting/Sys_AlignManager.h" |
| | | #include "CHReviewSetting/SystemInfo.h" |
| | | |
| | | // CDlgAlign 대화 상자입니다. |
| | | // CDlgAlign ��ȭ �����Դϴ�. |
| | | |
| | | IMPLEMENT_DYNAMIC(CDlgAlign, CDialog) |
| | | |
| | |
| | | END_MESSAGE_MAP() |
| | | |
| | | |
| | | // CDlgAlign 메시지 처리기입니다. |
| | | // CDlgAlign ���� ó�����Դϴ�. |
| | | |
| | | BOOL CDlgAlign::OnInitDialog() |
| | | { |
| | | CDialog::OnInitDialog(); |
| | | |
| | | // TODO: 여기에 추가 초기화 작업을 추가합니다. |
| | | // TODO: ��� �߰� �ʱ�ȭ �۾��� �߰��մϴ�. |
| | | InitAlignCameraInfoGridControl(); |
| | | FillAlignCameraInfo(); |
| | | |
| | | return TRUE; // return TRUE unless you set the focus to a control |
| | | // 예외: OCX 속성 페이지는 FALSE를 반환해야 합니다. |
| | | // ����: OCX �Ӽ� �������� FALSE�� ��ȯ�ؾ� �մϴ�. |
| | | } |
| | | |
| | | BOOL CDlgAlign::PreTranslateMessage(MSG* pMsg) |
| | | { |
| | | // TODO: 여기에 특수화된 코드를 추가 및/또는 기본 클래스를 호출합니다. |
| | | // TODO: ��� Ư��ȭ�� �ڵ带 �߰� ��/�Ǵ� �⺻ Ŭ������ ȣ���մϴ�. |
| | | if( pMsg->message == WM_KEYDOWN ) |
| | | { |
| | | if(pMsg->wParam == VK_RETURN || pMsg->wParam == VK_ESCAPE ) |
| | |
| | | |
| | | void CDlgAlign::OnBnClickedButtonSysAlignReset() |
| | | { |
| | | // TODO: 여기에 컨트롤 알림 처리기 코드를 추가합니다. |
| | | // TODO: ��� ��Ʈ�� �˸� ó���� �ڵ带 �߰��մϴ�. |
| | | ResetAlignCameraInfoGrid(); |
| | | } |
| | | |
| | | void CDlgAlign::OnBnClickedButtonSysAlignApply() |
| | | { |
| | | // TODO: 여기에 컨트롤 알림 처리기 코드를 추가합니다. |
| | | // TODO: ��� ��Ʈ�� �˸� ó���� �ڵ带 �߰��մϴ�. |
| | | UpdateData(TRUE); |
| | | |
| | | int i, j, nArrayCount = 0; |
| | |
| | | if(pCameraControlInfo == NULL) continue; |
| | | |
| | | ////////////////////////////////////////////////////////////////////////// |
| | | // 카메라 인덱스 |
| | | // ī�� �ε��� |
| | | CString strItemText = m_ctrlGridAlignCameraInfo.GetItemText(nRowIdx, nColIdx); |
| | | pCameraControlInfo->SetIndex(_ttoi(strItemText)); |
| | | |
| | | // 기준 카메라 |
| | | // ���� � |
| | | nRowIdx++; |
| | | CGridCellCheck *pCellCheck = (CGridCellCheck*)m_ctrlGridAlignCameraInfo.GetCell(nRowIdx, nColIdx); |
| | | if(pCellCheck) |
| | |
| | | pCameraControlInfo->SetStandardCamera(pCellCheck->GetCheck()); |
| | | } |
| | | |
| | | // 카메라 라이브러리 타입 |
| | | // ī�� ���̺귯�� Ÿ�� |
| | | nRowIdx++; |
| | | CGridCellCombo* pCellCombo = (CGridCellCombo*)m_ctrlGridAlignCameraInfo.GetCell(nRowIdx, nColIdx); |
| | | if(pCellCombo) |
| | |
| | | } |
| | | } |
| | | |
| | | // 카메라 플립 타입 |
| | | // ī�� �ø� Ÿ�� |
| | | nRowIdx++; |
| | | pCellCombo = (CGridCellCombo*)m_ctrlGridAlignCameraInfo.GetCell(nRowIdx, nColIdx); |
| | | if(pCellCombo) |
| | |
| | | } |
| | | } |
| | | |
| | | // 카메라 이름 |
| | | // ī�� �̸� |
| | | nRowIdx++; |
| | | strItemText = m_ctrlGridAlignCameraInfo.GetItemText(nRowIdx, nColIdx); |
| | | pCameraControlInfo->SetName(strItemText); |
| | | |
| | | // 카메라 연결 정보 |
| | | // � ���� ���� |
| | | nRowIdx++; |
| | | strItemText = m_ctrlGridAlignCameraInfo.GetItemText(nRowIdx, nColIdx); |
| | | pCameraControlInfo->SetConnectionPort(strItemText); |
| | | |
| | | // 카메라 프레임 개수 |
| | | // � ������ ���� |
| | | nRowIdx++; |
| | | strItemText = m_ctrlGridAlignCameraInfo.GetItemText(nRowIdx, nColIdx); |
| | | pCameraControlInfo->SetFrameCount(_ttoi(strItemText)); |
| | | |
| | | // 카메라 프레임 넓이 |
| | | // � ������ ���� |
| | | nRowIdx++; |
| | | strItemText = m_ctrlGridAlignCameraInfo.GetItemText(nRowIdx, nColIdx); |
| | | pCameraControlInfo->SetFrameWidth(_ttoi(strItemText)); |
| | | |
| | | // 카메라 프레임 높이 |
| | | // � ������ ���� |
| | | nRowIdx++; |
| | | strItemText = m_ctrlGridAlignCameraInfo.GetItemText(nRowIdx, nColIdx); |
| | | pCameraControlInfo->SetFrameHeight(_ttoi(strItemText)); |
| | | |
| | | // 이미지 버퍼 개수 |
| | | // �̹��� ���� ���� |
| | | nRowIdx++; |
| | | strItemText = m_ctrlGridAlignCameraInfo.GetItemText(nRowIdx, nColIdx); |
| | | pCameraControlInfo->SetImageBufferCount(_ttoi(strItemText)); |
| | | |
| | | // 카메라 해상도 (CCD) |
| | | // ī�� �ػ� (CCD) |
| | | nRowIdx++; |
| | | strItemText = m_ctrlGridAlignCameraInfo.GetItemText(nRowIdx, nColIdx); |
| | | pCameraControlInfo->SetPixelResolution(_tcstod(strItemText, NULL)); |
| | | |
| | | // 카메라 컬러 채널 (Depth : Gray 1) |
| | | // ī�� �÷� ä�� (Depth : Gray 1) |
| | | nRowIdx++; |
| | | strItemText = m_ctrlGridAlignCameraInfo.GetItemText(nRowIdx, nColIdx); |
| | | pCameraControlInfo->SetFrameChannels(_ttoi(strItemText)); |
| | | |
| | | // 카메라 X축 방향 |
| | | // � X�� ���� |
| | | nRowIdx++; |
| | | pCellCombo = (CGridCellCombo*)m_ctrlGridAlignCameraInfo.GetCell(nRowIdx, nColIdx); |
| | | |
| | |
| | | } |
| | | } |
| | | |
| | | // 카메라 Y축 방향 |
| | | // � Y�� ���� |
| | | nRowIdx++; |
| | | pCellCombo = (CGridCellCombo*)m_ctrlGridAlignCameraInfo.GetCell(nRowIdx, nColIdx); |
| | | |
| | |
| | | CLightControlInfo* pLightControlInfo = pAlignCameraInfo->GetLightContorlInfo(); |
| | | if(pLightControlInfo == NULL) continue; |
| | | |
| | | // 조명 타입 |
| | | // ���� Ÿ�� |
| | | nRowIdx++; |
| | | pCellCombo = (CGridCellCombo*)m_ctrlGridAlignCameraInfo.GetCell(nRowIdx, nColIdx); |
| | | if(pCellCombo) |
| | |
| | | } |
| | | } |
| | | |
| | | // 조명 포트 |
| | | // ���� ��Ʈ |
| | | nRowIdx++; |
| | | strItemText = m_ctrlGridAlignCameraInfo.GetItemText(nRowIdx, nColIdx); |
| | | pLightControlInfo->SetConnectionPort(strItemText); |
| | | |
| | | // 마스터(Open/Close) 권한 |
| | | // ������(Open/Close) ���� |
| | | nRowIdx++; |
| | | strItemText = m_ctrlGridAlignCameraInfo.GetItemText(nRowIdx, nColIdx); |
| | | pLightControlInfo->SetMaster(_ttoi(strItemText)); |
| | | |
| | | // 조명 채널 |
| | | // ���� � |
| | | nRowIdx++; |
| | | strItemText = m_ctrlGridAlignCameraInfo.GetItemText(nRowIdx, nColIdx); |
| | | pLightControlInfo->SetChannel(_ttoi(strItemText)); |
| | | |
| | | // 조명 기본값 |
| | | // ���� �⺻�� |
| | | nRowIdx++; |
| | | strItemText = m_ctrlGridAlignCameraInfo.GetItemText(nRowIdx, nColIdx); |
| | | pLightControlInfo->SetDefaultValue(_ttoi(strItemText)); |
| | | |
| | | // � ������ |
| | | nRowIdx++; |
| | | strItemText = m_ctrlGridAlignCameraInfo.GetItemText(nRowIdx, nColIdx); |
| | | BOOL nMode = FALSE; |
| | | if (_ttoi(strItemText) >= 2) |
| | | { |
| | | nMode = TRUE; |
| | | } |
| | | else if(_ttoi(strItemText)<-1) |
| | | { |
| | | nMode = FALSE; |
| | | } |
| | | else |
| | | { |
| | | nMode = _ttoi(strItemText); |
| | | } |
| | | pCameraControlInfo->SetCameraReverseX(nMode); |
| | | |
| | | nColIdx++; |
| | | } |
| | |
| | | Item.mask = GVIF_TEXT; |
| | | Item.row = nRowIdx++; |
| | | Item.col = nColIdx; |
| | | strTemp.Format(_T("Camera Index")); //_T("카메라 인덱스")); |
| | | strTemp.Format(_T("Camera Index")); //_T("ī�� �ε���")); |
| | | Item.strText = strTemp; |
| | | m_ctrlGridAlignCameraInfo.SetItem(&Item); |
| | | |
| | | Item.row = nRowIdx++; |
| | | Item.col = nColIdx; |
| | | strTemp.Format(_T("Standard Camera")); //_T("기준 카메라")); |
| | | strTemp.Format(_T("Standard Camera")); //_T("���� �")); |
| | | Item.strText = strTemp; |
| | | m_ctrlGridAlignCameraInfo.SetItem(&Item); |
| | | |
| | | Item.row = nRowIdx++; |
| | | Item.col = nColIdx; |
| | | strTemp.Format(_T("Library Type")); //_T("카메라 라이브러리")); |
| | | strTemp.Format(_T("Library Type")); //_T("ī�� ���̺귯��")); |
| | | Item.strText = strTemp; |
| | | m_ctrlGridAlignCameraInfo.SetItem(&Item); |
| | | |
| | | Item.row = nRowIdx++; |
| | | Item.col = nColIdx; |
| | | strTemp.Format(_T("Flip Type")); //_T("카메라 플립 타입")); |
| | | strTemp.Format(_T("Flip Type")); //_T("ī�� �ø� Ÿ��")); |
| | | Item.strText = strTemp; |
| | | m_ctrlGridAlignCameraInfo.SetItem(&Item); |
| | | |
| | | Item.row = nRowIdx++; |
| | | Item.col = nColIdx; |
| | | strTemp.Format(_T("Camera Name")); //_T("카메라 이름")); |
| | | strTemp.Format(_T("Camera Name")); //_T("ī�� �̸�")); |
| | | Item.strText = strTemp; |
| | | m_ctrlGridAlignCameraInfo.SetItem(&Item); |
| | | |
| | | Item.row = nRowIdx++; |
| | | Item.col = nColIdx; |
| | | strTemp.Format(_T("Connection Information")); //_T("카메라 연결 정보")); (시리얼 넘버) |
| | | strTemp.Format(_T("Connection Information")); //_T("ī�� ���� ����")); (�ø��� �ѹ�) |
| | | Item.strText = strTemp; |
| | | m_ctrlGridAlignCameraInfo.SetItem(&Item); |
| | | |
| | | Item.row = nRowIdx++; |
| | | Item.col = nColIdx; |
| | | strTemp.Format(_T("Frame Count (f/s)")); //_T("카메라 프레임 개수")); |
| | | strTemp.Format(_T("Frame Count (f/s)")); //_T("� ������ ����")); |
| | | Item.strText = strTemp; |
| | | m_ctrlGridAlignCameraInfo.SetItem(&Item); |
| | | |
| | | Item.row = nRowIdx++; |
| | | Item.col = nColIdx; |
| | | strTemp.Format(_T("Frame Width (pxl)")); //_T("카메라 프레임 넓이")); |
| | | strTemp.Format(_T("Frame Width (pxl)")); //_T("� ������ ����")); |
| | | Item.strText = strTemp; |
| | | m_ctrlGridAlignCameraInfo.SetItem(&Item); |
| | | |
| | | Item.row = nRowIdx++; |
| | | Item.col = nColIdx; |
| | | strTemp.Format(_T("Frame Height (pxl)")); //_T("카메라 프레임 높이")); |
| | | strTemp.Format(_T("Frame Height (pxl)")); //_T("� ������ ����")); |
| | | Item.strText = strTemp; |
| | | m_ctrlGridAlignCameraInfo.SetItem(&Item); |
| | | |
| | | Item.row = nRowIdx++; |
| | | Item.col = nColIdx; |
| | | strTemp.Format(_T("Image Buffer Cnt (ea)")); //_T("이미지 버퍼 개수")); |
| | | strTemp.Format(_T("Image Buffer Cnt (ea)")); //_T("�̹��� ���� ����")); |
| | | Item.strText = strTemp; |
| | | m_ctrlGridAlignCameraInfo.SetItem(&Item); |
| | | |
| | | Item.row = nRowIdx++; |
| | | Item.col = nColIdx; |
| | | strTemp.Format(_T("Resolution (um/pxl)")); //_T("카메라 해상도")); |
| | | strTemp.Format(_T("Resolution (um/pxl)")); //_T("ī�� �ػ�")); |
| | | Item.strText = strTemp; |
| | | m_ctrlGridAlignCameraInfo.SetItem(&Item); |
| | | |
| | | Item.row = nRowIdx++; |
| | | Item.col = nColIdx; |
| | | strTemp.Format(_T("Frame Channel (Color)")); //_T("카메라 컬러 채널")); |
| | | strTemp.Format(_T("Frame Channel (Color)")); //_T("ī�� �÷� ä��")); |
| | | Item.strText = strTemp; |
| | | m_ctrlGridAlignCameraInfo.SetItem(&Item); |
| | | |
| | | Item.row = nRowIdx++; |
| | | Item.col = nColIdx; |
| | | strTemp.Format(_T("X Axis Direction")); //_T("카메라 X축 방향")); |
| | | strTemp.Format(_T("X Axis Direction")); //_T("� X�� ����")); |
| | | Item.strText = strTemp; |
| | | m_ctrlGridAlignCameraInfo.SetItem(&Item); |
| | | |
| | | Item.row = nRowIdx++; |
| | | Item.col = nColIdx; |
| | | strTemp.Format(_T("Y Axis Direction")); //_T("카메라 Y축 방향")); |
| | | strTemp.Format(_T("Y Axis Direction")); //_T("� Y�� ����")); |
| | | Item.strText = strTemp; |
| | | m_ctrlGridAlignCameraInfo.SetItem(&Item); |
| | | |
| | | ////////////////////////////////////////////////////////////////////////// |
| | | Item.row = nRowIdx++; |
| | | Item.col = nColIdx; |
| | | strTemp.Format(_T("Light Type")); //_T("조명 타입")); |
| | | strTemp.Format(_T("Light Type")); //_T("���� Ÿ��")); |
| | | Item.strText = strTemp; |
| | | m_ctrlGridAlignCameraInfo.SetItem(&Item); |
| | | |
| | | Item.row = nRowIdx++; |
| | | Item.col = nColIdx; |
| | | strTemp.Format(_T("Light Connection Port")); //_T("조명 포트")); |
| | | strTemp.Format(_T("Light Connection Port")); //_T("���� ��Ʈ")); |
| | | Item.strText = strTemp; |
| | | m_ctrlGridAlignCameraInfo.SetItem(&Item); |
| | | |
| | | Item.row = nRowIdx++; |
| | | Item.col = nColIdx; |
| | | strTemp.Format(_T("Light Master")); //_T("마스터 권한")); |
| | | strTemp.Format(_T("Light Master")); //_T("������ ����")); |
| | | Item.strText = strTemp; |
| | | m_ctrlGridAlignCameraInfo.SetItem(&Item); |
| | | |
| | | Item.row = nRowIdx++; |
| | | Item.col = nColIdx; |
| | | strTemp.Format(_T("Light Channel")); //_T("조명 채널")); |
| | | strTemp.Format(_T("Light Channel")); //_T("���� �")); |
| | | Item.strText = strTemp; |
| | | m_ctrlGridAlignCameraInfo.SetItem(&Item); |
| | | |
| | | Item.row = nRowIdx++; |
| | | Item.col = nColIdx; |
| | | strTemp.Format(_T("Light Default Level")); //_T("조명 기본값")); |
| | | strTemp.Format(_T("Light Default Level")); //_T("���� �⺻��")); |
| | | Item.strText = strTemp; |
| | | m_ctrlGridAlignCameraInfo.SetItem(&Item); |
| | | |
| | | Item.row = nRowIdx++; |
| | | Item.col = nColIdx; |
| | | strTemp.Format(_T("Camera ReverseX Mode")); //_T("� ������ ���")); |
| | | Item.strText = strTemp; |
| | | m_ctrlGridAlignCameraInfo.SetItem(&Item); |
| | | |
| | |
| | | m_ctrlGridAlignCameraInfo.SetColumnWidth(i + 1, nDataColumnWidth); |
| | | |
| | | ////////////////////////////////////////////////////////////////////////// |
| | | // 카메라 인덱스 |
| | | // ī�� �ε��� |
| | | nRowIdx = 0; |
| | | Item.mask = GVIF_TEXT; |
| | | Item.row = nRowIdx; |
| | |
| | | Item.strText = strTemp; |
| | | m_ctrlGridAlignCameraInfo.SetItem(&Item); |
| | | |
| | | // 기준 카메라 |
| | | // ���� � |
| | | nRowIdx++; |
| | | Item.strText = _T(""); |
| | | m_ctrlGridAlignCameraInfo.SetCellType(nRowIdx, nColIdx, RUNTIME_CLASS(CGridCellCheck)); |
| | | m_ctrlGridAlignCameraInfo.SetItemState(nRowIdx, nColIdx, m_ctrlGridAlignCameraInfo.GetItemState(nRowIdx, nColIdx) | GVIS_READONLY); |
| | | |
| | | // 카메라 라이브러리 |
| | | // ī�� ���̺귯�� |
| | | nRowIdx++; |
| | | strArrayOption.RemoveAll(); |
| | | for(j = 0; j < CameraLibrary_Count; j++) |
| | |
| | | pCellCombo->SetOptions(strArrayOption); |
| | | pCellCombo->SetStyle(CBS_DROPDOWN); |
| | | |
| | | // 카메라 플립 타입 |
| | | // ī�� �ø� Ÿ�� |
| | | nRowIdx++; |
| | | strArrayOption.RemoveAll(); |
| | | for(j = 0; j < CAMERA_FLIP_TYPE_COUNT; j++) |
| | |
| | | pCellCombo->SetOptions(strArrayOption); |
| | | pCellCombo->SetStyle(CBS_DROPDOWN); |
| | | |
| | | // 카메라 이름 |
| | | // ī�� �̸� |
| | | nRowIdx++; |
| | | // 카메라 연결 정보 |
| | | // � ���� ���� |
| | | nRowIdx++; |
| | | // 카메라 프레임 개수 |
| | | // � ������ ���� |
| | | nRowIdx++; |
| | | // 카메라 프레임 넓이 |
| | | // � ������ ���� |
| | | nRowIdx++; |
| | | // 카메라 프레임 높이 |
| | | // � ������ ���� |
| | | nRowIdx++; |
| | | // 이미지 버퍼 개수 |
| | | // �̹��� ���� ���� |
| | | nRowIdx++; |
| | | // 카메라 해상도 |
| | | // ī�� �ػ� |
| | | nRowIdx++; |
| | | // 카메라 컬러 채널 |
| | | // ī�� �÷� ä�� |
| | | nRowIdx++; |
| | | |
| | | //카메라 X축 방향 |
| | | //� X�� ���� |
| | | nRowIdx++; |
| | | strArrayOption.RemoveAll(); |
| | | for(j = 0; j < CAMERA_DIRECTION_COUNT; j++) |
| | |
| | | switch(j) |
| | | { |
| | | case CAMERA_DIRECTION_FORWARD: |
| | | strTemp.Format(_T("Nomal Direction"));//_T("정방향")); |
| | | strTemp.Format(_T("Nomal Direction"));//_T("������")); |
| | | break; |
| | | case CAMERA_DIRECTION_BACKWARD: |
| | | strTemp.Format(_T("Reverse Direction"));//_T("역방향")); |
| | | strTemp.Format(_T("Reverse Direction"));//_T("������")); |
| | | break; |
| | | default: |
| | | strTemp.Format(_T("")); |
| | |
| | | pCellCombo->SetOptions(strArrayOption); |
| | | pCellCombo->SetStyle(CBS_DROPDOWN); |
| | | |
| | | //카메라 Y축 방향 |
| | | //� Y�� ���� |
| | | nRowIdx++; |
| | | strArrayOption.RemoveAll(); |
| | | for(j = 0; j < CAMERA_DIRECTION_COUNT; j++) |
| | |
| | | switch(j) |
| | | { |
| | | case CAMERA_DIRECTION_FORWARD: |
| | | strTemp.Format(_T("Nomal Direction"));//_T("정방향")); |
| | | strTemp.Format(_T("Nomal Direction"));//_T("������")); |
| | | break; |
| | | case CAMERA_DIRECTION_BACKWARD: |
| | | strTemp.Format(_T("Reverse Direction"));//_T("역방향")); |
| | | strTemp.Format(_T("Reverse Direction"));//_T("������")); |
| | | break; |
| | | default: |
| | | strTemp.Format(_T("")); |
| | |
| | | pCellCombo->SetStyle(CBS_DROPDOWN); |
| | | |
| | | ////////////////////////////////////////////////////////////////////////// |
| | | //조명 타입 |
| | | //���� Ÿ�� |
| | | nRowIdx++; |
| | | strArrayOption.RemoveAll(); |
| | | for(j = 0; j < LightController_Count; j++) |
| | |
| | | CCameraControlInfo_Plus* pCameraControlInfo = pCameraInfo->GetCameraControlInfo(); |
| | | if(pCameraControlInfo == NULL) continue; |
| | | |
| | | // 기준 카메라 |
| | | // ���� � |
| | | pCellCheck = (CGridCellCheck*)m_ctrlGridAlignCameraInfo.GetCell(nRowIdx, nColIdx); |
| | | if(pCellCheck) |
| | | { |
| | | pCellCheck->SetCheck(pCameraControlInfo->GetStandardCamera()); |
| | | } |
| | | |
| | | // 카메라 라이브러리 |
| | | // ī�� ���̺귯�� |
| | | nRowIdx++; |
| | | pCellCombo = (CGridCellCombo*)m_ctrlGridAlignCameraInfo.GetCell(nRowIdx, nColIdx); |
| | | if(pCellCombo) |
| | |
| | | } |
| | | } |
| | | |
| | | // 카메라 플립 타입 |
| | | // ī�� �ø� Ÿ�� |
| | | nRowIdx++; |
| | | pCellCombo = (CGridCellCombo*)m_ctrlGridAlignCameraInfo.GetCell(nRowIdx, nColIdx); |
| | | if(pCellCombo) |
| | |
| | | } |
| | | } |
| | | |
| | | // 카메라 이름 |
| | | // ī�� �̸� |
| | | nRowIdx++; |
| | | m_ctrlGridAlignCameraInfo.SetItemText(nRowIdx, nColIdx, pCameraControlInfo->GetName()); |
| | | |
| | | // 카메라 연결 정보 |
| | | // � ���� ���� |
| | | nRowIdx++; |
| | | strItemText.Format(_T("%s"), pCameraControlInfo->GetConnectionPort()); |
| | | m_ctrlGridAlignCameraInfo.SetItemText(nRowIdx, nColIdx, strItemText); |
| | | |
| | | // 카메라 프레임 개수 |
| | | // � ������ ���� |
| | | nRowIdx++; |
| | | strItemText.Format(_T("%d"), pCameraControlInfo->GetFrameCount()); |
| | | m_ctrlGridAlignCameraInfo.SetItemText(nRowIdx, nColIdx, strItemText); |
| | | |
| | | // 카메라 프레임 넓이 |
| | | // � ������ ���� |
| | | nRowIdx++; |
| | | strItemText.Format(_T("%d"), pCameraControlInfo->GetFrameWidth()); |
| | | m_ctrlGridAlignCameraInfo.SetItemText(nRowIdx, nColIdx, strItemText); |
| | | |
| | | // 카메라 프레임 높이 |
| | | // � ������ ���� |
| | | nRowIdx++; |
| | | strItemText.Format(_T("%d"), pCameraControlInfo->GetFrameHeight()); |
| | | m_ctrlGridAlignCameraInfo.SetItemText(nRowIdx, nColIdx, strItemText); |
| | | |
| | | // 이미지 버퍼 개수 |
| | | // �̹��� ���� ���� |
| | | nRowIdx++; |
| | | strItemText.Format(_T("%d"), pCameraControlInfo->GetImageBufferCount()); |
| | | m_ctrlGridAlignCameraInfo.SetItemText(nRowIdx, nColIdx, strItemText); |
| | | |
| | | // 카메라 해상도 |
| | | // ī�� �ػ� |
| | | nRowIdx++; |
| | | strItemText.Format(_T("%.08lf"), pCameraControlInfo->GetPixelResolution()); |
| | | m_ctrlGridAlignCameraInfo.SetItemText(nRowIdx, nColIdx, strItemText); |
| | | |
| | | // 카메라 컬러 채널 |
| | | // ī�� �÷� ä�� |
| | | nRowIdx++; |
| | | strItemText.Format(_T("%d"), pCameraControlInfo->GetFrameChannels()); |
| | | m_ctrlGridAlignCameraInfo.SetItemText(nRowIdx, nColIdx, strItemText); |
| | | |
| | | // 카메라 X축 방향 |
| | | // � X�� ���� |
| | | nRowIdx++; |
| | | pCellCombo = (CGridCellCombo*)m_ctrlGridAlignCameraInfo.GetCell(nRowIdx, nColIdx); |
| | | |
| | |
| | | } |
| | | } |
| | | |
| | | // 카메라 Y축 방향 |
| | | // � Y�� ���� |
| | | nRowIdx++; |
| | | pCellCombo = (CGridCellCombo*)m_ctrlGridAlignCameraInfo.GetCell(nRowIdx, nColIdx); |
| | | |
| | |
| | | CLightControlInfo* pLightControlInfo = pCameraInfo->GetLightContorlInfo(); |
| | | if(pLightControlInfo == NULL) continue; |
| | | |
| | | // 조명 타입 |
| | | // ���� Ÿ�� |
| | | nRowIdx++; |
| | | pCellCombo = (CGridCellCombo*)m_ctrlGridAlignCameraInfo.GetCell(nRowIdx, nColIdx); |
| | | if(pCellCombo) |
| | |
| | | } |
| | | } |
| | | |
| | | // 조명 포트 |
| | | // ���� ��Ʈ |
| | | nRowIdx++; |
| | | m_ctrlGridAlignCameraInfo.SetItemText(nRowIdx, nColIdx, pLightControlInfo->GetConnectionPort()); |
| | | |
| | | // 마스터 권한 |
| | | // ������ ���� |
| | | nRowIdx++; |
| | | strItemText.Format(_T("%d"), pLightControlInfo->GetMaster()); |
| | | m_ctrlGridAlignCameraInfo.SetItemText(nRowIdx, nColIdx, strItemText); |
| | | |
| | | // 조명 채널 |
| | | // ���� � |
| | | nRowIdx++; |
| | | strItemText.Format(_T("%d"), pLightControlInfo->GetChannel()); |
| | | m_ctrlGridAlignCameraInfo.SetItemText(nRowIdx, nColIdx, strItemText); |
| | | |
| | | // 조명 기본값 |
| | | // ���� �⺻�� |
| | | nRowIdx++; |
| | | strItemText.Format(_T("%d"), pLightControlInfo->GetDefaultValue()); |
| | | m_ctrlGridAlignCameraInfo.SetItemText(nRowIdx, nColIdx, strItemText); |
| | | |
| | | // � ������ ��� |
| | | nRowIdx++; |
| | | strItemText.Format(_T("%d"), pCameraControlInfo->GetCameraReverseX()); |
| | | m_ctrlGridAlignCameraInfo.SetItemText(nRowIdx, nColIdx, strItemText); |
| | | |
| | | nColIdx++; |
| | | } |
| | | } |