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. | |
~ViewportBufferFill () | |
Destructor. | |
virtual ViewportBufferAction::ActionType | getActionType () |
Returns the type of this class. | |
double | viewportToSample (int x) |
Converts screen x position to cube sample position. | |
double | viewportToLine (int y) |
Converts screen y position to cube line position. | |
int | getRequestPosition () const |
Returns the current request position (>= read position) | |
int | getReadPosition () const |
Returns the current read position. | |
void | incReadPosition () |
Increment read position. | |
void | incRequestPosition () |
Increment request position. | |
QRect * | getRect () |
Returns the rect that this action is filling in screen pixels. | |
int | getTopmostPixelPosition () |
Returns the top of the X/Y bounding rect for this fill. | |
int | getLeftmostPixelPosition () |
Returns the left of the X/Y bounding rect for this fill. | |
bool | doneReading () |
Returns true if read position is past the end of the fill. | |
bool | shouldRequestMore () |
Returns true if request position is past the end of the fill. | |
bool | shouldPaint (int &linesToPaint) |
Returns true if it is recommended to paint the fill area so far. | |
void | stop () |
Cancels the current operation. | |
bool | started () |
Returns true if this is an action that takes time and has begun. | |
void | started (bool started) |
Sets started. | |
|
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::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().