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