Interactors
![]() 5/2/2017 7:17 PM
|
---|
Hi,
I masted most stuff I wanted to do, but now I'm stucking to unterstand how that mechanism with the WW.Cad.Actions.SelectInteractor.MoveInteractor e.g. should work. I found some refs and (very old) example code where it's used more less. I found an thread about the CadEditControl and some code (from 2013!) but that don't helps me much :/
It's possible to see some current source how the move is cadlib conform?
kind regards
|
![]() 5/3/2017 11:16 AM
|
---|
Hi,
The SelectInteractor takes care of mouse selection. Then if there is a non-empty selection, the SelectInteractor.MoveInteractor can do a selection move interaction. This is started by either a left mouse down event, or activation by calling the Activate() method. If property StartInteractionOnMouseDownAtSelectionRectangle is true (default), the interaction starts if the mouse down event takes place on the selection rectangle.
- Wout
|
![]() 5/3/2017 7:04 PM
|
---|
Hi,
that's not what I mean.
I wrote a class which provides some more selections with add,sub,in rect,outer rect, etc. .. that works fine .. now I'm tryin to create a selectinteractor for using in moveinteractor
snippted:
C# Code: var getCollection = _SelectionBuffer. C# Code: _wireframeGraphicsCache = new WireframeGraphicsCache( |
![]() 5/3/2017 10:19 PM
|
---|
Hi,
Yes, the editing bits are officially not part of CadLib, as it's mostly prototype and it gets pretty complex and would require a disproportionate amount of support. So it's provided as is basically.
The SelectInteractor does have a method Select(List<DxfEntity> entities, Matrix4D projectionTransform) where you should be able to pass your own selection, and from that point onwards it should be business as usual.
- Wout
|