469 |
#if DEBUG_COMBINE_INSTRUMENTS |
#if DEBUG_COMBINE_INSTRUMENTS |
470 |
printf("dst "); fflush(stdout); |
printf("dst "); fflush(stdout); |
471 |
#endif |
#endif |
472 |
fillDimValues(dstDimValues, dstDimCase, outRgn, true); |
fillDimValues(dstDimValues, dstDimCase, outRgn, false); |
473 |
gig::DimensionRegion* srcDimRgn = inRgn->GetDimensionRegionByValue(srcDimValues); |
gig::DimensionRegion* srcDimRgn = inRgn->GetDimensionRegionByValue(srcDimValues); |
474 |
gig::DimensionRegion* dstDimRgn = outRgn->GetDimensionRegionByValue(dstDimValues); |
gig::DimensionRegion* dstDimRgn = outRgn->GetDimensionRegionByValue(dstDimValues); |
475 |
#if DEBUG_COMBINE_INSTRUMENTS |
#if DEBUG_COMBINE_INSTRUMENTS |
505 |
printf("dst velocity value = %d\n", dstDimCase[gig::dimension_velocity]); |
printf("dst velocity value = %d\n", dstDimCase[gig::dimension_velocity]); |
506 |
printf("dst refilled "); fflush(stdout); |
printf("dst refilled "); fflush(stdout); |
507 |
#endif |
#endif |
508 |
fillDimValues(dstDimValues, dstDimCase, outRgn, true); |
fillDimValues(dstDimValues, dstDimCase, outRgn, false); |
509 |
dstDimRgn = outRgn->GetDimensionRegionByValue(dstDimValues); |
dstDimRgn = outRgn->GetDimensionRegionByValue(dstDimValues); |
510 |
#if DEBUG_COMBINE_INSTRUMENTS |
#if DEBUG_COMBINE_INSTRUMENTS |
511 |
printf("reselected dstDimRgn=%lx\n", (uint64_t)dstDimRgn); |
printf("reselected dstDimRgn=%lx\n", (uint64_t)dstDimRgn); |
660 |
iTotalZones += (def) ? def->zones : 1; |
iTotalZones += (def) ? def->zones : 1; |
661 |
} |
} |
662 |
#if DEBUG_COMBINE_INSTRUMENTS |
#if DEBUG_COMBINE_INSTRUMENTS |
663 |
printf("Required total zones: %d\n", iTotalZones); |
printf("Required total zones: %d, vertical regions: %d\n", iTotalZones, itGroup->second.size()); |
664 |
#endif |
#endif |
665 |
|
|
666 |
// create all required dimensions for this output region |
// create all required dimensions for this output region |
722 |
#if DEBUG_COMBINE_INSTRUMENTS |
#if DEBUG_COMBINE_INSTRUMENTS |
723 |
std::cout << "OK" << std::endl << std::flush; |
std::cout << "OK" << std::endl << std::flush; |
724 |
#endif |
#endif |
725 |
|
} else { |
726 |
|
dims.erase(mainDimension); |
727 |
} |
} |
728 |
|
|
729 |
// for the next task we need to have the current RegionGroup to be |
// for the next task we need to have the current RegionGroup to be |
811 |
m_descriptionLabel(), m_tableDimCombo(2, 2), m_comboDimType(), |
m_descriptionLabel(), m_tableDimCombo(2, 2), m_comboDimType(), |
812 |
m_labelDimType(Glib::ustring(_("Combine by Dimension:")) + " ", Gtk::ALIGN_END) |
m_labelDimType(Glib::ustring(_("Combine by Dimension:")) + " ", Gtk::ALIGN_END) |
813 |
{ |
{ |
814 |
|
m_scrolledWindow.add(m_treeView); |
815 |
|
m_scrolledWindow.set_policy(Gtk::POLICY_AUTOMATIC, Gtk::POLICY_AUTOMATIC); |
816 |
|
|
817 |
get_vbox()->pack_start(m_descriptionLabel, Gtk::PACK_SHRINK); |
get_vbox()->pack_start(m_descriptionLabel, Gtk::PACK_SHRINK); |
818 |
get_vbox()->pack_start(m_tableDimCombo, Gtk::PACK_SHRINK); |
get_vbox()->pack_start(m_tableDimCombo, Gtk::PACK_SHRINK); |
819 |
get_vbox()->pack_start(m_treeView); |
get_vbox()->pack_start(m_scrolledWindow); |
820 |
get_vbox()->pack_start(m_buttonBox, Gtk::PACK_SHRINK); |
get_vbox()->pack_start(m_buttonBox, Gtk::PACK_SHRINK); |
821 |
|
|
822 |
#if GTKMM_MAJOR_VERSION >= 3 |
#if GTKMM_MAJOR_VERSION >= 3 |