View Issue Details

IDProjectCategoryView StatusLast Update
0030332CommunityOCCT:Visualizationpublic2023-08-01 15:09
ReporterVico Liang Assigned Tovpozdyayev 
PrioritynormalSeverityminor 
Status assignedResolutionopen 
Product Version7.3.0 
Target VersionUnscheduled 
Summary0030332: Visualization - 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

  • AndroidQt.h (2,508 bytes)
  • AndroidQt.cxx (9,205 bytes)

Activities

kgv

2018-11-01 23:41

developer   ~0080602

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:18

developer  

AndroidQt.h (2,508 bytes)

Vico Liang

2018-11-06 06:19

developer  

AndroidQt.cxx (9,205 bytes)

Vico Liang

2018-11-06 06:27

developer   ~0080731

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
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
2019-09-04 15:43 abv Target Version 7.4.0 => 7.5.0
2019-09-04 15:56 kgv Summary RedrawImmediate don't apply view background color => Visualization - RedrawImmediate don't apply view background color
2020-08-28 14:36 kgv Product Version => 7.3.0
2020-08-28 14:36 kgv Target Version 7.5.0 => 7.6.0
2021-08-24 14:53 kgv Target Version 7.6.0 => 7.7.0
2022-08-17 11:55 kgv Target Version 7.7.0 => 7.8.0
2022-10-19 15:49 smoskvin Assigned To kgv => vpozdyayev
2023-08-01 15:09 dpasukhi Target Version 7.8.0 => Unscheduled