Statistics
| Revision:

svn-gvsig-desktop / trunk / libraries / libjni-mrsid / include / filters / lti_translationFilter.h @ 3539

History | View | Annotate | Download (2.39 KB)

1
/* $Id: lti_translationFilter.h 3539 2006-01-09 12:23:20Z nacho $ */
2
/* //////////////////////////////////////////////////////////////////////////
3
//                                                                         //
4
// This code is Copyright (c) 2004 LizardTech, Inc, 1008 Western Avenue,   //
5
// Suite 200, Seattle, WA 98104.  Unauthorized use or distribution         //
6
// prohibited.  Access to and use of this code is permitted only under     //
7
// license from LizardTech, Inc.  Portions of the code are protected by    //
8
// US and foreign patents and other filings. All Rights Reserved.          //
9
//                                                                         //
10
////////////////////////////////////////////////////////////////////////// */
11
/* PUBLIC */
12

    
13
#ifndef LTI_TRANSLATIONFILTER_H
14
#define LTI_TRANSLATIONFILTER_H
15

    
16
// lt_lib_mrsid_core
17
#include "lti_imageFilter.h"
18
#include "lti_geoCoord.h"
19

    
20
LT_BEGIN_NAMESPACE(LizardTech)
21

    
22
#if defined(LT_COMPILER_MS)
23
   #pragma warning(push,4)
24
#endif
25

    
26

    
27
/**
28
 * translates (moves) the geo coordinates of the image
29
 *
30
 * This class translates (moves) the geo coordinates of the image.
31
 */
32
class LTITranslationFilter : public LTIImageFilter
33
{
34
public:
35
   /**
36
    * constructor
37
    *
38
    * This class shifts the geographic coordinates of the image by the given
39
    * amount.
40
    *
41
    * @param  sourceImage   the base image
42
    * @param  xOffset       amount to shift in the X direction
43
    * @param  yOffset       amount to shift in the Y direction
44
    * @param takeOwnership  set to true to have the filter delete the \a sourceImage
45
    */
46
   LTITranslationFilter(LTIImageStage* sourceImage,
47
                        double xOffset,
48
                        double yOffset,
49
                        bool takeOwnership);
50

    
51
   LTITranslationFilter(LTIImageStage* sourceImage,
52
                        const LTIGeoCoord &geoCoord,
53
                        bool takeOwnership);
54

    
55
   virtual ~LTITranslationFilter();
56
   virtual LT_STATUS initialize();
57

    
58
protected:
59
   LT_STATUS decodeBegin(const LTIScene& scene);
60
   LT_STATUS decodeEnd();
61
   LT_STATUS decodeStrip(LTISceneBuffer& stripBuffer, const LTIScene& stripScene);
62

    
63
private:
64
   typedef LTIImageFilter Super;
65

    
66
   LTIGeoCoord m_newGeoCoord;
67

    
68
   // nope
69
   LTITranslationFilter(const LTITranslationFilter&);
70
   LTITranslationFilter& operator=(const LTITranslationFilter&);
71
};
72

    
73

    
74
LT_END_NAMESPACE(LizardTech)
75

    
76
#if defined(LT_COMPILER_MS)
77
        #pragma warning(pop)
78
#endif
79

    
80
#endif // LTI_TRANSLATIONFILTER_H