this is my code ,thanks a lot
Handle(AIS_InteractiveContex)mycontext=.....
TopoDS_Shape aBox1=BrepPrimAPI_MakeBox(5.0,10.0,15.0)
Handle(AIS_Shape) ais_shape=new AIS_Shape(aBox1);
mycontext->Display(ais_Shape,true);
If you want displaying a shape, that shouldn't be selectable, then you may use a longer method AIS_InteractiveContext::Display() and pass -1 as selection mode:
hello! I have another question. i want change the selectionStyle .the follow is my code
the lineAspect is not work. the width and the theType is not changed when i select edge. Can you let me know if im doing this wrong
i want change the selectionStyle .the follow is my code the lineAspect is not work. the width and the theType is not changed when i select edge. Can you let me know if im doing this wrong
In general, highlighting style allows overriding only color, display mode and shading material properties - as it reuses existing presentation. The only exeption is local highlighting of subshapes, but that logic also doesn't expect different styles for main and highlighted presentations.
For changing this behavior you would have to subclass AIS_Shape and implement own highlight logic.
Wed, 08/09/2023 - 12:25
Hello, could you share more information. Code samples and other, as much as possible.
Best regards, Dmitrii.
Thu, 08/10/2023 - 04:13
this is my code ,thanks a lot
Handle(AIS_InteractiveContex)mycontext=.....
TopoDS_Shape aBox1=BrepPrimAPI_MakeBox(5.0,10.0,15.0)
Handle(AIS_Shape) ais_shape=new AIS_Shape(aBox1);
mycontext->Display(ais_Shape,true);
Thu, 08/10/2023 - 13:12
If you want displaying a shape, that shouldn't be selectable, then you may use a longer method
AIS_InteractiveContext::Display()
and pass-1
as selection mode:Thu, 08/10/2023 - 13:39
Thanks for your reply.
Best regards, LuKe.
Fri, 08/25/2023 - 04:08
hello! I have another question. i want change the selectionStyle .the follow is my code
the lineAspect is not work. the width and the theType is not changed when i select edge. Can you let me know if im doing this wrong
Fri, 08/25/2023 - 06:21
Luke wrote:
In general, highlighting style allows overriding only color, display mode and shading material properties - as it reuses existing presentation. The only exeption is local highlighting of subshapes, but that logic also doesn't expect different styles for main and highlighted presentations.
For changing this behavior you would have to subclass
AIS_Shape
and implement own highlight logic.