32 m_outputBuffer( nullptr ),
77 bool requestRedraw =
false;
99 aStatusReporter->
Report(
_(
"Loading..." ) );
102 requestRedraw =
true;
103 Reload( aStatusReporter, aWarningReporter,
false );
112 requestRedraw =
true;
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.
const SFVEC3F & GetDir() const
void SetDirection(const SFVEC3F &aDir)
Set directional light orientation.
CAMERA & m_camera
Flag if the canvas specific for this render was already 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.
void Reload(REPORTER *aStatusReporter, REPORTER *aWarningReporter, bool aOnlyLoadCopperAndShapes)
void render(uint8_t *ptrPBO, REPORTER *aStatusReporter)
DIRECTIONAL_LIGHT * m_cameraLight
RT_RENDER_STATE m_renderState
State used on quality render.
wxSize m_oldWindowsSize
Encode Morton code positions.
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)=0
Report a string with a given severity.