MantisBT - Community
View Issue Details
0030332Community[OCCT] OCCT:Visualizationpublic2018-11-01 17:462019-09-04 15:56
Vico Liang 
[OCCT] 7.5.0* 
0030332: Visualization - RedrawImmediate don't apply view background color
V3d_View::RedrawImmediate() always fill white color even if the background color is black. The usage of RedrawImmediate is to boost performance to draw temporary objects. Is there any consideration to fill background color in immediate mode? this is a bug I think no matter any reason.
No tags attached.
? AndroidQt.h (2,508) 2018-11-06 06:18
cxx AndroidQt.cxx (9,205) 2018-11-06 06:19
Issue History
2018-11-01 17:46Vico LiangNew Issue
2018-11-01 17:46Vico LiangAssigned To => kgv
2018-11-01 17:49Vico LiangDescription Updatedbug_revision_view_page.php?rev_id=20285#r20285
2018-11-01 23:41kgvNote Added: 0080602
2018-11-01 23:41kgvAssigned Tokgv => Vico Liang
2018-11-01 23:41kgvStatusnew => feedback
2018-11-06 06:18Vico LiangFile Added: AndroidQt.h
2018-11-06 06:19Vico LiangFile Added: AndroidQt.cxx
2018-11-06 06:27Vico LiangNote Added: 0080731
2018-11-06 06:29Vico LiangAssigned ToVico Liang => kgv
2018-11-06 06:29Vico LiangStatusfeedback => assigned
2019-09-04 15:43abvTarget Version7.4.0 => 7.5.0*
2019-09-04 15:56kgvSummaryRedrawImmediate don't apply view background color => Visualization - RedrawImmediate don't apply view background color

2018-11-01 23:41   
Provided description is unclear - please clarify and provide use case / test case.
V3d_View::RedrawImmediate() is not intended drawing the viewer background at all - it is expected to be called after V3d_View::Redraw() in rare cases, where partial Viewer update is applicable (like dynamic highlighting, drawing AIS_RubberBand, etc.).
Vico Liang   
2018-11-06 06:27   
Dear kgv,

I have uploaded two files AndroidQt.h and AndroidQt.cxx, they are copied from sample AndroidQt and updated to reproduce this issue. I do some changes:

1. AndroidQt::sync() changes:
The function myView->SetWindow() just be called when the window size are actually changed to improve performance.

2. AndroidQt::paint() changes:
Replace function myView->Rotation() to myContext->MoveTo() to prepare a immediate redraw.

3. To reproduce the issue, please open a document and then move your finger on screen, the screen background will be white color.