C# Class SampleCsDragDrop.SampleCsDropTarget

The SampleCsDropTarget class
Inheritance: MRhinoDropTarget
Exibir arquivo Open project: mcneel/Rhino4Samples_DotNet Class Usage Examples

Public Methods

Method Description
GetSampleCsDragData ( DataObject data ) : SampleCsDragData

Extract SampleCsDragDropData from DataObject

OnDropOnLayerListCtrl ( IWin32Window layerListCtrl, int layerIndex, DataObject data, DragDropEffects dropEffect, Point point ) : bool

This method is called when the drag and drop operation is completed and the item being dragged was dropped on the Rhino layer list control.

OnDropOnObject ( IRhinoObjRef objRef, MRhinoView rhinoView, DataObject data, DragDropEffects dropEffect, Point point ) : bool

This method is called when the drag and drop operation is completed and the item being dragged was dropped on a valid, top level Rhino object.

OnDropOnRhinoView ( MRhinoView rhinoView, DataObject data, DragDropEffects effect, Point point ) : bool

This method is called when the drag and drop operation is completed and the item being dragged was dropped on a Rhino view and did not land on a selectable object.

SupportDataObject ( DataObject data ) : bool

The first plug-in that returns true will get control of the drag and drop operation. You should check to see if your data is included in the specified DataObject and only return true if it is.

Method Details

GetSampleCsDragData() public method

Extract SampleCsDragDropData from DataObject
public GetSampleCsDragData ( DataObject data ) : SampleCsDragData
data System.Windows.Forms.DataObject
return SampleCsDragData

OnDropOnLayerListCtrl() public method

This method is called when the drag and drop operation is completed and the item being dragged was dropped on the Rhino layer list control.
public OnDropOnLayerListCtrl ( IWin32Window layerListCtrl, int layerIndex, DataObject data, DragDropEffects dropEffect, Point point ) : bool
layerListCtrl IWin32Window
layerIndex int
data System.Windows.Forms.DataObject
dropEffect DragDropEffects
point Point
return bool

OnDropOnObject() public method

This method is called when the drag and drop operation is completed and the item being dragged was dropped on a valid, top level Rhino object.
public OnDropOnObject ( IRhinoObjRef objRef, MRhinoView rhinoView, DataObject data, DragDropEffects dropEffect, Point point ) : bool
objRef IRhinoObjRef
rhinoView MRhinoView
data System.Windows.Forms.DataObject
dropEffect DragDropEffects
point Point
return bool

OnDropOnRhinoView() public method

This method is called when the drag and drop operation is completed and the item being dragged was dropped on a Rhino view and did not land on a selectable object.
public OnDropOnRhinoView ( MRhinoView rhinoView, DataObject data, DragDropEffects effect, Point point ) : bool
rhinoView MRhinoView
data System.Windows.Forms.DataObject
effect DragDropEffects
point Point
return bool

SupportDataObject() public method

The first plug-in that returns true will get control of the drag and drop operation. You should check to see if your data is included in the specified DataObject and only return true if it is.
public SupportDataObject ( DataObject data ) : bool
data System.Windows.Forms.DataObject
return bool