USGS

Isis 3.0 Developer's Reference (API)

Home

ViewportBufferTransform.h

Go to the documentation of this file.
00001 
00002 #ifndef ViewportBufferTransform_h
00003 #define ViewportBufferTransform_h
00004 
00005 #include "ViewportBufferAction.h"
00006 
00007 
00008 namespace Isis {
00014   class ViewportBufferTransform : public ViewportBufferAction {
00015     public:
00016       ViewportBufferTransform();
00017 
00019       virtual ActionType getActionType() {
00020         return transform;
00021       }
00022       void setTranslation(int x, int y);
00023 
00024 
00030       int getXTranslation() {
00031         return p_xTranslation;
00032       }
00033 
00034 
00040       int getYTranslation() {
00041         return p_yTranslation;
00042       }
00043 
00044       void setResize(int width, int height);
00045 
00051       const int &getBufferWidth() {
00052         return p_newBufferWidth;
00053       }
00054 
00060       const int &getBufferHeight() {
00061         return p_newBufferHeight;
00062       }
00063 
00070       bool resizeFirst() {
00071         return p_resizeFirst;
00072       }
00073 
00079       void resizeFirst(bool resizeFirst) {
00080         p_resizeFirst = resizeFirst;
00081       }
00082 
00083 
00084     private:
00085       int p_xTranslation; 
00086       int p_yTranslation; 
00087       int p_newBufferWidth; 
00088       int p_newBufferHeight; 
00089       bool p_resizeFirst; 
00090   };
00091 }
00092 #endif