
Mon, 03/15/2010 - 14:56
Forums:
Hi,everyone. I have created an AIS_Trihedron for display using the codes below:
Handle_Geom_Axis2Placement aTrihedronAxis=new Geom_Axis2Placement(gp::XOY());
myUCS = new AIS_Trihedron(aTrihedronAxis);
aAISContext->Display(myUCS,Standard_True);
the AIS_Trihedron serve as a "indicator" which telling the user where the local coordinate system is, but when I perform selecting in the AIS context, this AIS_Trihedron can be selected and deleted which is not what I want. Can anybody tell me how to make this AIS_Trihedron unselectable? Thanks!
Mon, 03/15/2010 - 15:23
Handle(AIS_Trihedron) aTrihedron;
Handle(Geom_Axis2Placement) aTrihedronAxis=new Geom_Axis2Placement(gp::XOY());
aTrihedron=new AIS_Trihedron(aTrihedronAxis);
aTrihedron->UnsetSelectionMode();
myAISContext->Display(aTrihedron);
Pawel
Tue, 03/16/2010 - 17:07
Thank you very much, Pawel, it worked!