source: XIOS/trunk/src/filter/axis_algorithm_zoom.hpp @ 623

Last change on this file since 623 was 623, checked in by mhnguyen, 9 years ago

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 size: 669 bytes
Line 
1#ifndef __XIOS_AXIS_ALGORITHM_ZOOM_HPP__
2#define __XIOS_AXIS_ALGORITHM_ZOOM_HPP__
3
4#include "axis_algorithm_transformation.hpp"
5#include "axis.hpp"
6#include "zoom_axis.hpp"
7
8namespace xios {
9
10class CAxisAlgorithmZoom : public CAxisAlgorithmTransformation
11{
12public:
13  CAxisAlgorithmZoom(CAxis* axisDestination, CAxis* axisSource, CZoomAxis* zoomAxis);
14
15  virtual ~CAxisAlgorithmZoom() {}
16
17  virtual void computeIndexSourceMapping();
18
19private:
20  void updateAxisDestinationMask();
21  void updateZoom();
22private:
23  StdSize zoomBegin_;
24  StdSize zoomEnd_;
25  StdSize zoomSize_;
26
27private:
28  CAxis* axisDest_;
29  CAxis* axisSrc_;
30};
31
32}
33#endif // __XIOS_AXIS_ALGORITHM_ZOOM_HPP__
Note: See TracBrowser for help on using the repository browser.