Isis 3 Developer Reference
ViewportBufferTransform.h
Go to the documentation of this file.
1 
2 #ifndef ViewportBufferTransform_h
3 #define ViewportBufferTransform_h
4 
5 #include "ViewportBufferAction.h"
6 
7 
8 namespace Isis {
15  public:
17 
20  return transform;
21  }
22  void setTranslation(int x, int y);
23 
24 
31  return p_xTranslation;
32  }
33 
34 
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
int getXTranslation()
Gets the amount the buffer should be translated in X.
Definition: ViewportBufferTransform.h:30
virtual ActionType getActionType()
Returns the instance type.
Definition: ViewportBufferTransform.h:19
ViewportBufferTransform.
Definition: ViewportBufferAction.h:21
bool resizeFirst()
Returns true if the resize should happen before the translation.
Definition: ViewportBufferTransform.h:70
ViewportBufferTransform()
Constructor.
Definition: ViewportBufferTransform.cpp:10
int getYTranslation()
Gets the amount the buffer should be translated in Y.
Definition: ViewportBufferTransform.h:40
ActionType
This uniquely identifies which child is instantiated.
Definition: ViewportBufferAction.h:19
const int & getBufferWidth()
Returns the new buffer width.
Definition: ViewportBufferTransform.h:51
void setTranslation(int x, int y)
Sets the translation amount in x and y.
Definition: ViewportBufferTransform.cpp:24
Definition: ViewportBufferTransform.h:14
void setResize(int width, int height)
Sets the size the buffer should be resized to.
Definition: ViewportBufferTransform.cpp:36
Namespace for ISIS/Bullet specific routines.
Definition: Apollo.h:31
void resizeFirst(bool resizeFirst)
Sets whether the resize should happen before the translation.
Definition: ViewportBufferTransform.h:79
const int & getBufferHeight()
Returns the new buffer height.
Definition: ViewportBufferTransform.h:60
Definition: ViewportBufferAction.h:11