- Timestamp:
- 07/31/19 13:51:01 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/dev/dev_olga/src/filter/spatial_transform_filter.hpp
r1653 r1686 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 *76 75 */ 77 CSpatialTemporalFilter(CGarbageCollector& gc, CSpatialTransformFilterEngine* engine, CGridTransformation* gridTransformation, 78 double outputValue, size_t inputSlotsCount = 1, bool buildWorkflowGraph = false); 76 CSpatialTemporalFilter(CGarbageCollector& gc, CSpatialTransformFilterEngine* engine, CGridTransformation* gridTransformation, double outputValue, size_t inputSlotsCount = 1); 79 77 80 78 … … 101 99 { 102 100 public: 101 102 int filterID; 103 int tag; 104 CField *field; 103 105 /*! 104 106 * Returns the engine wrapping the specified grid transformation. … … 117 119 * \return the result of the grid transformation 118 120 */ 119 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); 120 123 121 124 /*! … … 144 147 * \param dataDest the resulting transformed data 145 148 */ 146 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); 147 150 148 151 CGridTransformation* gridTransformation; //!< The grid transformation used by the engine
Note: See TracChangeset
for help on using the changeset viewer.