|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectBFrame
artofillusion.ObjectEditorWindow
artofillusion.MeshEditorWindow
public abstract class MeshEditorWindow
The MeshEditorWindow class represents the window for editing Mesh objects. This is an abstract class, with subclasses for various types of objects.
Field Summary |
---|
Fields inherited from interface artofillusion.ui.MeshEditController |
---|
EDGE_MODE, FACE_MODE, POINT_MODE |
Constructor Summary | |
---|---|
MeshEditorWindow(EditingWindow parent,
java.lang.String title,
ObjectInfo obj)
|
Method Summary | |
---|---|
abstract 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 |
bindSkeletonCommand()
Present a window for binding the selected vertices to the skeleton. |
void |
centerCommand()
|
abstract void |
deleteCommand()
Delete any parts of the mesh which are currently selected. |
void |
deleteJointCommand()
Delete the select joint from the skeleton. |
void |
dispose()
Save the display mode when the window is closed. |
void |
editJointCommand()
Allow the user to edit the selected joint. |
TextureParameter |
getFaceIndexParameter()
Get the extra texture parameter which was added to the mesh to keep track of face indices in the editor. |
TextureParameter |
getJointWeightParam()
Get the extra texture parameter which was added to the mesh to keep track of joint weighting. |
double |
getMeshTension()
Get the mesh tension level. |
Scene |
getScene()
Get the Scene which is being edited in this window. |
abstract boolean[] |
getSelection()
Get an array of flags specifying which parts of the mesh are selected. |
abstract int[] |
getSelectionDistance()
Get the distance of each vertex from a selected vertex. |
int |
getTensionDistance()
Get the distance over which mesh tension applies. |
boolean |
isExtraParameter(TextureParameter param)
Determine whether a TextureParameter was added to the mesh by the editor |
boolean |
isFreehand()
Determine whether to use freehand selection mode. |
void |
objectChanged()
This should be called whenever the object has changed. |
void |
randomizeCommand()
Displace selected vertices by a random amount. |
void |
redoCommand()
Redo the last action that was undone. |
void |
renderPreviewCommand()
Render a preview of the mesh. |
void |
setFreehand(boolean freehand)
Set whether to use freehand selection mode. |
void |
setJointParentCommand()
Allow the user to set the parent of the selected joint. |
abstract void |
setMesh(Mesh mesh)
Set the Mesh object for this viewer. |
void |
setParametersCommand()
Allow the user to set the texture parameters for selected vertices. |
void |
setPointsCommand()
Allow the user to enter new coordinates for one or more vertices. |
abstract void |
setSelection(boolean[] selected)
Set an array of flags specifying which parts of the mesh are selected. |
void |
setTensionCommand()
Allow the user to set the mesh tension. |
void |
transformPointsCommand()
Allow the user to transform one or more vertices. |
void |
unbindSkeletonCommand()
Detach points from the selected bone. |
void |
undoCommand()
Undo the most recent action. |
void |
updateMenus()
Update which menus are enabled. |
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.MeshEditController |
---|
getObject, getSelectionMode, setSelectionMode |
Methods inherited from interface artofillusion.ui.EditingWindow |
---|
confirmClose, getAllViews, getFrame, getToolPalette, getView, setHelpText, setModified, setTool, setUndoRecord, updateImage |
Constructor Detail |
---|
public MeshEditorWindow(EditingWindow parent, java.lang.String title, ObjectInfo obj)
Method Detail |
---|
public void dispose()
dispose
in class ObjectEditorWindow
public abstract void setMesh(Mesh mesh)
setMesh
in interface MeshEditController
public abstract boolean[] getSelection()
getSelection
in interface MeshEditController
public abstract void setSelection(boolean[] selected)
setSelection
in interface MeshEditController
public abstract int[] getSelectionDistance()
getSelectionDistance
in interface MeshEditController
public void objectChanged()
objectChanged
in interface MeshEditController
public Scene getScene()
EditingWindow
getScene
in interface EditingWindow
public void undoCommand()
ObjectEditorWindow
undoCommand
in class ObjectEditorWindow
public void redoCommand()
ObjectEditorWindow
redoCommand
in class ObjectEditorWindow
public void updateMenus()
EditingWindow
updateMenus
in interface EditingWindow
public boolean isFreehand()
public void setFreehand(boolean freehand)
public void setPointsCommand()
public void transformPointsCommand()
public void randomizeCommand()
public void centerCommand()
public void setTensionCommand()
public double getMeshTension()
MeshEditController
getMeshTension
in interface MeshEditController
public int getTensionDistance()
MeshEditController
getTensionDistance
in interface MeshEditController
public TextureParameter getFaceIndexParameter()
public TextureParameter getJointWeightParam()
public boolean isExtraParameter(TextureParameter param)
public void setParametersCommand()
public abstract void deleteCommand()
public void deleteJointCommand()
public void setJointParentCommand()
public void editJointCommand()
public void bindSkeletonCommand()
public void unbindSkeletonCommand()
public void renderPreviewCommand()
public abstract void adjustDeltas(Vec3[] delta)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |