void AreaCombat::setupExtArea(const std::list<uint32_t>& list, uint32_t rows) { if (list.empty()) { return; } hasExtArea = true; MatrixArea* area = createArea(list, rows); //NORTH-WEST areas[NORTHWEST] = area; uint32_t maxOutput = std::max<uint32_t>(area->getCols(), area->getRows()) * 2; //NORTH-EAST MatrixArea* neArea = new MatrixArea(maxOutput, maxOutput); copyArea(area, neArea, MATRIXOPERATION_MIRROR); areas[NORTHEAST] = neArea; //SOUTH-WEST MatrixArea* swArea = new MatrixArea(maxOutput, maxOutput); copyArea(area, swArea, MATRIXOPERATION_FLIP); areas[SOUTHWEST] = swArea; //SOUTH-EAST MatrixArea* seArea = new MatrixArea(maxOutput, maxOutput); copyArea(swArea, seArea, MATRIXOPERATION_MIRROR); areas[SOUTHEAST] = seArea; }
XMLElem ComplexXMLParser10x::convertRadarCollectionToXML( const RadarCollection *radar, XMLElem parent) const { XMLElem radarXML = newElement("RadarCollection", parent); createTxFrequency(radar, radarXML); if (!Init::isUndefined<int>(radar->refFrequencyIndex)) { createInt("RefFreqIndex", radar->refFrequencyIndex, radarXML); } // SICD v1.0 removes PolarizationHVAnglePoly createWaveform(radar, radarXML); //! required in 1.0 createString("TxPolarization", six::toString(radar->txPolarization), radarXML); createTxSequence(radar, radarXML); createRcvChannels(radar, radarXML); createArea(radar, radarXML); common().addParameters("Parameter", radar->parameters, radarXML); return radarXML; }
void CombatArea::setupExtArea(const std::list<uint32_t>& list, uint32_t rows) { if(list.empty()) return; //NORTH-WEST MatrixArea* area = createArea(list, rows); areas[Direction::NORTH_WEST] = area; uint32_t maxOutput = std::max(area->getCols(), area->getRows()) * 2; //NORTH-EAST MatrixArea* neArea = new MatrixArea(maxOutput, maxOutput); copyArea(area, neArea, MATRIXOPERATION_MIRROR); areas[Direction::NORTH_EAST] = neArea; //SOUTH-WEST MatrixArea* swArea = new MatrixArea(maxOutput, maxOutput); copyArea(area, swArea, MATRIXOPERATION_FLIP); areas[Direction::SOUTH_WEST] = swArea; //SOUTH-EAST MatrixArea* seArea = new MatrixArea(maxOutput, maxOutput); copyArea(swArea, seArea, MATRIXOPERATION_MIRROR); areas[Direction::SOUTH_EAST] = seArea; hasExtArea = true; }
void AreaCombat::setupArea(const std::list<uint32_t>& list, const uint32_t& rows) { MatrixArea* area = createArea(list, rows); //NORTH areas[NORTH] = area; uint32_t maxOutput = std::max(area->getCols(), area->getRows()) * 2; //SOUTH MatrixArea* southArea = new MatrixArea(maxOutput, maxOutput); copyArea(area, southArea, MATRIXOPERATION_ROTATE180); areas[SOUTH] = southArea; //EAST MatrixArea* eastArea = new MatrixArea(maxOutput, maxOutput); copyArea(area, eastArea, MATRIXOPERATION_ROTATE90); areas[EAST] = eastArea; //WEST MatrixArea* westArea = new MatrixArea(maxOutput, maxOutput); copyArea(area, westArea, MATRIXOPERATION_ROTATE270); areas[WEST] = westArea; }
void Module::loadArea() { _area = createArea(); _area->load(_ifo.getEntryArea()); }