- Timestamp:
- 07/02/19 11:42:27 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/dev/dev_trunk_omp/src/filter/spatial_transform_filter.hpp
r1677 r1679 3 3 4 4 #include "filter.hpp" 5 #include "field.hpp" 5 6 6 7 namespace xios … … 9 10 class CGridTransformation; 10 11 class CSpatialTransformFilterEngine; 12 13 class CField; 11 14 12 15 /*! … … 23 26 * \param outputValue default value of output pin 24 27 * \param [in] inputSlotsCount number of input, by default there is only one for field src 25 * \param buildWorkflowGraph indicates whether data will be visualized26 28 */ 27 29 CSpatialTransformFilter(CGarbageCollector& gc, CSpatialTransformFilterEngine* engine, 28 double outputValue, size_t inputSlotsCount = 1 , bool buildWorkflowGraph = false);30 double outputValue, size_t inputSlotsCount = 1); 29 31 30 32 inline StdString GetName(void) {return StdString("Spatial transform filter");}; … … 38 40 * \param hasMissingValue whether field source has missing value 39 41 * \param defaultValue default value 40 * \param buildWorkflowGraph indicates whether data will be visualized41 42 * \return the first and the last filters of the filter graph 42 43 */ 43 44 static std::pair<std::shared_ptr<CSpatialTransformFilter>, std::shared_ptr<CSpatialTransformFilter> > 44 buildFilterGraph(CGarbageCollector& gc, CGrid* srcGrid, CGrid* destGrid, bool hasMissingValue, double defaultValue , bool buildWorkflowGraph = false);45 buildFilterGraph(CGarbageCollector& gc, CGrid* srcGrid, CGrid* destGrid, bool hasMissingValue, double defaultValue); 45 46 46 47 protected: … … 72 73 * \param outputValue default value of output pin 73 74 * \param [in] inputSlotsCount number of input, by default there is only one for field src 74 * \param buildWorkflowGraph indicates whether data will be visualized75 75 * 76 76 */ 77 77 CSpatialTemporalFilter(CGarbageCollector& gc, CSpatialTransformFilterEngine* engine, CGridTransformation* gridTransformation, 78 double outputValue, size_t inputSlotsCount = 1 , bool buildWorkflowGraph = false);78 double outputValue, size_t inputSlotsCount = 1); 79 79 80 80 … … 104 104 int filterID; 105 105 int tag; 106 CField *field; 106 107 /*! 107 108 * Returns the engine wrapping the specified grid transformation. … … 120 121 * \return the result of the grid transformation 121 122 */ 122 CDataPacketPtr applyFilter(std::vector<CDataPacketPtr> data, double defaultValue = 0, int tag=0, StdString fieldID=0);123 CDataPacketPtr applyFilter(std::vector<CDataPacketPtr> data, double defaultValue = 0, int tag=0, Time start_graph=0, Time end_graph=-1, CField *field=0); 123 124 124 125 /*! … … 147 148 * \param dataDest the resulting transformed data 148 149 */ 149 void apply(const CArray<double, 1>& dataSrc, CArray<double,1>& dataDest );150 void apply(const CArray<double, 1>& dataSrc, CArray<double,1>& dataDest, int filterID=-1); 150 151 151 152 CGridTransformation* gridTransformation; //!< The grid transformation used by the engine
Note: See TracChangeset
for help on using the changeset viewer.