View Issue Details

IDProjectCategoryView StatusLast Update
0032456Open CASCADEOCCT:DRAWpublic2021-08-24 15:04
Reporterkgv Assigned Tokgv  
PrioritynormalSeverityminor 
Status newResolutionopen 
Product Version7.1.0 
Target Version7.7.0 
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

Relationships

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

Activities

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
2021-08-24 15:04 kgv Target Version 7.6.0 => 7.7.0