Ignore:
Timestamp:
06/22/15 13:36:31 (9 years ago)
Author:
mhnguyen
Message:

Implementing transformation algorithm: zoom axis (local commit)

+) Implement zoom axis: zoomed points are points not masked
+) Correct some minor bugs

Test
+) Ok with normal cases: zoom in the last of transformation list
+) There is still a bug in case of zoom then inverse

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS/trunk/src/node/grid.cpp

    r622 r623  
    298298      } 
    299299   } 
     300 
     301   void CGrid::modifyMask(const CArray<int,1>& indexToModify) 
     302   { 
     303      using namespace std; 
     304      std::vector<CDomain*> domainP = this->getDomains(); 
     305      std::vector<CAxis*> axisP = this->getAxis(); 
     306      int dim = domainP.size() * 2 + axisP.size(); 
     307 
     308      switch (dim) { 
     309        case 1: 
     310          modifyGridMask(mask1, indexToModify); 
     311          break; 
     312        case 2: 
     313          modifyGridMask(mask2, indexToModify); 
     314          break; 
     315        case 3: 
     316          modifyGridMask(mask3, indexToModify); 
     317          break; 
     318 
     319        default: 
     320          break; 
     321      } 
     322   } 
     323 
    300324   //--------------------------------------------------------------- 
    301325 
     
    850874            nZoomBegin[indexMap[i]] = axisList[axisId]->zoom_begin_srv; 
    851875            nZoomSize[indexMap[i]]  = axisList[axisId]->zoom_size_srv; 
    852             nZoomBeginGlobal[indexMap[i]] = axisList[axisId]->zoom_begin; 
     876            nZoomBeginGlobal[indexMap[i]] = axisList[axisId]->global_zoom_begin; 
    853877            nGlob[indexMap[i]] = axisList[axisId]->size; 
    854878            ++axisId; 
     
    11581182    transformations_ = new CGridTransformation(transformedGrid, this); 
    11591183    transformations_->computeAll(); 
     1184 
     1185    // Ok, now need to compute index of grid source 
     1186    checkMaskIndex(false); 
    11601187  } 
    11611188 
Note: See TracChangeset for help on using the changeset viewer.