View Issue Details

IDProjectCategoryView StatusLast Update
0000529CommunityOCCT:Visualizationpublic2011-12-15 17:54
ReporteremoAssigned Tosav 
PrioritynormalSeverityfeature 
Status closedResolutionunable to reproduce 
OSAll 
Summary0000529: Adding a method AIS_InteractiveContext::SetPreselected
DescriptionThis improvement proposal has been added by Francois Lauzon at
http://www.opencascade.org/forumorg/bug.php?bug_id=62&f=8 :

=======

A method to preselect an interactive by software would be quite usefull, for
example you have a tree list that show your model and you want to preselect them
when the user move the mouse over the widgets.

Here is a suggestion, I've attached an implementation, based on the MoveTo
method, but I don't know much about the internal of InteractiveContext and it
may break some stuff (or maybe not).

========

Additional discussion:

------
Patrik Muller:

I'm not sure - but there is

void SetCurrentObject
(const Handle(AIS_InteractiveObject)& aniobj,

  const Standard_Boolean
   updateviewer = Standard_True
)

So if you store the handle and combine it with your "TreeItem" data - wouldn't
that give this result??

--

Francois Lauzon:

I've tried it, but SetCurrentObject will actually highlight and select the
object, what I want his pre-selection highlight (the light blue one) like you've
got using MoveTo.

------
TagsNo tags attached.
Test case number

Attached Files

Activities

2002-07-11 10:58

 

AIS_InteractiveContext.txt (2,865 bytes)   

Issue History

Date Modified Username Field Change
2002-07-12 13:46 bugmaster Assigned To bugmaster => gg
2002-07-12 13:46 bugmaster Status new => assigned
2002-09-12 21:08 bugmaster Assigned To gg => sav
2003-01-10 15:53 sav Status assigned => resolved
2003-01-10 16:49 bugmaster Status resolved => closed
2003-01-10 16:49 bugmaster Resolution @0@ => unable to reproduce
2011-08-02 11:24 bugmaster Category OCCT:VIZ => OCCT:Visualization
2011-12-15 17:54 bugmaster Project Open CASCADE => Community