View Issue Details

IDProjectCategoryView StatusLast Update
0007251Open CASCADEOCCT:Visualizationpublic2012-01-16 18:24
ReportersanAssigned Toasl 
PrioritynormalSeverityfeature 
Status closedResolutionfixed 
OSAll 
Fixed in Version5.2.3 
Summary0007251: Provide some means to control selection activation on displaying an object in global context
DescriptionCurrently, default selection mode is always activated when displaying an object
through AIS_InteractiveContext::Display( AIS_IO, update ). This results in at
least two negative consequences:

1. Time for displaying an object for the first time is considerable longer due
to selection activation.
2. Afterwards, interactive selection in local context is slower, for this
drawback ASL reported a workaround: call Clear() for the main viewer selector
in AIS_InteractiveContext (this clears all data structures filled during Display
() for the object). Interactive detection works much faster after calling Clear
(), however this is not a well-analyzed and straightforward way to deal with
selection.

It's proposed to add 3rd argument to AIS_InteractiveContext::Display( AIS_IO,
update ): "Activate" flag equal to TRUE by default. In case if it's FALSE, Load
() and Activate() methods of selection manager shouldn't be called from Display
().
Additional information
and documentation updates
Documentation remark, added by ASL 2005-04-22 08:26:03:

Changes:
In the class AIS_InteractiveContext there are two new methods:
    SetAutoActivateSelection( const Standard_Boolean );
    Standard_Boolean GetAutoActivateSelection( me );
They allow to read and to set state of "auto selection activating" property. The
default selection mode will be activated in method Display( object, update )
only if it is true. Variant of method Display with explicit passing of selection
mode will activate it independently of "auto selection activating" as usual (not
changed).
Default state of this property is true.

Example of using:

context->SetAutoActivateSelection( Standard_False );
context->Display( some_obj ); //selection will not be activated here
context->SetAutoActivateSelection( Standard_True );

Modified entities:
AIS_InteractiveContext.cdl
AIS_InteractiveContext.cxx
TagsNo tags attached.
Test case number

Activities

There are no notes attached to this issue.

Issue History

Date Modified Username Field Change
2004-11-19 07:58 san CC => vtn
2004-11-19 11:52 bugmaster Assigned To bugmaster => vtn
2004-11-19 11:52 bugmaster Status new => assigned
2005-01-12 16:30 bugmaster Assigned To vtn => san
2005-04-19 10:28 san Assigned To san => ael
2005-04-22 09:37 san Assigned To ael => asl
2005-04-22 10:26 asl Status assigned => resolved
2005-04-25 10:14 bugmaster Status resolved => verified
2005-05-06 15:31 bugmaster Status verified => closed
2005-05-06 15:31 bugmaster Resolution @0@ => fixed
2011-08-02 11:24 bugmaster Category OCCT:VIZ => OCCT:Visualization
2012-01-16 18:24 atp Description Updated
2012-01-16 18:24 atp Additional Information Updated