artofillusion
Class CurveEditorWindow

java.lang.Object
  extended by BFrame
      extended by artofillusion.ObjectEditorWindow
          extended by artofillusion.MeshEditorWindow
              extended by artofillusion.CurveEditorWindow
All Implemented Interfaces:
EditingWindow, MeshEditController
Direct Known Subclasses:
TubeEditorWindow

public class CurveEditorWindow
extends MeshEditorWindow
implements EditingWindow

The CurveEditorWindow class represents the window for editing Curve objects.


Field Summary
 
Fields inherited from interface artofillusion.ui.MeshEditController
EDGE_MODE, FACE_MODE, POINT_MODE
 
Constructor Summary
CurveEditorWindow(EditingWindow parent, java.lang.String title, ObjectInfo obj, java.lang.Runnable onClose, boolean allowTopology)
           
 
Method Summary
 void adjustDeltas(Vec3[] delta)
          Given a list of deltas which will be added to the selected vertices, calculate the corresponding deltas for the unselected vertices according to the mesh tension.
 void deleteCommand()
          Delete any parts of the mesh which are currently selected.
 void extendSelectionCommand()
          Extend the selection outward by one edge.
 ObjectInfo getObject()
          Get the object being edited in this window.
 boolean[] getSelection()
          Get an array of flags telling which vertices are currently selected.
 int[] getSelectionDistance()
          Get the distance of each vertex from a selected vertex.
 int getSelectionMode()
          The return value has no meaning, since there is only one selection mode in this window.
 void invertSelectionCommand()
          Invert the current selection.
 void selectAllCommand()
          Select the entire curve.
 void setMesh(Mesh mesh)
          Set the Mesh object for this viewer.
 void setObject(Object3D obj)
          Set the object being edited in this window.
 void setSelection(boolean[] sel)
          Set an array of flags specifying which parts of the mesh are selected.
 void setSelectionMode(int mode)
          This is ignored, since there is only one selection mode in this window.
 void setSmoothnessCommand()
           
 void subdivideCommand()
           
 void toggleClosedCommand()
           
 void updateMenus()
          Update which menus are enabled.
 
Methods inherited from class artofillusion.MeshEditorWindow
bindSkeletonCommand, centerCommand, deleteJointCommand, dispose, editJointCommand, getFaceIndexParameter, getJointWeightParam, getMeshTension, getScene, getTensionDistance, isExtraParameter, isFreehand, objectChanged, randomizeCommand, redoCommand, renderPreviewCommand, setFreehand, setJointParentCommand, setParametersCommand, setPointsCommand, setTensionCommand, transformPointsCommand, unbindSkeletonCommand, undoCommand
 
Methods inherited from class artofillusion.ObjectEditorWindow
confirmClose, getAllViews, getFrame, getToolPalette, getView, setCurrentView, setGridCommand, setHelpText, setModified, setTemplateCommand, setTool, setUndoRecord, setVisible, showAxesCommand, showTemplateCommand, toggleViewsCommand, updateImage
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface artofillusion.ui.EditingWindow
confirmClose, getAllViews, getFrame, getScene, getToolPalette, getView, setHelpText, setModified, setTool, setUndoRecord, updateImage
 

Constructor Detail

CurveEditorWindow

public CurveEditorWindow(EditingWindow parent,
                         java.lang.String title,
                         ObjectInfo obj,
                         java.lang.Runnable onClose,
                         boolean allowTopology)
Method Detail

getObject

public ObjectInfo getObject()
Get the object being edited in this window.

Specified by:
getObject in interface MeshEditController

setObject

public void setObject(Object3D obj)
Set the object being edited in this window.


setMesh

public void setMesh(Mesh mesh)
Description copied from class: MeshEditorWindow
Set the Mesh object for this viewer.

Specified by:
setMesh in interface MeshEditController
Specified by:
setMesh in class MeshEditorWindow

getSelection

public boolean[] getSelection()
Get an array of flags telling which vertices are currently selected.

Specified by:
getSelection in interface MeshEditController
Specified by:
getSelection in class MeshEditorWindow

setSelection

public void setSelection(boolean[] sel)
Description copied from class: MeshEditorWindow
Set an array of flags specifying which parts of the mesh are selected. Depending on the selection mode, this may correspond to vertices, faces, edges, etc.

Specified by:
setSelection in interface MeshEditController
Specified by:
setSelection in class MeshEditorWindow

getSelectionDistance

public int[] getSelectionDistance()
Description copied from class: MeshEditorWindow
Get the distance of each vertex from a selected vertex. This is 0 for a selected vertex, 1 for a vertex adjacent to a selected one, etc., up to a specified maximum distance. For vertices more than the maximum distance for a selected one, it is -1.

Specified by:
getSelectionDistance in interface MeshEditController
Specified by:
getSelectionDistance in class MeshEditorWindow

getSelectionMode

public int getSelectionMode()
The return value has no meaning, since there is only one selection mode in this window.

Specified by:
getSelectionMode in interface MeshEditController

setSelectionMode

public void setSelectionMode(int mode)
This is ignored, since there is only one selection mode in this window.

Specified by:
setSelectionMode in interface MeshEditController

updateMenus

public void updateMenus()
Description copied from interface: EditingWindow
Update which menus are enabled.

Specified by:
updateMenus in interface EditingWindow
Overrides:
updateMenus in class MeshEditorWindow

selectAllCommand

public void selectAllCommand()
Select the entire curve.


extendSelectionCommand

public void extendSelectionCommand()
Extend the selection outward by one edge.


invertSelectionCommand

public void invertSelectionCommand()
Invert the current selection.


deleteCommand

public void deleteCommand()
Description copied from class: MeshEditorWindow
Delete any parts of the mesh which are currently selected.

Specified by:
deleteCommand in class MeshEditorWindow

subdivideCommand

public void subdivideCommand()

setSmoothnessCommand

public void setSmoothnessCommand()

toggleClosedCommand

public void toggleClosedCommand()

adjustDeltas

public void adjustDeltas(Vec3[] delta)
Given a list of deltas which will be added to the selected vertices, calculate the corresponding deltas for the unselected vertices according to the mesh tension.

Specified by:
adjustDeltas in class MeshEditorWindow


Copyright © 1999-2011 by Peter Eastman.