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 moved

Legend:

Unmodified
Added
Removed
  • XIOS/trunk/src/filter/axis_algorithm_inverse.cpp

    r622 r623  
    1 #include "axis_inverse.hpp" 
     1#include "axis_algorithm_inverse.hpp" 
    22 
    33namespace xios { 
    44 
    5 CAxisInverse::CAxisInverse(CAxis* axisDestination, CAxis* axisSource) 
     5CAxisAlgorithmInverse::CAxisAlgorithmInverse(CAxis* axisDestination, CAxis* axisSource) 
    66 : CAxisAlgorithmTransformation(axisDestination, axisSource) 
    77{ 
    88  if (axisDestination->size.getValue() != axisSource->size.getValue()) 
    99  { 
    10     ERROR("CAxisInverse::CAxisInverse(CAxis* axisDestination, CAxis* axisSource)", 
     10    ERROR("CAxisAlgorithmInverse::CAxisAlgorithmInverse(CAxis* axisDestination, CAxis* axisSource)", 
    1111           << "Two axis have different size" 
    1212           << "Size of axis source " <<axisSource->getId() << " is " << axisSource->size.getValue()  << std::endl 
     
    1919  int ibeginDest = axisDestination->ibegin.getValue(); 
    2020 
    21   for (int idx = 0; idx < niDest; ++idx) axisDestGlobalIndex_.push_back(ibeginDest+idx); 
     21  for (int idx = 0; idx < niDest; ++idx) 
     22    if ((axisDestination->mask)(idx)) axisDestGlobalIndex_.push_back(ibeginDest+idx); 
    2223  this->computeIndexSourceMapping(); 
    2324} 
    2425 
    25 void CAxisInverse::computeIndexSourceMapping() 
     26void CAxisAlgorithmInverse::computeIndexSourceMapping() 
    2627{ 
    2728  std::map<int, std::vector<int> >& transMap = this->transformationMapping_; 
Note: See TracChangeset for help on using the changeset viewer.