USGS

Isis 3.0 Object Programmers' Reference

Home

ViewportBufferTransform.cpp
1 
2 #include "ViewportBufferTransform.h"
3 
4 #include <QRect>
5 
6 namespace Isis {
11  p_xTranslation = 0;
12  p_yTranslation = 0;
13  p_newBufferWidth = -1;
14  p_newBufferHeight = -1;
15  p_resizeFirst = false;
16  }
17 
25  p_xTranslation = x;
26  p_yTranslation = y;
27  }
28 
29 
36  void ViewportBufferTransform::setResize(int width, int height) {
37  p_newBufferWidth = width;
38  p_newBufferHeight = height;
39  }
40 }