29#ifndef RENDER_3D_BASE_H 
   30#define RENDER_3D_BASE_H 
   65                         REPORTER* aWarningReporter = 
nullptr ) = 0;
 
 
Helper class to handle information needed to display 3D board.
 
std::function< std::unique_ptr< BUSY_INDICATOR >()> FACTORY
A factory function that returns a new busy indicator.
 
A class used to derive camera objects from.
 
virtual bool Redraw(bool aIsMoving, REPORTER *aStatusReporter=nullptr, REPORTER *aWarningReporter=nullptr)=0
Redraw the view.
 
BUSY_INDICATOR::FACTORY m_busyIndicatorFactory
Factory that returns a suitable busy indicator for the context.
 
std::unique_ptr< BUSY_INDICATOR > CreateBusyIndicator() const
Return a created busy indicator, if a factory has been set, else a null pointer.
 
virtual int GetWaitForEditingTimeOut()=0
Give the interface the time (in ms) that it should wait for editing or movements before (this works f...
 
RENDER_3D_BASE(BOARD_ADAPTER &aBoardAdapter, CAMERA &aCamera)
 
bool m_canvasInitialized
Flag if the canvas specific for this render was already initialized.
 
virtual void SetCurWindowSize(const wxSize &aSize)=0
Before each render, the canvas will tell the render what is the size of its windows,...
 
virtual ~RENDER_3D_BASE()=0
 
wxSize m_windowSize
The window size that this camera is working.
 
BOARD_ADAPTER & m_boardAdapter
Settings reference in use for this render.
 
void SetBusyIndicatorFactory(BUSY_INDICATOR::FACTORY aNewFactory)
Set a new busy indicator factory.
 
bool IsReloadRequestPending() const
Query if there is a pending reload request.
 
A pure virtual class used to derive REPORTER objects from.
 
static const wxChar * m_logTrace
Trace mask used to enable or disable the trace output of this class.