How to make an object(AIS_Trihedron) unselectable?

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);

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!

Pawel's picture

Handle(AIS_Trihedron) aTrihedron;
Handle(Geom_Axis2Placement) aTrihedronAxis=new Geom_Axis2Placement(gp::XOY());
aTrihedron=new AIS_Trihedron(aTrihedronAxis);


davenkin's picture

Thank you very much, Pawel, it worked!