#include <ViewportBufferTransform.h>
Inherits Isis::ViewportBufferAction.
Public Types | |
enum | ActionType { none, transform, fill, stretch } |
This uniquely identifies which child is instantiated. More... | |
Public Member Functions | |
ViewportBufferTransform () | |
Constructor. More... | |
virtual ActionType | getActionType () |
Returns the instance type. More... | |
void | setTranslation (int x, int y) |
Sets the translation amount in x and y. More... | |
int | getXTranslation () |
Gets the amount the buffer should be translated in X. More... | |
int | getYTranslation () |
Gets the amount the buffer should be translated in Y. More... | |
void | setResize (int width, int height) |
Sets the size the buffer should be resized to. More... | |
const int & | getBufferWidth () |
Returns the new buffer width. More... | |
const int & | getBufferHeight () |
Returns the new buffer height. More... | |
bool | resizeFirst () |
Returns true if the resize should happen before the translation. More... | |
void | resizeFirst (bool resizeFirst) |
Sets whether the resize should happen before the translation. More... | |
bool | started () |
Returns true if this is an action that takes time and has begun. More... | |
void | started (bool started) |
Sets started. More... | |
virtual void | stop () |
Cancels the process, used if reinitialize requested for example. More... | |
|
inherited |
Isis::ViewportBufferTransform::ViewportBufferTransform | ( | ) |
Constructor.
|
inlinevirtual |
Returns the instance type.
Reimplemented from Isis::ViewportBufferAction.
References Isis::ViewportBufferAction::transform.
|
inline |
Returns the new buffer height.
|
inline |
Returns the new buffer width.
|
inline |
Gets the amount the buffer should be translated in X.
|
inline |
Gets the amount the buffer should be translated in Y.
|
inline |
Returns true if the resize should happen before the translation.
Referenced by Isis::ViewportBuffer::pan(), Isis::ViewportBuffer::resizedViewport(), and resizeFirst().
|
inline |
Sets whether the resize should happen before the translation.
resizeFirst |
References resizeFirst().
void Isis::ViewportBufferTransform::setResize | ( | int | width, |
int | height | ||
) |
Sets the size the buffer should be resized to.
width | |
height |
Referenced by Isis::ViewportBuffer::pan(), and Isis::ViewportBuffer::resizedViewport().
void Isis::ViewportBufferTransform::setTranslation | ( | int | x, |
int | y | ||
) |
Sets the translation amount in x and y.
x | |
y |
Referenced by Isis::ViewportBuffer::pan(), and Isis::ViewportBuffer::resizedViewport().
|
inlineinherited |
Returns true if this is an action that takes time and has begun.
Referenced by Isis::ViewportBuffer::DataReady(), and Isis::ViewportBufferAction::started().
|
inlineinherited |
|
inlinevirtualinherited |
Cancels the process, used if reinitialize requested for example.
Reimplemented in Isis::ViewportBufferFill.
U.S. Department of the Interior | U.S. Geological Survey ISIS | Privacy & Disclaimers | Astrogeology Research Program To contact us, please post comments and questions on the ISIS Support Center File Modified: 07/12/2023 23:47:33 |