29 #ifndef RENDER_3D_BASE_H 30 #define RENDER_3D_BASE_H 64 virtual bool Redraw(
bool aIsMoving,
REPORTER* aStatusReporter =
nullptr,
65 REPORTER* aWarningReporter =
nullptr ) = 0;
128 #endif // RENDER_3D_BASE_H virtual ~RENDER_3D_BASE()=0
BOARD_ADAPTER & m_boardAdapter
bool IsReloadRequestPending() const
Query if there is a pending reload request.
virtual void SetCurWindowSize(const wxSize &aSize)=0
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.
Classes used in Pcbnew, CvPcb and GerbView.
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 int GetWaitForEditingTimeOut()=0
Give the interface the time (in ms) that it should wait for editing or movements before (this works f...
static const wxChar * m_logTrace
Trace mask used to enable or disable the trace output of this class.
RENDER_3D_BASE(BOARD_ADAPTER &aBoardAdapter, CAMERA &aCamera)
virtual bool Redraw(bool aIsMoving, REPORTER *aStatusReporter=nullptr, REPORTER *aWarningReporter=nullptr)=0
Redraw the view.
This is a base class to hold data and functions for render targets.
void SetBusyIndicatorFactory(BUSY_INDICATOR::FACTORY aNewFactory)
Set a new busy indicator factory.
BUSY_INDICATOR::FACTORY m_busyIndicatorFactory
< Factory that returns a suitable busy indicator for the context.
bool m_is_opengl_initialized
std::unique_ptr< BUSY_INDICATOR > CreateBusyIndicator() const
Return a created busy indicator, if a factory has been set, else a null pointer.
bool m_reloadRequested
The window size that this camera is working.
CAMERA & m_camera
Flag if the opengl specific for this render was already initialized.
Helper class to handle information needed to display 3D board.