MantisBT - Community
View Issue Details
0025775Community[OCCT] OCCT:Visualizationpublic2015-01-31 04:422015-10-23 20:51
Vico Liang 
ski 
normaltrivial 
closedfixed 
WindowsVC++ 201364 bit
[OCCT] 6.8.0 
[OCCT] 6.9.1[OCCT] 6.9.1 
bugs vis bug25775
0025775: "Default Gradient Backgound" in V3d_Viewer has no effect in new created V3d_View.
The default gradient colors set by V3d_Viewer::SetDefaultBgGradientColors, but it won't affect the gradient background of new V3d_View.

The problem might be that the "gradient background" is overrided by "background". Please see the method below:

void V3d_View::SetWindow(const Handle(Aspect_Window)& TheWindow)
{
  MyView->SetWindow(TheWindow) ;
  // method V3d_View::SetWindow() should assign the field MyWindow before calling Redraw()
  MyWindow = TheWindow;
  // SetWindow carries out SetRatio and modifies
  MyView->SetContext(MyViewContext) ;
  MyView->SetBackground(MyBackground) ; //[BUG: This overrided the gradient backgound setting in previous function MyView->SetWindow(TheWindow).
  MyViewer->SetViewOn(this) ;
  MyView->Redraw() ;
}
bugs/vis/bug25775
List of changes:

Method V3d_View::SetWindow has been fixed. The background color of the viewer is applied to underlying graphical view after setting window.
No tags attached.
related to 0026404closed bugmaster Open CASCADE Visualization, Ray Tracing - use solid background color when gradient color is disabled 
Issue History
2015-01-31 04:42Vico LiangNew Issue
2015-01-31 04:42Vico LiangAssigned To => kgv
2015-04-06 14:00kgvTarget Version6.9.0 => 7.1.0
2015-07-07 10:20kgvRelationship addedrelated to 0026404
2015-07-21 18:54aplAssigned Tokgv => apl
2015-07-21 18:54aplStatusnew => assigned
2015-07-21 21:48gitNote Added: 0043248
2015-07-22 15:37aplNote Added: 0043294
2015-07-22 15:37aplAssigned Toapl => kgv
2015-07-22 15:37aplStatusassigned => resolved
2015-07-22 15:37aplSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=11062#r11062
2015-07-22 15:53kgvNote Added: 0043295
2015-07-22 15:53kgvAssigned Tokgv => bugmaster
2015-07-22 15:53kgvSeverityminor => trivial
2015-07-22 15:53kgvStatusresolved => reviewed
2015-07-22 15:53kgvTarget Version7.1.0 => 7.0.0
2015-07-24 15:21gitNote Added: 0043414
2015-07-24 15:21apvNote Added: 0043415
2015-07-24 15:21apvAssigned Tobugmaster => apv
2015-07-27 12:26apvTest case number => bugs vis bug25775
2015-07-27 13:27apvNote Added: 0043461
2015-07-27 13:27apvAssigned Toapv => bugmaster
2015-07-27 13:27apvStatusreviewed => tested
2015-07-31 12:31bugmasterChangeset attached => occt master f42753ed
2015-07-31 12:31bugmasterStatustested => verified
2015-07-31 12:31bugmasterResolutionopen => fixed
2015-08-14 10:53gitNote Added: 0044157
2015-08-26 11:14abvTarget Version7.0.0 => 6.9.1
2015-08-28 11:44skiChangeset attached => occt master ba38396e
2015-08-28 11:44skiAssigned Tobugmaster => ski
2015-08-28 12:54aplAdditional Information Updatedbug_revision_view_page.php?rev_id=11374#r11374
2015-10-16 14:56aivStatusverified => closed
2015-10-23 20:51aivFixed in Version => 6.9.1

Notes
(0043248)
git   
2015-07-21 21:48   
Branch CR25775 has been created by apl.

SHA-1: 4e4d05f4128cf65c61b0d4cc04a0bebe1ca3fbb4


Detailed log of new commits:

Author: apl
Date: Tue Jul 21 21:29:09 2015 +0300

    0025775: "Default Gradient Background" in V3d_Viewer has no effect in new created V3d_View.
(0043294)
apl   
2015-07-22 15:37   
Dear Kirill,

Please review CR25775.
(0043295)
kgv   
2015-07-22 15:53   
Please test the patch.
(0043414)
git   
2015-07-24 15:21   
Branch CR25775 has been updated forcibly by apv.

SHA-1: 1605a47ae999a235f5983a7a47b8418dccc162bd
(0043415)
apv   
2015-07-24 15:21   
Branch CR25775 has been rebased on the current master
(0043461)
apv   
2015-07-27 13:27   
Dear BugMaster,

Branch CR25775 from occt git-repository (and master from products git-repository) was compiled on Linux, MacOS and Windows platforms and tested.
SHA-1: 1605a47ae999a235f5983a7a47b8418dccc162bd

Number of compiler warnings:
occt component:
   Linux: 15 (15 on master)
   Windows: 0 (0 on master)
products component:
   Linux: 39 (39 on master)
   Windows: 0 (0 on master)

Regressions/Differences:
Not detected

Testing cases:
bugs vis bug25775 - OK
http://occt-tests/CR25775-master-occt-64/Debian70-64/bugs/vis/bug25775.html [^]
http://occt-tests/CR25775-master-occt-64/Windows-64-VC10/bugs/vis/bug25775.html [^]

Testing on Linux:
Total MEMORY difference: 100028160 / 99899746 [+0.13%]
Total CPU difference: 17390.559999999634 / 17401.309999999412 [-0.06%]

Testing on Windows:
Total MEMORY difference: 57709015 / 58593510 [-1.51%]
Total CPU difference: 16141.095867898925 / 16889.713466699293 [-4.43%]
(0044157)
git   
2015-08-14 10:53   
Branch CR25775 has been deleted by inv.

SHA-1: 1605a47ae999a235f5983a7a47b8418dccc162bd