
Wed, 07/21/2010 - 18:05
Forums:
I refered example of of OCC and used ISession_Text.h/cpp classes directly into my code. Its showing the text but i couldnt able to select it.
If i zoomin/zoomout the view its size will not change..
I want to select this text, and do drag operation on it.
Pls give some suggetions...
Thank u
-Nitin
Thu, 07/22/2010 - 00:22
Hi Nitin,
I am not 100% sure but did you try overloading ComputeSelection(const Handle(SelectMgr_Selection)& aSelection,const Standard_Integer aMode) function?
see AIS_Axis.cxx for example, I defined my own axis after deriving my class from AIS_Axis. I was unable to select the axis till I overloaded ComputeSelection function.
Venu
Thu, 07/22/2010 - 08:01
Hi Venu,
I tried to overload ComputeSelection method. In that StdSelect_BRepSelectionTool::Load(...) method needs TopoDS_Shape object, My Isession_Text class is derived from AIS_InteractiveObject not from TopoDS_Shape.
Can you pls suggest me how can i overload that method, Currently that method is blank in my code.
- Nitin
Sat, 07/24/2010 - 03:20
Hi Nitin,
I myself didn't implement selectable text though I am able to draw text. Pl take a look at this thread, not sure if you already have seen this. If you get it to work, please let me know.
http://www.opencascade.org/org/forum/thread_1528/
Thanks,
Venu