Isis 3 Programmer Reference
ViewportBufferTransform.h
1
2
#ifndef ViewportBufferTransform_h
3
#define ViewportBufferTransform_h
4
5
#include "ViewportBufferAction.h"
6
7
8
namespace
Isis
{
14
class
ViewportBufferTransform
:
public
ViewportBufferAction
{
15
public
:
16
ViewportBufferTransform
();
17
19
virtual
ActionType
getActionType
() {
20
return
transform
;
21
}
22
void
setTranslation
(
int
x,
int
y);
23
24
30
int
getXTranslation
() {
31
return
p_xTranslation
;
32
}
33
34
40
int
getYTranslation
() {
41
return
p_yTranslation
;
42
}
43
44
void
setResize
(
int
width,
int
height);
45
51
const
int
&
getBufferWidth
() {
52
return
p_newBufferWidth
;
53
}
54
60
const
int
&
getBufferHeight
() {
61
return
p_newBufferHeight
;
62
}
63
70
bool
resizeFirst
() {
71
return
p_resizeFirst
;
72
}
73
79
void
resizeFirst
(
bool
resizeFirst
) {
80
p_resizeFirst
=
resizeFirst
;
81
}
82
83
84
private
:
85
int
p_xTranslation
;
86
int
p_yTranslation
;
87
int
p_newBufferWidth
;
88
int
p_newBufferHeight
;
89
bool
p_resizeFirst
;
90
};
91
}
92
#endif
Isis::ViewportBufferTransform::getXTranslation
int getXTranslation()
Gets the amount the buffer should be translated in X.
Definition:
ViewportBufferTransform.h:30
Isis::ViewportBufferTransform::getActionType
virtual ActionType getActionType()
Returns the instance type.
Definition:
ViewportBufferTransform.h:19
Isis::ViewportBufferAction::transform
ViewportBufferTransform.
Definition:
ViewportBufferAction.h:21
Isis::ViewportBufferTransform::resizeFirst
bool resizeFirst()
Returns true if the resize should happen before the translation.
Definition:
ViewportBufferTransform.h:70
Isis::ViewportBufferTransform::ViewportBufferTransform
ViewportBufferTransform()
Constructor.
Definition:
ViewportBufferTransform.cpp:10
Isis::ViewportBufferTransform::getYTranslation
int getYTranslation()
Gets the amount the buffer should be translated in Y.
Definition:
ViewportBufferTransform.h:40
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::ViewportBufferAction::ActionType
ActionType
This uniquely identifies which child is instantiated.
Definition:
ViewportBufferAction.h:19
Isis::ViewportBufferTransform::getBufferWidth
const int & getBufferWidth()
Returns the new buffer width.
Definition:
ViewportBufferTransform.h:51
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
Definition:
ViewportBufferTransform.h:14
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
Isis
Namespace for ISIS/Bullet specific routines.
Definition:
Apollo.h:31
Isis::ViewportBufferTransform::resizeFirst
void resizeFirst(bool resizeFirst)
Sets whether the resize should happen before the translation.
Definition:
ViewportBufferTransform.h:79
Isis::ViewportBufferTransform::getBufferHeight
const int & getBufferHeight()
Returns the new buffer height.
Definition:
ViewportBufferTransform.h:60
Isis::ViewportBufferAction
Definition:
ViewportBufferAction.h:11
src
qisis
objs
CubeViewport
ViewportBufferTransform.h