View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0007251 | Open CASCADE | OCCT:Visualization | public | 2004-11-19 07:57 | 2012-01-16 18:24 |
Reporter | Assigned To | ||||
Priority | normal | Severity | feature | ||
Status | closed | Resolution | fixed | ||
OS | All | ||||
Fixed in Version | 5.2.3 | ||||
Summary | 0007251: Provide some means to control selection activation on displaying an object in global context | ||||
Description | Currently, 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 | ||||
Tags | No tags attached. | ||||
Test case number | |||||
Date Modified | Username | Field | Change |
---|---|---|---|
2004-11-19 07:58 |
|
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 |
|
Assigned To | san => ael |
2005-04-22 09:37 |
|
Assigned To | ael => asl |
2005-04-22 10:26 |
|
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 |
|
Description Updated | |
2012-01-16 18:24 |
|
Additional Information Updated |