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

Implementing generic transformation algorithm (local commit)

+) Change a little bit to make sure everything work in order

Test
+) test_new_features passe with inverse

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS/trunk/src/node/axis.hpp

    r620 r621  
    1616#include "transformation.hpp" 
    1717#include "transformation_enum.hpp" 
     18#include "inverse_axis.hpp" 
     19#include "zoom_axis.hpp" 
    1820 
    1921namespace xios { 
     
    2325   class CAxisAttributes; 
    2426   class CAxis; 
    25    class CTransformationGroup; 
    26    class CVirtualTransformationGroup; 
    2727 
    28    DECLARE_VIRTUAL_NODE(TransformationGroup); 
    2928   ///-------------------------------------------------------------- 
    3029 
     
    3938      : public CObjectTemplate<CAxis> 
    4039      , public CAxisAttributes 
    41       , public CVirtualTransformationGroup 
    4240   { 
    4341         enum EEventId 
     
    5452         typedef CAxisAttributes RelAttributes; 
    5553         typedef CAxisGroup      RelGroup; 
     54         typedef CTransformation<CAxis>::TransformationMapTypes TransMapTypes; 
    5655 
     56      public: 
    5757         /// Constructeurs /// 
    5858         CAxis(void); 
     
    9696         bool hasTransformation(); 
    9797         void solveInheritanceTransformation(); 
    98          std::vector<CTransformation*> getAllTransformations(); 
     98         TransMapTypes getAllTransformations(); 
    9999 
    100100      public: 
     
    106106         void checkMask(); 
    107107         void checkZoom(); 
     108         void checkTransformations(); 
     109         void computeServerIndex(const std::vector<int>& globalDim, int orderPositionInGrid, 
     110                                 CServerDistributionDescription::ServerDistributionType disType); 
    108111 
    109112 
    110  
    111          void setTransformations(const std::vector<CTransformation*>&); 
     113         void setTransformations(const TransMapTypes&); 
    112114      private: 
    113115         bool isChecked; 
    114116         bool areClientAttributesChecked_; 
    115117         std::set<StdString> relFiles; 
    116          std::vector<CTransformation*> transformations_; 
     118         TransMapTypes transformationMap_; 
    117119         bool isDistributed_; 
    118120 
Note: See TracChangeset for help on using the changeset viewer.