MantisBT
Mantis Bug Tracker Workflow

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0032456Open CASCADE[OCCT] OCCT:DRAWpublic2021-06-23 10:242021-06-23 10:27
Reporterkgv 
Assigned Tokgv 
PrioritynormalSeverityminor 
StatusnewResolutionopen 
PlatformOSOS Version
Product Version[OCCT] 7.1.0 
Target Version[OCCT] 7.6.0*Fixed in Version 
Summary0032456: Draw Harness, ViewerTest - map of interactive objects GetMapOfAIS() should be bound to active AIS_InteractiveContext
DescriptionGetMapOfAIS() is a global map of displayed interactive objects.

ViewerTest allows creation of multiple AIS_InteractiveContext instances, in which case attempt to display object in another context leads to failures.
Assertion triggerred by AIS_InteractiveContext is expected, but from ViewerTest point of view this looks like misbehavior and limitation.

If GetMapOfAIS() will be bound to the active AIS_InteractiveContext, it will be possible displaying the same shape within the different Contexts simultaneously (but having different AIS_InteractiveObject and different presentation properties).
This shouldn't lead to logical issues, as there is no interface registering presentation in GetMapOfAIS(), but not in Context ("vremove" removes presentation from both places and "verase" keeps also in both places).

It is also proposed revising GetMapOfAIS() interface and global variables in ViewerTest package in scope of the patch to provide some more clean and manageable API instead of current set of seldom methods declared only in .cxx.
Steps To Reproduce
pload MODELING VISUALIZATION
box b 2 0 0 1 2 3
psphere s 1

vinit d1/v1/v1
vdisplay b
vfit
# OK

vinit d2/v1/v1
vdisplay s
vfit
# OK
vdisplay b
# KO

Output:
An exception was caught 000002967B122920 : Standard_ProgramError: AIS_InteractiveContext - object has 
been already displayed in another context!

TagsNo tags attached.
Test case number
Attached Files

- Relationships
related to 0024141assignedkgv Draw Harness, ViewerTest - AIS_InteractiveContext should be explicitly cleared before removal 
child of 0027957closedapn Visualization, AIS_InteractiveContext - protect from displaying the same AIS_InteractiveObject within multiple contexts 

-  Notes
There are no notes attached to this issue.

- Issue History
Date Modified Username Field Change
2021-06-23 10:24 kgv New Issue
2021-06-23 10:24 kgv Assigned To => kgv
2021-06-23 10:27 kgv Relationship added child of 0027957
2021-06-23 10:27 kgv Product Version => 7.1.0
2021-06-23 10:27 kgv Relationship added related to 0024141


Copyright © 2000 - 2021 MantisBT Team
Powered by Mantis Bugtracker