Isis 3 Programmer Reference
ViewportBufferTransform.cpp
1 
7 /* SPDX-License-Identifier: CC0-1.0 */
8 
9 
10 #include "ViewportBufferTransform.h"
11 
12 #include <QRect>
13 
14 namespace Isis {
19  p_xTranslation = 0;
20  p_yTranslation = 0;
21  p_newBufferWidth = -1;
22  p_newBufferHeight = -1;
23  p_resizeFirst = false;
24  }
25 
33  p_xTranslation = x;
34  p_yTranslation = y;
35  }
36 
37 
44  void ViewportBufferTransform::setResize(int width, int height) {
45  p_newBufferWidth = width;
46  p_newBufferHeight = height;
47  }
48 }
Isis::ViewportBufferTransform::ViewportBufferTransform
ViewportBufferTransform()
Constructor.
Definition: ViewportBufferTransform.cpp:18
Isis::ViewportBufferTransform::p_newBufferWidth
int p_newBufferWidth
New width.
Definition: ViewportBufferTransform.h:94
Isis::ViewportBufferTransform::p_xTranslation
int p_xTranslation
How far to translate in X.
Definition: ViewportBufferTransform.h:92
Isis::ViewportBufferTransform::p_resizeFirst
bool p_resizeFirst
Do the resize before the translation?
Definition: ViewportBufferTransform.h:96
Isis::ViewportBufferTransform::p_yTranslation
int p_yTranslation
How far to translate in Y.
Definition: ViewportBufferTransform.h:93
Isis::ViewportBufferTransform::setTranslation
void setTranslation(int x, int y)
Sets the translation amount in x and y.
Definition: ViewportBufferTransform.cpp:32
Isis::ViewportBufferTransform::p_newBufferHeight
int p_newBufferHeight
New height.
Definition: ViewportBufferTransform.h:95
Isis::ViewportBufferTransform::setResize
void setResize(int width, int height)
Sets the size the buffer should be resized to.
Definition: ViewportBufferTransform.cpp:44
Isis
This is free and unencumbered software released into the public domain.
Definition: Apollo.h:16