public SelectionChangedEventResult( IItem item, ObjectSelectionType objectSelection, int shapeId, Mat clickedOffset) : base(EventType.Selection3DChanged, item) { ObjectSelectionType = objectSelection; ShapeId = shapeId; ClickedOffset = clickedOffset; }
/// <inheritdoc /> public bool SelectedFeature(out ObjectSelectionType featureType, out int featureId) { Link.check_connection(); Link.send_line("G_ObjSelection"); Link.send_item(this); int isSelected = Link.rec_int(); featureType = (ObjectSelectionType)Link.rec_int(); featureId = Link.rec_int(); Link.check_status(); return(isSelected > 0); }
/// <inheritdoc /> public string GetPoints(ObjectSelectionType featureType, int featureId, out Mat pointList) { Link.check_connection(); Link.send_line("G_ObjPoint"); Link.send_item(this); Link.send_int((int)featureType); Link.send_int(featureId); pointList = Link.rec_matrix(); string name = Link.rec_line(); Link.check_status(); return(name); }