|
Isis 3 Programmer Reference
|
1 #ifndef VieportBufferFill_h
2 #define VieportBufferFill_h
12 #include "ViewportBufferAction.h"
32 const double &xScale,
const int &yCoef,
33 const double &yScale,
const QPoint &topLeftPixel);
bool doneReading()
Returns true if read position is past the end of the fill.
ActionType
This uniquely identifies which child is instantiated.
QRect * p_rect
Rect this fill represents.
@ fill
ViewportBufferFill.
int p_yCoef
viewport to sample/line y coef
double viewportToSample(int x)
Converts screen x position to cube sample position.
static const int STEPSIZE
how many cube lines per paint if painting inbetween gets re-enabled
double viewportToLine(int y)
Converts screen y position to cube line position.
int getReadPosition() const
Returns the current read position.
bool shouldPaint(int &linesToPaint)
Returns true if it is recommended to paint the fill area so far.
int getTopmostPixelPosition()
Returns the top of the X/Y bounding rect for this fill.
bool shouldRequestMore()
Returns true if request position is past the end of the fill.
QRect * getRect()
Returns the rect that this action is filling in screen pixels.
int p_xCoef
viewport to sample/line x coef
int getLeftmostPixelPosition()
Returns the left of the X/Y bounding rect for this fill.
double p_xScale
viewport to sample/line x scalar
void incRequestPosition()
Increment request position.
int getRequestPosition() const
Returns the current request position (>= read position)
unsigned int p_requestPosition
Position of the cube requests.
unsigned int p_readPosition
Position of the cube reads.
virtual ViewportBufferAction::ActionType getActionType()
Returns the type of this class.
void stop()
Cancels the current operation.
void incReadPosition()
Increment read position.
QPoint * p_topLeftPixel
Top left of the viewport for this fill.
double p_yScale
viewport to sample/line y scalar
ViewportBufferFill(const QRect &rect, const int &xCoef, const double &xScale, const int &yCoef, const double &yScale, const QPoint &topLeftPixel)
Constructor.
This is free and unencumbered software released into the public domain.
~ViewportBufferFill()
Destructor.