77    bool requestRedraw = 
false;
 
   99            aStatusReporter->
Report( 
_( 
"Loading..." ) );
 
  102        requestRedraw = 
true;
 
  103        Reload( aStatusReporter, aWarningReporter, 
false );
 
  112        requestRedraw = 
true;
 
  117    const bool was_camera_changed = 
m_camera.ParametersChanged();
 
  119    if( requestRedraw || aIsMoving || was_camera_changed )
 
  124    if( aIsMoving || was_camera_changed )
 
  144                    requestRedraw = 
true;
 
  149    return requestRedraw;
 
 
Helper class to handle information needed to display 3D board.
 
A class used to derive camera objects from.
 
std::unique_ptr< BUSY_INDICATOR > CreateBusyIndicator() const
Return a created busy indicator, if a factory has been set, else a null pointer.
 
bool m_canvasInitialized
Flag if the canvas specific for this render was already initialized.
 
wxSize m_windowSize
The window size that this camera is working.
 
void Reload(REPORTER *aStatusReporter, REPORTER *aWarningReporter, bool aOnlyLoadCopperAndShapes)
 
RENDER_3D_RAYTRACE_BASE(BOARD_ADAPTER &aAdapter, CAMERA &aCamera)
 
void render(uint8_t *ptrPBO, REPORTER *aStatusReporter)
 
DIRECTIONAL_LIGHT * m_cameraLight
 
RT_RENDER_STATE m_renderState
State used on quality render.
 
wxSize m_oldWindowsSize
Used to see if the windows size changed.
 
void renderPreview(uint8_t *ptrPBO)
 
void initializeBlockPositions()
 
SFVEC2UI m_realBufferSize
 
void deletePbo() override
 
RENDER_3D_RAYTRACE_RAM(BOARD_ADAPTER &aAdapter, CAMERA &aCamera)
 
bool Redraw(bool aIsMoving, REPORTER *aStatusReporter, REPORTER *aWarningReporter) override
Redraw the view.
 
wxSize GetRealBufferSize()
 
~RENDER_3D_RAYTRACE_RAM()
 
void SetCurWindowSize(const wxSize &aSize) override
Before each render, the canvas will tell the render what is the size of its windows,...
 
A pure virtual class used to derive REPORTER objects from.
 
virtual REPORTER & Report(const wxString &aText, SEVERITY aSeverity=RPT_SEVERITY_UNDEFINED)
Report a string with a given severity.