#include <ViewportBufferTransform.h>


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. | |
Private Attributes | |
| int | p_xTranslation |
| How far to translate in X. | |
| int | p_yTranslation |
| How far to translate in Y. | |
| int | p_newBufferWidth |
| New width. | |
| int | p_newBufferHeight |
| New height. | |
| bool | p_resizeFirst |
| Do the resize before the translation? | |
| bool | p_started |
| True if this action has begun. | |
Definition at line 21 of file ViewportBufferTransform.h.
|
inherited |
This uniquely identifies which child is instantiated.
| Enumerator | |
|---|---|
| none | Parent was instantiated. |
| transform | |
| fill | |
| stretch | |
Definition at line 26 of file ViewportBufferAction.h.
| Isis::ViewportBufferTransform::ViewportBufferTransform | ( | ) |
Constructor.
Definition at line 18 of file ViewportBufferTransform.cpp.
References p_newBufferHeight, p_newBufferWidth, p_resizeFirst, p_xTranslation, and p_yTranslation.
|
inlinevirtual |
Returns the instance type.
Reimplemented from Isis::ViewportBufferAction.
Definition at line 26 of file ViewportBufferTransform.h.
References Isis::ViewportBufferAction::transform.
|
inline |
Returns the new buffer height.
Definition at line 67 of file ViewportBufferTransform.h.
References p_newBufferHeight.
Referenced by Isis::ViewportBuffer::actionsPreserveData(), Isis::ViewportBuffer::doTransformAction(), and Isis::ViewportBuffer::reinitializeActionExists().
|
inline |
Returns the new buffer width.
Definition at line 58 of file ViewportBufferTransform.h.
References p_newBufferWidth.
Referenced by Isis::ViewportBuffer::actionsPreserveData(), Isis::ViewportBuffer::doTransformAction(), and Isis::ViewportBuffer::reinitializeActionExists().
|
inline |
Gets the amount the buffer should be translated in X.
Definition at line 37 of file ViewportBufferTransform.h.
References p_xTranslation.
Referenced by Isis::ViewportBuffer::actionsPreserveData(), and Isis::ViewportBuffer::doTransformAction().
|
inline |
Gets the amount the buffer should be translated in Y.
Definition at line 47 of file ViewportBufferTransform.h.
References p_yTranslation.
Referenced by Isis::ViewportBuffer::actionsPreserveData(), and Isis::ViewportBuffer::doTransformAction().
|
inline |
Returns true if the resize should happen before the translation.
Definition at line 77 of file ViewportBufferTransform.h.
References p_resizeFirst.
Referenced by Isis::ViewportBuffer::actionsPreserveData(), Isis::ViewportBuffer::doTransformAction(), Isis::ViewportBuffer::pan(), Isis::ViewportBuffer::resizedViewport(), and resizeFirst().
|
inline |
Sets whether the resize should happen before the translation.
| resizeFirst |
Definition at line 86 of file ViewportBufferTransform.h.
References p_resizeFirst, and resizeFirst().
| void Isis::ViewportBufferTransform::setResize | ( | int | width, |
| int | height ) |
Sets the size the buffer should be resized to.
| width | |
| height |
Definition at line 44 of file ViewportBufferTransform.cpp.
References p_newBufferHeight, and p_newBufferWidth.
Referenced by Isis::ViewportBuffer::pan(), Isis::ViewportBuffer::reinitialize(), and Isis::ViewportBuffer::resizedViewport().
| void Isis::ViewportBufferTransform::setTranslation | ( | int | x, |
| int | y ) |
Sets the translation amount in x and y.
| x | |
| y |
Definition at line 32 of file ViewportBufferTransform.cpp.
References p_xTranslation, and p_yTranslation.
Referenced by Isis::ViewportBuffer::pan(), and Isis::ViewportBuffer::resizedViewport().
|
inlineinherited |
Returns true if this is an action that takes time and has begun.
Definition at line 39 of file ViewportBufferAction.h.
References p_started.
Referenced by Isis::ViewportBuffer::DataReady(), Isis::ViewportBuffer::doQueuedActions(), Isis::ViewportBuffer::reinitialize(), started(), and Isis::ViewportBuffer::startFillAction().
|
inlineinherited |
Sets started.
| started | True if starting |
Definition at line 48 of file ViewportBufferAction.h.
|
inlinevirtualinherited |
Cancels the process, used if reinitialize requested for example.
Reimplemented in Isis::ViewportBufferFill.
Definition at line 53 of file ViewportBufferAction.h.
|
private |
New height.
Definition at line 95 of file ViewportBufferTransform.h.
Referenced by getBufferHeight(), setResize(), and ViewportBufferTransform().
|
private |
New width.
Definition at line 94 of file ViewportBufferTransform.h.
Referenced by getBufferWidth(), setResize(), and ViewportBufferTransform().
|
private |
Do the resize before the translation?
Definition at line 96 of file ViewportBufferTransform.h.
Referenced by resizeFirst(), resizeFirst(), and ViewportBufferTransform().
|
privateinherited |
True if this action has begun.
Definition at line 73 of file ViewportBufferAction.h.
Referenced by started(), started(), and ViewportBufferAction().
|
private |
How far to translate in X.
Definition at line 92 of file ViewportBufferTransform.h.
Referenced by getXTranslation(), setTranslation(), and ViewportBufferTransform().
|
private |
How far to translate in Y.
Definition at line 93 of file ViewportBufferTransform.h.
Referenced by getYTranslation(), setTranslation(), and ViewportBufferTransform().