Isis Developer Reference
ViewportBufferTransform.h
Go to the documentation of this file.
1#ifndef ViewportBufferTransform_h
2#define ViewportBufferTransform_h
3
10/* SPDX-License-Identifier: CC0-1.0 */
11
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
87 p_resizeFirst = resizeFirst;
88 }
89
90
91 private:
92 int p_xTranslation;
93 int p_yTranslation;
94 int p_newBufferWidth;
95 int p_newBufferHeight;
96 bool p_resizeFirst;
97 };
98}
99#endif
Definition ViewportBufferAction.h:18
ActionType
This uniquely identifies which child is instantiated.
Definition ViewportBufferAction.h:26
@ transform
ViewportBufferTransform.
Definition ViewportBufferAction.h:28
Definition ViewportBufferTransform.h:21
void setResize(int width, int height)
Sets the size the buffer should be resized to.
Definition ViewportBufferTransform.cpp:44
int getXTranslation()
Gets the amount the buffer should be translated in X.
Definition ViewportBufferTransform.h:37
int getYTranslation()
Gets the amount the buffer should be translated in Y.
Definition ViewportBufferTransform.h:47
void resizeFirst(bool resizeFirst)
Sets whether the resize should happen before the translation.
Definition ViewportBufferTransform.h:86
const int & getBufferHeight()
Returns the new buffer height.
Definition ViewportBufferTransform.h:67
virtual ActionType getActionType()
Returns the instance type.
Definition ViewportBufferTransform.h:26
bool resizeFirst()
Returns true if the resize should happen before the translation.
Definition ViewportBufferTransform.h:77
ViewportBufferTransform()
Constructor.
Definition ViewportBufferTransform.cpp:18
const int & getBufferWidth()
Returns the new buffer width.
Definition ViewportBufferTransform.h:58
void setTranslation(int x, int y)
Sets the translation amount in x and y.
Definition ViewportBufferTransform.cpp:32
This is free and unencumbered software released into the public domain.
Definition Apollo.h:16