USGS

Isis 3.0 Object Programmers' Reference

Home

Enlarge.h
Go to the documentation of this file.
1 #ifndef _Enlarge_h_
2 #define _Enlarge_h_
3 
24 #include "Transform.h"
25 
26 namespace Isis {
27  class Cube;
28  class PvlGroup;
48  class Enlarge : public Transform {
49  public:
50  // Constructor
51  Enlarge(Cube *pInCube, const double sampleScale, const double lineScale);
52 
53  // Set the sub area of input image to enlarge
54  void SetInputArea(double pdStartSample, double pdEndSample,
55  double pdStartLine, double pdEndLine);
56 
58  ~Enlarge() {};
59 
60  // Implementations for parent's pure virtual members
61  // Convert the requested output samp/line to an input samp/line
62  bool Xform(double &inSample, double &inLine,
63  const double outSample, const double outLine);
64 
65  // Create label for the enlarged output image
66  PvlGroup UpdateOutputLabel(Cube *pOutCube);
67 
72  int OutputSamples() const {
73  return miOutputSamples;
74  }
75 
80  int OutputLines() const {
81  return miOutputLines;
82  }
83 
84  private:
88  double mdSampleScale;
89  double mdLineScale;
90  double mdStartSample;
91  double mdEndSample;
92  double mdStartLine;
93  double mdEndLine;
94  };
95 };
96 
97 #endif
98