MantisBT
Mantis Bug Tracker Workflow

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0030124Open CASCADE[OCCT] OCCT:Visualizationpublic2018-09-10 19:012018-09-10 19:08
Reporterkgv 
Assigned Tomnv 
PrioritynormalSeverityminor 
StatusassignedResolutionopen 
PlatformOSOS Version
Product Version[OCCT] 7.3.0 
Target Version[OCCT] 7.4.0*Fixed in Version 
Summary0030124: Visualization, AIS_InteractiveObject - clean up confusing Presentation invalidation logic
DescriptionAIS_InteractiveObject has several properties related to presentation invalidation:
- RecomputeEveryPrs()/ListOfRecomputeModes()/MustRecomputePrs()/SetRecomputeOk()
- ToBeUpdated()/SetToUpdate()

The usage of first set of methods looks like a nonsense - they are used as temporary flags within modified object while it is modified by methods like AIS_InteractiveContext::SetWidth() so that invalidated modes are recomputed by AIS_InteractiveContext::redisplayPrsRecModes(). At the same time, RecomputeEveryPrs() flag is messed up with the list of invalidated modes. The list of invalidated modes is stored as AIS_InteractiveObject class field regardless of existence of these modes.

The second set looks more clear, since they invalidate already computed presentations and handled by AIS_InteractiveContext::redisplayPrsModes() as well as by PrsMgr_PresentationManager.

It looks unreasonable having 2 duplicated mechanisms for invalidating presentations, so that one (first) should be removed and replaced by another.
TagsNo tags attached.
Test case number
Attached Files

- Relationships
related to 0029988verifiedbugmaster Community AIS_Shape - SetWidth() and SetColor() has no effect for FaceBoundary 

-  Notes
There are no notes attached to this issue.

- Issue History
Date Modified Username Field Change
2018-09-10 19:01 kgv New Issue
2018-09-10 19:01 kgv Assigned To => kgv
2018-09-10 19:02 kgv Relationship added related to 0029988
2018-09-10 19:08 kgv Assigned To kgv => mnv
2018-09-10 19:08 kgv Status new => assigned


Copyright © 2000 - 2018 MantisBT Team
Powered by Mantis Bugtracker