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 
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) {
88  }
89 
90 
91  private:
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::p_newBufferWidth
int p_newBufferWidth
New width.
Definition: ViewportBufferTransform.h:94
Isis::ViewportBufferTransform::getYTranslation
int getYTranslation()
Gets the amount the buffer should be translated in Y.
Definition: ViewportBufferTransform.h:47
Isis::ViewportBufferTransform::p_xTranslation
int p_xTranslation
How far to translate in X.
Definition: ViewportBufferTransform.h:92
Isis::ViewportBufferTransform
Definition: ViewportBufferTransform.h:21
Isis::ViewportBufferTransform::getBufferWidth
const int & getBufferWidth()
Returns the new buffer width.
Definition: ViewportBufferTransform.h:58
Isis::ViewportBufferTransform::p_resizeFirst
bool p_resizeFirst
Do the resize before the translation?
Definition: ViewportBufferTransform.h:96
Isis::ViewportBufferAction
Definition: ViewportBufferAction.h:18
Isis::ViewportBufferTransform::p_yTranslation
int p_yTranslation
How far to translate in Y.
Definition: ViewportBufferTransform.h:93
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::p_newBufferHeight
int p_newBufferHeight
New height.
Definition: ViewportBufferTransform.h:95
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
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