artofillusion.ui
Class Compound3DManipulator.HandleDraggedEvent

java.lang.Object
  extended by artofillusion.ui.Compound3DManipulator.HandleEvent
      extended by artofillusion.ui.Compound3DManipulator.HandleDraggedEvent
Enclosing class:
Compound3DManipulator

public class Compound3DManipulator.HandleDraggedEvent
extends Compound3DManipulator.HandleEvent

This is the event class generated when the user drags on a handle.


Constructor Summary
Compound3DManipulator.HandleDraggedEvent(ViewerCanvas view, Compound3DManipulator.HandleType handleType, Compound3DManipulator.Axis axis, java.awt.Rectangle screenBounds, BoundingBox selectionBounds, WidgetMouseEvent event, Mat4 transform)
          Create a HandleDraggedEvent for a MOVE drag.
Compound3DManipulator.HandleDraggedEvent(ViewerCanvas view, Compound3DManipulator.HandleType handleType, Compound3DManipulator.Axis axis, java.awt.Rectangle screenBounds, BoundingBox selectionBounds, WidgetMouseEvent event, Mat4 transform, double angle)
          Create a HandleDraggedEvent for a ROTATE drag.
Compound3DManipulator.HandleDraggedEvent(ViewerCanvas view, Compound3DManipulator.HandleType handleType, Compound3DManipulator.Axis axis, java.awt.Rectangle screenBounds, BoundingBox selectionBounds, WidgetMouseEvent event, Mat4 transform, double scale1, double scale2)
          Create a HandleDraggedEvent for a SCALE drag.
 
Method Summary
 double getPrimaryScale()
          Get the scale factor for the primary axis, if this is a SCALE drag.
 double getRotationAngle()
          Get the rotation angle in radians, if this is a ROTATE drag.
 double getSecondaryScale()
          Get the scale factor for the second axis, if this is a UV SCALE drag.
 Mat4 getTransform()
          Get a matrix which can be used to transform objects or vertices from their original positions to their moved, scaled, or rotated positions.
 
Methods inherited from class artofillusion.ui.Compound3DManipulator.HandleEvent
getAxis, getHandleType, getManipulator, getMouseEvent, getScreenBounds, getSelectionBounds, getView
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Compound3DManipulator.HandleDraggedEvent

public Compound3DManipulator.HandleDraggedEvent(ViewerCanvas view,
                                                Compound3DManipulator.HandleType handleType,
                                                Compound3DManipulator.Axis axis,
                                                java.awt.Rectangle screenBounds,
                                                BoundingBox selectionBounds,
                                                WidgetMouseEvent event,
                                                Mat4 transform)
Create a HandleDraggedEvent for a MOVE drag.


Compound3DManipulator.HandleDraggedEvent

public Compound3DManipulator.HandleDraggedEvent(ViewerCanvas view,
                                                Compound3DManipulator.HandleType handleType,
                                                Compound3DManipulator.Axis axis,
                                                java.awt.Rectangle screenBounds,
                                                BoundingBox selectionBounds,
                                                WidgetMouseEvent event,
                                                Mat4 transform,
                                                double angle)
Create a HandleDraggedEvent for a ROTATE drag.


Compound3DManipulator.HandleDraggedEvent

public Compound3DManipulator.HandleDraggedEvent(ViewerCanvas view,
                                                Compound3DManipulator.HandleType handleType,
                                                Compound3DManipulator.Axis axis,
                                                java.awt.Rectangle screenBounds,
                                                BoundingBox selectionBounds,
                                                WidgetMouseEvent event,
                                                Mat4 transform,
                                                double scale1,
                                                double scale2)
Create a HandleDraggedEvent for a SCALE drag.

Method Detail

getTransform

public Mat4 getTransform()
Get a matrix which can be used to transform objects or vertices from their original positions to their moved, scaled, or rotated positions.


getRotationAngle

public double getRotationAngle()
Get the rotation angle in radians, if this is a ROTATE drag.


getPrimaryScale

public double getPrimaryScale()
Get the scale factor for the primary axis, if this is a SCALE drag.


getSecondaryScale

public double getSecondaryScale()
Get the scale factor for the second axis, if this is a UV SCALE drag.



Copyright © 1999-2011 by Peter Eastman.