Mon, 01/23/2006 - 09:12
Forums:
I want to draw shapes that are not selectable at all. The solution I came up with is to derive UnselectableShape class from AIS_Shape and implement an empty ComputeSelection method. Is this an exceptable method?
class UnselectableShape : public AIS_Shape
{
public:
UnselectableShape(const TopoDS_Shape& shap) : AIS_Shape(shap) {}
protected:
void ComputeSelection(const Handle(SelectMgr_Selection)&, const Standard_Integer)
{
}
};
Mon, 01/23/2006 - 17:15
Simlpy use AIS_InteractiveObject::UnsetSelectionMode to unset the selection mode of an AIS-Object.