use of maspack.render.Dragger3d.DragMode in project artisynth_core by artisynth.
the class GLMouseAdapter method updateDraggerModeAndFlags.
private void updateDraggerModeAndFlags(int mods, Dragger3d dragger) {
dragger.clearFlags();
int draggerFlags = 0;
Dragger3d.DragMode dragMode = Dragger3d.DragMode.OFF;
if ((mods & draggerConstrainMask) == draggerConstrainMask) {
draggerFlags |= Dragger3d.CONSTRAIN;
}
if ((mods & draggerRepositionMask) == draggerRepositionMask) {
draggerFlags |= Dragger3d.REPOSITION;
dragMode = Dragger3d.DragMode.REPOSITION;
} else if ((mods & draggerDragMask) == draggerDragMask) {
dragMode = Dragger3d.DragMode.DRAG;
}
dragger.setDragMode(dragMode);
dragger.setFlags(draggerFlags);
}