Ignore:
Timestamp:
09/11/19 10:22:09 (5 years ago)
Author:
yushan
Message:

Introducing the new graph functionality. Attribute build_workflow_graph=.TRUE. is used in the field definition section in the xml file to enable the workflow graph of the field and other fields referecing to it. A more detailed document will be available soon on the graph fuctionality.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS/trunk/src/filter/spatial_transform_filter.hpp

    r1542 r1704  
    33 
    44#include "filter.hpp" 
     5#include "field.hpp" 
    56 
    67namespace xios 
     
    910  class CGridTransformation; 
    1011  class CSpatialTransformFilterEngine; 
     12 
     13  class CField; 
    1114 
    1215  /*! 
     
    2427       * \param [in] inputSlotsCount number of input, by default there is only one for field src 
    2528       */ 
    26       CSpatialTransformFilter(CGarbageCollector& gc, CSpatialTransformFilterEngine* engine, double outputValue, size_t inputSlotsCount = 1); 
     29      CSpatialTransformFilter(CGarbageCollector& gc, CSpatialTransformFilterEngine* engine, 
     30                              double outputValue, size_t inputSlotsCount = 1); 
     31 
     32      inline StdString GetName(void) {return StdString("Spatial transform filter");}; 
    2733 
    2834      /*! 
     
    9399  { 
    94100    public: 
     101 
     102      int filterID; 
     103      int tag; 
     104      CField *field; 
    95105      /*! 
    96106       * Returns the engine wrapping the specified grid transformation. 
     
    109119       * \return the result of the grid transformation 
    110120       */ 
    111       CDataPacketPtr applyFilter(std::vector<CDataPacketPtr> data, double defaultValue = 0); 
     121      CDataPacketPtr applyFilter(std::vector<CDataPacketPtr> data, double defaultValue = 0, int tag=0, Time start_graph=0, Time end_graph=-1, CField *field=0); 
     122      bool buildGraph(std::vector<CDataPacketPtr> data, int tag=0, Time start_graph=0, Time end_graph=-1, CField *field=0); 
    112123 
    113124       /*! 
     
    136147       * \param dataDest the resulting transformed data 
    137148       */ 
    138       void apply(const CArray<double, 1>& dataSrc, CArray<double,1>& dataDest); 
     149      void apply(const CArray<double, 1>& dataSrc, CArray<double,1>& dataDest, int filterID=-1); 
    139150 
    140151      CGridTransformation* gridTransformation; //!< The grid transformation used by the engine 
Note: See TracChangeset for help on using the changeset viewer.