Isis Developer Reference
|
#include <ViewportBufferFill.h>
Public Types | |
enum | ActionType { none, transform, fill, stretch } |
This uniquely identifies which child is instantiated. More... | |
Public Member Functions | |
ViewportBufferFill (const QRect &rect, const int &xCoef, const double &xScale, const int &yCoef, const double &yScale, const QPoint &topLeftPixel) | |
Constructor. More... | |
~ViewportBufferFill () | |
Destructor. More... | |
virtual ViewportBufferAction::ActionType | getActionType () |
Returns the type of this class. More... | |
double | viewportToSample (int x) |
Converts screen x position to cube sample position. More... | |
double | viewportToLine (int y) |
Converts screen y position to cube line position. More... | |
int | getRequestPosition () const |
Returns the current request position (>= read position) More... | |
int | getReadPosition () const |
Returns the current read position. More... | |
void | incReadPosition () |
Increment read position. More... | |
void | incRequestPosition () |
Increment request position. More... | |
QRect * | getRect () |
Returns the rect that this action is filling in screen pixels. More... | |
int | getTopmostPixelPosition () |
Returns the top of the X/Y bounding rect for this fill. More... | |
int | getLeftmostPixelPosition () |
Returns the left of the X/Y bounding rect for this fill. More... | |
bool | doneReading () |
Returns true if read position is past the end of the fill. More... | |
bool | shouldRequestMore () |
Returns true if request position is past the end of the fill. More... | |
bool | shouldPaint (int &linesToPaint) |
Returns true if it is recommended to paint the fill area so far. More... | |
void | stop () |
Cancels the current operation. More... | |
bool | started () |
Returns true if this is an action that takes time and has begun. More... | |
void | started (bool started) |
Sets started. More... | |
|
inherited |
Isis::ViewportBufferFill::ViewportBufferFill | ( | const QRect & | rect, |
const int & | xCoef, | ||
const double & | xScale, | ||
const int & | yCoef, | ||
const double & | yScale, | ||
const QPoint & | topLeftPixel | ||
) |
Constructor.
rect | |
xCoef | |
xScale | |
yCoef | |
yScale | |
topLeftPixel |
Isis::ViewportBufferFill::~ViewportBufferFill | ( | ) |
Destructor.
bool Isis::ViewportBufferFill::doneReading | ( | ) |
Returns true if read position is past the end of the fill.
Referenced by Isis::ViewportBuffer::DataReady(), and shouldPaint().
|
inlinevirtual |
Returns the type of this class.
Reimplemented from Isis::ViewportBufferAction.
References Isis::ViewportBufferAction::fill.
int Isis::ViewportBufferFill::getLeftmostPixelPosition | ( | ) |
Returns the left of the X/Y bounding rect for this fill.
Referenced by Isis::ViewportBuffer::DataReady(), and Isis::ViewportBuffer::fillBuffer().
|
inline |
Returns the current read position.
Referenced by Isis::ViewportBuffer::DataReady(), and Isis::ViewportBuffer::totalUnfilledArea().
|
inline |
Returns the rect that this action is filling in screen pixels.
Referenced by Isis::ViewportBuffer::DataReady(), and Isis::ViewportBuffer::totalUnfilledArea().
|
inline |
Returns the current request position (>= read position)
Referenced by Isis::ViewportBuffer::fillBuffer().
int Isis::ViewportBufferFill::getTopmostPixelPosition | ( | ) |
Returns the top of the X/Y bounding rect for this fill.
Referenced by Isis::ViewportBuffer::DataReady(), and Isis::ViewportBuffer::fillBuffer().
|
inline |
Increment read position.
Referenced by Isis::ViewportBuffer::DataReady(), and Isis::ViewportBuffer::fillBuffer().
|
inline |
Increment request position.
Referenced by Isis::ViewportBuffer::fillBuffer().
bool Isis::ViewportBufferFill::shouldPaint | ( | int & | linesToPaint | ) |
Returns true if it is recommended to paint the fill area so far.
linesToPaint |
References doneReading().
bool Isis::ViewportBufferFill::shouldRequestMore | ( | ) |
Returns true if request position is past the end of the fill.
Referenced by Isis::ViewportBuffer::DataReady(), and Isis::ViewportBuffer::fillBuffer().
|
inlineinherited |
Returns true if this is an action that takes time and has begun.
Referenced by Isis::ViewportBuffer::DataReady(), and Isis::ViewportBufferAction::started().
|
inlineinherited |
|
virtual |
|
inline |
Converts screen y position to cube line position.
y |
Referenced by Isis::ViewportBuffer::DataReady(), and Isis::ViewportBuffer::fillBuffer().
|
inline |
Converts screen x position to cube sample position.
x |
Referenced by Isis::ViewportBuffer::DataReady(), and Isis::ViewportBuffer::fillBuffer().