generative modeling for Rhino
I have a question regarding the Rhino.Display.DisplayConduit class which i use as a base class for my own custom class. Is it possible to implement mousecall like
this.MouseDown +=new EventHandler<Rhino.Input.Custom.GetPointMouseEventArgs>(lol_MouseDown);
to get some interaction like nomal Rhinoobjects? (select,delete,etc...) Maybe where is some interface for this?
or is this only possible with the RMA... I was googleing and i only found something very uncertain that this could be possible..
thx in advance
the DisplayConduit is meant to draw objects that are not in the document. Object picking uses the document to search for objects to be picked. This results for now in the fact that you cannot pick objects from conduits.
I hope this helps,
so where is no possibility to crate a class with can be picked by a mouse?
DisplayPipeline geometry is not selected automatically. You could construct your logic that would find the object departing from its location and the mouse position. But generally you pick objects that are in the document. For this reason, you can also add grips and other similar tools to help picking to the document itself. After all, also Grasshopper uses a special conduit and you cannot pick its rendered objects.
I think Grasshopper is only catching the guid of the object refenced, not the object itself. So it tests if something was changed in the document and then compare it with a the registered objects guids.
Is it possible to implement a custom grip in a class, maybe where is a example existing...but i think grips are only for moving controlpoints... maybe i am wrong.
public class test_mouse_events : Rhino.UI.MouseCallback
public bool run = true;
public test_mouse_events() : base()
this.Enabled = true;
protected override void OnMouseDown(Rhino.UI.MouseCallbackEventArgs e)
if (e.Button == MouseButtons.Left)
if (e.Button == MouseButtons.Right)
this.Enabled = false;