Isis 3.0 Developer's Reference (API) |
Home |
#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. | |
virtual ActionType | getActionType () |
Returns the instance type. | |
void | setTranslation (int x, int y) |
Sets the translation amount in x and y. | |
int | getXTranslation () |
Gets the amount the buffer should be translated in X. | |
int | getYTranslation () |
Gets the amount the buffer should be translated in Y. | |
void | setResize (int width, int height) |
Sets the size the buffer should be resized to. | |
const int & | getBufferWidth () |
Returns the new buffer width. | |
const int & | getBufferHeight () |
Returns the new buffer height. | |
bool | resizeFirst () |
Returns true if the resize should happen before the translation. | |
void | resizeFirst (bool resizeFirst) |
Sets whether the resize should happen before the translation. | |
bool | started () |
Returns true if this is an action that takes time and has begun. | |
void | started (bool started) |
Sets started. | |
virtual void | stop () |
Cancels the process, used if reinitialize requested for example. |
enum Isis::ViewportBufferAction::ActionType [inherited] |
Isis::ViewportBufferTransform::ViewportBufferTransform | ( | ) |
Constructor.
virtual ActionType Isis::ViewportBufferTransform::getActionType | ( | ) | [inline, virtual] |
Returns the instance type.
Reimplemented from Isis::ViewportBufferAction.
References Isis::ViewportBufferAction::transform.
const int& Isis::ViewportBufferTransform::getBufferHeight | ( | ) | [inline] |
Returns the new buffer height.
const int& Isis::ViewportBufferTransform::getBufferWidth | ( | ) | [inline] |
Returns the new buffer width.
int Isis::ViewportBufferTransform::getXTranslation | ( | ) | [inline] |
Gets the amount the buffer should be translated in X.
int Isis::ViewportBufferTransform::getYTranslation | ( | ) | [inline] |
Gets the amount the buffer should be translated in Y.
void Isis::ViewportBufferTransform::resizeFirst | ( | bool | resizeFirst | ) | [inline] |
Sets whether the resize should happen before the translation.
resizeFirst |
bool Isis::ViewportBufferTransform::resizeFirst | ( | ) | [inline] |
Returns true if the resize should happen before the translation.
Referenced by Isis::ViewportBuffer::pan(), and Isis::ViewportBuffer::resizedViewport().
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().
void Isis::ViewportBufferAction::started | ( | bool | started | ) | [inline, inherited] |
Sets started.
started | True if starting |
bool Isis::ViewportBufferAction::started | ( | ) | [inline, inherited] |
Returns true if this is an action that takes time and has begun.
virtual void Isis::ViewportBufferAction::stop | ( | ) | [inline, virtual, inherited] |
Cancels the process, used if reinitialize requested for example.
Reimplemented in Isis::ViewportBufferFill.