void CGridRFULimits::_GetRFUColumn(CLabRFU *pRFU, int nCol) { pRFU->SetMinRFU(_GetCellIntValue(ROW_RFU_MIN, nCol)); pRFU->SetMinRFUinterlocus(_GetCellIntValue(ROW_RFU_INTERLOCUS,nCol)); pRFU->SetMaxRFU(_GetCellIntValue(ROW_RFU_MAX,nCol)); pRFU->SetMinDetection(_GetCellIntValue(ROW_DETECTION,nCol)); }
bool CGridRFULimits::TransferDataFromWindow() { bool bRtn = (m_pData != NULL); if(bRtn) { CLabRFU *pRFU; for(int nCol = 0; nCol < COL_COUNT; ++nCol) { pRFU = m_apRFU[nCol]; pRFU->SetMinRFU( _GetCellIntValue(ROW_RFU_MIN, nCol)); pRFU->SetMinRFUinterlocus( _GetCellIntValue(ROW_RFU_INTERLOCUS,nCol)); pRFU->SetMaxRFU(_GetCellIntValue(ROW_RFU_MAX,nCol)); pRFU->SetMinDetection(_GetCellIntValue(ROW_DETECTION,nCol)); } } return bRtn; }
bool CGridRFULimits::TransferDataFromWindow() { bool bRtn = (m_pData != NULL); if(bRtn) { _GetRFUColumn(m_pData->GetRFUsample(),m_nCOL_SAMPLE); _GetRFUColumn(m_pData->GetRFUladder(),m_nCOL_LADDER); _GetRFUColumn(m_pData->GetRFUls(),m_nCOL_ILS); CLabSampleChannelThresholdSet *pChannelSet = m_pData->GetChannelThresholds(); int nCol = m_nCOL_CHANNEL_START; ChannelNumberIterator ndx; CLabSampleChannelThreshold xCh; pChannelSet->Clear(); for (nCol = m_nCOL_CHANNEL_START, ndx = m_vnChannelNumbers.begin(); (nCol < m_nCOL_AFTER_CHANNEL) && (ndx != m_vnChannelNumbers.end()); ++nCol, ++ndx) { xCh.SetChannel(*ndx); xCh.SetMin(_GetCellIntValue(ROW_RFU_MIN,nCol)); xCh.SetDetection(_GetCellIntValue(ROW_DETECTION,nCol)); if(!xCh.Skip()) { pChannelSet->Insert(xCh); } } if( (nCol != m_nCOL_AFTER_CHANNEL) || (ndx != m_vnChannelNumbers.end()) ) { wxString s; int nColCount = m_nCOL_AFTER_CHANNEL - m_nCOL_CHANNEL_START; int nChannelCount = (int)m_vnChannelNumbers.size(); s.Printf("Number of channels, %d, does not match number of channel columns, %d",nChannelCount,nColCount); wxASSERT_MSG(0,s); mainApp::LogMessage(s); } } return bRtn; }