MantisBT
Mantis Bug Tracker Workflow

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0030332Community[OCCT] OCCT:Visualizationpublic2018-11-01 17:462018-11-06 06:29
ReporterVico Liang 
Assigned Tokgv 
PrioritynormalSeverityminor 
StatusassignedResolutionopen 
PlatformOSOS Version
Product Version 
Target Version[OCCT] 7.4.0*Fixed in Version 
Summary0030332: RedrawImmediate don't apply view background color
DescriptionV3d_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.
TagsNo tags attached.
Test case number
Attached Files? file icon AndroidQt.h (2,508 bytes) 2018-11-06 06:18
cxx file icon AndroidQt.cxx (9,205 bytes) 2018-11-06 06:19

- Relationships

-  Notes
(0080602)
kgv (developer)
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.).
(0080731)
Vico Liang (developer)
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.

- Issue History
Date Modified Username Field Change
2018-11-01 17:46 Vico Liang New Issue
2018-11-01 17:46 Vico Liang Assigned To => kgv
2018-11-01 17:49 Vico Liang Description Updated View Revisions
2018-11-01 23:41 kgv Note Added: 0080602
2018-11-01 23:41 kgv Assigned To kgv => Vico Liang
2018-11-01 23:41 kgv Status new => feedback
2018-11-06 06:18 Vico Liang File Added: AndroidQt.h
2018-11-06 06:19 Vico Liang File Added: AndroidQt.cxx
2018-11-06 06:27 Vico Liang Note Added: 0080731
2018-11-06 06:29 Vico Liang Assigned To Vico Liang => kgv
2018-11-06 06:29 Vico Liang Status feedback => assigned


Copyright © 2000 - 2018 MantisBT Team
Powered by Mantis Bugtracker