Isis 3 Programmer Reference
ViewportBufferTransform.h
1#ifndef ViewportBufferTransform_h
2#define ViewportBufferTransform_h
3
10/* SPDX-License-Identifier: CC0-1.0 */
11
12#include "ViewportBufferAction.h"
13
14
15namespace Isis {
22 public:
24
27 return transform;
28 }
29 void setTranslation(int x, int y);
30
31
38 return p_xTranslation;
39 }
40
41
48 return p_yTranslation;
49 }
50
51 void setResize(int width, int height);
52
58 const int &getBufferWidth() {
59 return p_newBufferWidth;
60 }
61
67 const int &getBufferHeight() {
68 return p_newBufferHeight;
69 }
70
77 bool resizeFirst() {
78 return p_resizeFirst;
79 }
80
89
90
91 private:
97 };
98}
99#endif
ActionType
This uniquely identifies which child is instantiated.
@ transform
ViewportBufferTransform.
bool p_resizeFirst
Do the resize before the translation?
int p_yTranslation
How far to translate in Y.
void setResize(int width, int height)
Sets the size the buffer should be resized to.
int getXTranslation()
Gets the amount the buffer should be translated in X.
int getYTranslation()
Gets the amount the buffer should be translated in Y.
void resizeFirst(bool resizeFirst)
Sets whether the resize should happen before the translation.
const int & getBufferHeight()
Returns the new buffer height.
int p_xTranslation
How far to translate in X.
virtual ActionType getActionType()
Returns the instance type.
bool resizeFirst()
Returns true if the resize should happen before the translation.
const int & getBufferWidth()
Returns the new buffer width.
void setTranslation(int x, int y)
Sets the translation amount in x and y.
This is free and unencumbered software released into the public domain.
Definition Apollo.h:16