Beispiel #1
0
/** Get non-collapsed dimensions
@return vector of collapsed dimensions in the workspace geometry.
*/
Mantid::Geometry::VecIMDDimension_const_sptr
MDGeometry::getNonIntegratedDimensions() const {
  using namespace Mantid::Geometry;
  VecIMDDimension_const_sptr vecCollapsedDimensions;
  for (const auto &current : this->m_dimensions) {
    if (!current->getIsIntegrated()) {
      vecCollapsedDimensions.push_back(current);
    }
  }
  return vecCollapsedDimensions;
}
Beispiel #2
0
 /** Get non-collapsed dimensions
 @return vector of collapsed dimensions in the workspace geometry.
 */
 Mantid::Geometry::VecIMDDimension_const_sptr MDGeometry::getNonIntegratedDimensions() const
 {
   using namespace Mantid::Geometry;
   VecIMDDimension_const_sptr vecCollapsedDimensions;
   std::vector<Mantid::Geometry::IMDDimension_sptr>::const_iterator it = this->m_dimensions.begin();
   for(; it != this->m_dimensions.end(); ++it)
   {
     IMDDimension_sptr current = (*it);
     if(!current->getIsIntegrated())
     {
       vecCollapsedDimensions.push_back(current);
     }
   }
   return vecCollapsedDimensions;
 }