Isis 3.0 Programmer Reference
Back
|
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
}
Isis::ViewportBufferTransform::ViewportBufferTransform
ViewportBufferTransform()
Constructor.
Definition:
ViewportBufferTransform.cpp:10
Isis::ViewportBufferTransform::p_xTranslation
int p_xTranslation
How far to translate in X.
Definition:
ViewportBufferTransform.h:85
Isis::ViewportBufferTransform::p_newBufferWidth
int p_newBufferWidth
New width.
Definition:
ViewportBufferTransform.h:87
Isis::ViewportBufferTransform::p_resizeFirst
bool p_resizeFirst
Do the resize before the translation?
Definition:
ViewportBufferTransform.h:89
Isis::ViewportBufferTransform::setTranslation
void setTranslation(int x, int y)
Sets the translation amount in x and y.
Definition:
ViewportBufferTransform.cpp:24
Isis::ViewportBufferTransform::p_yTranslation
int p_yTranslation
How far to translate in Y.
Definition:
ViewportBufferTransform.h:86
Isis::ViewportBufferTransform::p_newBufferHeight
int p_newBufferHeight
New height.
Definition:
ViewportBufferTransform.h:88
Isis::ViewportBufferTransform::setResize
void setResize(int width, int height)
Sets the size the buffer should be resized to.
Definition:
ViewportBufferTransform.cpp:36
U.S. Department of the Interior
|
U.S. Geological Survey
ISIS
|
Privacy & Disclaimers
|
Astrogeology Research Program
To contact us, please post comments and questions on the
ISIS Support Center
File Modified: 07/12/2023 23:31:30