72 bool requestRedraw =
false;
107 requestRedraw =
true;
112 const bool was_camera_changed =
m_camera.ParametersChanged();
114 if( requestRedraw || aIsMoving || was_camera_changed )
119 if( aIsMoving || was_camera_changed )
139 requestRedraw =
true;
144 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.
std::shared_ptr< REPORTER > m_activityReporter
wxSize m_windowSize
The window size that this camera is working.
RENDER_3D_RAYTRACE_BASE(BOARD_ADAPTER &aAdapter, CAMERA &aCamera)
void render(uint8_t *ptrPBO)
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()
void Reload(bool aOnlyLoadCopperAndShapes, std::stop_token aStop={})
SFVEC2UI m_realBufferSize
void deletePbo() override
RENDER_3D_RAYTRACE_RAM(BOARD_ADAPTER &aAdapter, CAMERA &aCamera)
wxSize GetRealBufferSize()
~RENDER_3D_RAYTRACE_RAM()
bool Redraw(bool aIsMoving) override
Redraw the view.
void SetCurWindowSize(const wxSize &aSize) override
Before each render, the canvas will tell the render what is the size of its windows,...