1#ifndef VieportBufferFill_h 
    2#define VieportBufferFill_h 
   32                         const double &xScale, 
const int &yCoef,
 
   33                         const double &yScale, 
const QPoint &topLeftPixel);
 
   54        return (x + p_xCoef) / p_xScale;
 
 
   65        return (y + p_yCoef) / p_yScale;
 
 
   74        return p_requestPosition;
 
 
   83        return p_readPosition;
 
 
  120      unsigned int p_readPosition;
 
  122      unsigned int p_requestPosition;
 
  126      QPoint *p_topLeftPixel;
 
  137      const static int STEPSIZE = 20;
 
 
ActionType
This uniquely identifies which child is instantiated.
Definition ViewportBufferAction.h:26
 
@ fill
ViewportBufferFill.
Definition ViewportBufferAction.h:29
 
ViewportBufferAction()
Creates a new viewport buffer action.
Definition ViewportBufferAction.cpp:15
 
double viewportToLine(int y)
Converts screen y position to cube line position.
Definition ViewportBufferFill.h:64
 
int getRequestPosition() const
Returns the current request position (>= read position)
Definition ViewportBufferFill.h:73
 
int getTopmostPixelPosition()
Returns the top of the X/Y bounding rect for this fill.
Definition ViewportBufferFill.cpp:67
 
virtual ViewportBufferAction::ActionType getActionType()
Returns the type of this class.
Definition ViewportBufferFill.h:42
 
int getLeftmostPixelPosition()
Returns the left of the X/Y bounding rect for this fill.
Definition ViewportBufferFill.cpp:77
 
double scale()
Definition ViewportBufferFill.h:114
 
void incRequestPosition()
Increment request position.
Definition ViewportBufferFill.h:92
 
void stop()
Cancels the current operation.
Definition ViewportBufferFill.cpp:105
 
void incReadPosition()
Increment read position.
Definition ViewportBufferFill.h:87
 
int getReadPosition() const
Returns the current read position.
Definition ViewportBufferFill.h:82
 
QRect * getRect()
Returns the rect that this action is filling in screen pixels.
Definition ViewportBufferFill.h:101
 
bool shouldPaint(int &linesToPaint)
Returns true if it is recommended to paint the fill area so far.
Definition ViewportBufferFill.cpp:118
 
bool shouldRequestMore()
Returns true if request position is past the end of the fill.
Definition ViewportBufferFill.cpp:97
 
bool doneReading()
Returns true if read position is past the end of the fill.
Definition ViewportBufferFill.cpp:87
 
double viewportToSample(int x)
Converts screen x position to cube sample position.
Definition ViewportBufferFill.h:53
 
ViewportBufferFill(const QRect &rect, const int &xCoef, const double &xScale, const int &yCoef, const double &yScale, const QPoint &topLeftPixel)
Constructor.
Definition ViewportBufferFill.cpp:30
 
~ViewportBufferFill()
Destructor.
Definition ViewportBufferFill.cpp:50
 
This is free and unencumbered software released into the public domain.
Definition Apollo.h:16