9#include "ViewportBufferFill.h"
31 const int &xCoef,
const double &xScale,
const int &yCoef,
32 const double &yScale,
const QPoint &topLeftPixel)
120 linesToPaint =
p_rect->height();
int p_yCoef
viewport to sample/line y coef
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.
unsigned int p_requestPosition
Position of the cube requests.
static const int STEPSIZE
how many cube lines per paint if painting inbetween gets re-enabled
double p_yScale
viewport to sample/line y scalar
QPoint * p_topLeftPixel
Top left of the viewport for this fill.
void stop()
Cancels the current operation.
unsigned int p_readPosition
Position of the cube reads.
QRect * p_rect
Rect this fill represents.
bool shouldPaint(int &linesToPaint)
Returns true if it is recommended to paint the fill area so far.
bool shouldRequestMore()
Returns true if request position is past the end of the fill.
bool doneReading()
Returns true if read position is past the end of the fill.
ViewportBufferFill(const QRect &rect, const int &xCoef, const double &xScale, const int &yCoef, const double &yScale, const QPoint &topLeftPixel)
Constructor.
~ViewportBufferFill()
Destructor.
int p_xCoef
viewport to sample/line x coef
double p_xScale
viewport to sample/line x scalar
This is free and unencumbered software released into the public domain.
Namespace for the standard library.