USGS

Isis 3.0 Developer's Reference (API)

Home

Enlarge.h

Go to the documentation of this file.
00001 #ifndef _Enlarge_h_
00002 #define _Enlarge_h_
00003 
00024 #include "Transform.h"
00025 
00026 namespace Isis {
00027   class Cube;
00028   class PvlGroup;
00048   class Enlarge : public Transform {
00049     public:
00050       // Constructor
00051       Enlarge(Cube *pInCube, const double sampleScale, const double lineScale);
00052     
00053       // Set the sub area of input image to enlarge
00054       void SetInputArea(double pdStartSample, double pdEndSample, 
00055                         double pdStartLine, double pdEndLine);
00056 
00058       ~Enlarge() {};
00059 
00060       // Implementations for parent's pure virtual members
00061       // Convert the requested output samp/line to an input samp/line
00062       bool Xform(double &inSample, double &inLine,
00063                  const double outSample, const double outLine);
00064       
00065       // Create label for the enlarged output image
00066       PvlGroup  UpdateOutputLabel(Cube *pOutCube);
00067 
00072       int OutputSamples() const {
00073         return miOutputSamples;
00074       }
00075 
00080       int OutputLines() const {
00081         return miOutputLines;
00082       }
00083     
00084       private:
00085         Cube *mInCube;        
00086         int miOutputSamples;  
00087         int miOutputLines;    
00088         double mdSampleScale; 
00089         double mdLineScale;   
00090         double mdStartSample; 
00091         double mdEndSample;   
00092         double mdStartLine;   
00093         double mdEndLine;     
00094   };
00095 };
00096 
00097 #endif
00098