Isis 3 Programmer Reference
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 }
int p_xTranslation
How far to translate in X.
bool p_resizeFirst
Do the resize before the translation?
void setTranslation(int x, int y)
Sets the translation amount in x and y.
int p_yTranslation
How far to translate in Y.
void setResize(int width, int height)
Sets the size the buffer should be resized to.
Namespace for ISIS/Bullet specific routines.
Definition: Apollo.h:31