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 
12 #include "ViewportBufferAction.h"
13 
14 
15 namespace 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 
86  void resizeFirst(bool resizeFirst) {
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
Isis::ViewportBufferTransform::getActionType
virtual ActionType getActionType()
Returns the instance type.
Definition: ViewportBufferTransform.h:26
Isis::ViewportBufferAction::ActionType
ActionType
This uniquely identifies which child is instantiated.
Definition: ViewportBufferAction.h:26
Isis::ViewportBufferTransform::resizeFirst
bool resizeFirst()
Returns true if the resize should happen before the translation.
Definition: ViewportBufferTransform.h:77
Isis::ViewportBufferTransform::ViewportBufferTransform
ViewportBufferTransform()
Constructor.
Definition: ViewportBufferTransform.cpp:18
Isis::ViewportBufferTransform::getYTranslation
int getYTranslation()
Gets the amount the buffer should be translated in Y.
Definition: ViewportBufferTransform.h:47
Isis::ViewportBufferTransform
Definition: ViewportBufferTransform.h:21
ViewportBufferTransform.h
Isis::ViewportBufferTransform::getBufferWidth
const int & getBufferWidth()
Returns the new buffer width.
Definition: ViewportBufferTransform.h:58
Isis::ViewportBufferAction
Definition: ViewportBufferAction.h:18
Isis::ViewportBufferTransform::setTranslation
void setTranslation(int x, int y)
Sets the translation amount in x and y.
Definition: ViewportBufferTransform.cpp:32
Isis::ViewportBufferAction::transform
@ transform
ViewportBufferTransform.
Definition: ViewportBufferAction.h:28
Isis::ViewportBufferTransform::setResize
void setResize(int width, int height)
Sets the size the buffer should be resized to.
Definition: ViewportBufferTransform.cpp:44
Isis::ViewportBufferTransform::resizeFirst
void resizeFirst(bool resizeFirst)
Sets whether the resize should happen before the translation.
Definition: ViewportBufferTransform.h:86
ViewportBufferAction.h
Isis::ViewportBufferTransform::getBufferHeight
const int & getBufferHeight()
Returns the new buffer height.
Definition: ViewportBufferTransform.h:67
Isis::ViewportBufferTransform::getXTranslation
int getXTranslation()
Gets the amount the buffer should be translated in X.
Definition: ViewportBufferTransform.h:37
Isis
This is free and unencumbered software released into the public domain.
Definition: Apollo.h:16