Isis 3.0 Object Programmers' Reference
Home
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
ViewportBufferTransform.cpp
1
2
#include "ViewportBufferTransform.h"
3
4
#include <QRect>
5
6
namespace
Isis {
10
ViewportBufferTransform::ViewportBufferTransform
() {
11
p_xTranslation
= 0;
12
p_yTranslation
= 0;
13
p_newBufferWidth
= -1;
14
p_newBufferHeight
= -1;
15
p_resizeFirst
=
false
;
16
}
17
24
void
ViewportBufferTransform::setTranslation
(
int
x,
int
y) {
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
}