|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectbuoy.event.EventSource
buoy.widget.Widget
buoy.widget.WidgetContainer
buoy.widget.WindowWidget
buoy.widget.BFrame
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 |
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 buoy.widget.BFrame |
|---|
getChildCount, getChildren, getComponent, getFrames, getIcon, getMenuBar, getTitle, isIconified, isMaximized, isResizable, remove, removeAll, setIcon, setIconified, setMaximized, setMenuBar, setResizable, setTitle |
| Methods inherited from class buoy.widget.WindowWidget |
|---|
getContent, getDefaultButton, isVisible, layoutChildren, pack, setBounds, setContent, setDefaultButton, toBack, toFront |
| Methods inherited from class buoy.widget.WidgetContainer |
|---|
isOpaque, setOpaque |
| Methods inherited from class buoy.widget.Widget |
|---|
addEventLink, dispatchEvent, getBackground, getBounds, getCursor, getFont, getMaximumSize, getMinimumSize, getName, getParent, getPreferredSize, hasFocus, isEnabled, isFocusable, repaint, requestFocus, setBackground, setCursor, setEnabled, setFocusable, setFont, setName |
| Methods inherited from class buoy.event.EventSource |
|---|
addEventLink, addEventLink, removeEventLink |
| 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, 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 ObjectEditorWindowpublic abstract void setMesh(Mesh mesh)
setMesh in interface MeshEditControllerpublic abstract boolean[] getSelection()
getSelection in interface MeshEditControllerpublic abstract void setSelection(boolean[] selected)
setSelection in interface MeshEditControllerpublic abstract int[] getSelectionDistance()
getSelectionDistance in interface MeshEditControllerpublic void objectChanged()
objectChanged in interface MeshEditControllerpublic Scene getScene()
EditingWindow
getScene in interface EditingWindowpublic void undoCommand()
ObjectEditorWindow
undoCommand in class ObjectEditorWindowpublic void redoCommand()
ObjectEditorWindow
redoCommand in class ObjectEditorWindowpublic void updateMenus()
EditingWindow
updateMenus in interface EditingWindowpublic 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 MeshEditControllerpublic int getTensionDistance()
MeshEditController
getTensionDistance in interface MeshEditControllerpublic 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 renderPreviewCommand()
public abstract void adjustDeltas(Vec3[] delta)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||