artofillusion
Class TransformDialog

java.lang.Object
  extended by BDialog
      extended by artofillusion.TransformDialog

public class TransformDialog
extends BDialog

This class implements the dialog box which is used for the "Object Layout" and "Transform Object" commands. It allows the user enter values for the position, orientation, and size of an object. The initial values are passed to the constructor in values[]. If this argument is omitted, all of the fields will initially be blank. If transformLabels is true, the rows will be labelled "Move", "Rotate", and "Scale". If it is false, they will be labelled "Position", "Orientation", and "Size".


Constructor Summary
TransformDialog(BFrame parent, java.lang.String title, boolean transformLabels, boolean extraOptions)
           
TransformDialog(BFrame parent, java.lang.String title, double[] values, boolean transformLabels, boolean extraOptions)
           
TransformDialog(BFrame parent, java.lang.String title, double[] values, boolean transformLabels, boolean extraOptions, boolean show)
           
 
Method Summary
 boolean applyToChildren()
          Determine whether the operation should apply to unselected children of selected objects.
 boolean clickedOk()
          Determine whether the user clicked the OK button.
 double[] getValues()
          Get the array of values the user entered.
 boolean useSelectionCenter()
          Determine whether rotations should be around the center of each object, or the center of the entire selection.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TransformDialog

public TransformDialog(BFrame parent,
                       java.lang.String title,
                       double[] values,
                       boolean transformLabels,
                       boolean extraOptions,
                       boolean show)

TransformDialog

public TransformDialog(BFrame parent,
                       java.lang.String title,
                       double[] values,
                       boolean transformLabels,
                       boolean extraOptions)

TransformDialog

public TransformDialog(BFrame parent,
                       java.lang.String title,
                       boolean transformLabels,
                       boolean extraOptions)
Method Detail

getValues

public double[] getValues()
Get the array of values the user entered.


clickedOk

public boolean clickedOk()
Determine whether the user clicked the OK button.


applyToChildren

public boolean applyToChildren()
Determine whether the operation should apply to unselected children of selected objects.


useSelectionCenter

public boolean useSelectionCenter()
Determine whether rotations should be around the center of each object, or the center of the entire selection.



Copyright © 1999-2011 by Peter Eastman.