|
||||||||||
| 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.BDialog
artofillusion.texture.UVMappingWindow
public class UVMappingWindow
UVMappingWindow is a window for editing the UV texture coordinates at each vertex of a mesh.
| Field Summary |
|---|
| Fields inherited from interface artofillusion.ui.MeshEditController |
|---|
EDGE_MODE, FACE_MODE, POINT_MODE |
| Constructor Summary | |
|---|---|
UVMappingWindow(buoy.widget.BDialog parent,
Object3D obj,
UVMapping map)
|
|
| Method Summary | |
|---|---|
boolean |
confirmClose()
Confirm whether this window should be closed (possibly by displaying a message to the user), and then close it. |
void |
displayRangeChanged()
This is called when the displayed texture range changes. |
buoy.widget.BFrame |
getFrame()
Get the Frame for this EditingWindow: either the EditingWindow itself if it is a Frame, or its parent if it is a Dialog. |
double |
getMeshTension()
Get the mesh tension level. |
ObjectInfo |
getObject()
Get the object being edited in this window. |
Scene |
getScene()
Get the Scene which is being edited in this window. |
boolean[] |
getSelection()
Get an array of flags specifying which parts of the object are selected. |
int[] |
getSelectionDistance()
Selection distance is simply 0 if the vertex is selected, and -1 otherwise. |
int |
getSelectionMode()
Get the current selection mode. |
int |
getTensionDistance()
Get the distance over which mesh tension applies. |
ToolPalette |
getToolPalette()
Get the ToolPalette for this window. |
ViewerCanvas |
getView()
Get the ViewerCanvas in which the UV coordinates are being edited. |
void |
objectChanged()
This is called whenever the mesh has changed. |
void |
setHelpText(java.lang.String text)
Set the text to display at the bottom of the window. |
void |
setMesh(Mesh mesh)
Set the mesh being edited. |
void |
setModified()
Register that the scene or object contained in the window has been modified. |
void |
setSelection(boolean[] selected)
Set an array of flags specifying which parts of the object are selected. |
void |
setSelectionMode(int mode)
Set the current selection mode. |
void |
setTextureCoords(Vec2[] coords)
Update the texture coordinates of the mesh. |
void |
setTool(EditingTool tool)
Set the currently selected EditingTool. |
void |
setUndoRecord(UndoRecord command)
Set the current UndoRecord for this EditingWindow. |
void |
updateImage()
Update the image displayed in this window. |
void |
updateMenus()
This will be called whenever the selection changes, so rebuild the mesh and update the text fields. |
void |
updateTextFields()
Update the U and V text fields to reflect the current selection. |
| Methods inherited from class buoy.widget.BDialog |
|---|
getChildCount, getChildren, getComponent, getMenuBar, getTitle, isModal, isResizable, pack, remove, removeAll, setMenuBar, setModal, setResizable, setTitle |
| Methods inherited from class buoy.widget.WindowWidget |
|---|
dispose, getContent, getDefaultButton, isVisible, layoutChildren, setBounds, setContent, setDefaultButton, setVisible, 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 |
| Constructor Detail |
|---|
public UVMappingWindow(buoy.widget.BDialog parent,
Object3D obj,
UVMapping map)
| Method Detail |
|---|
public ObjectInfo getObject()
getObject in interface MeshEditControllerpublic void setMesh(Mesh mesh)
setMesh in interface MeshEditControllerpublic int getSelectionMode()
getSelectionMode in interface MeshEditControllerpublic void setSelectionMode(int mode)
setSelectionMode in interface MeshEditControllerpublic boolean[] getSelection()
getSelection in interface MeshEditControllerpublic void setSelection(boolean[] selected)
setSelection in interface MeshEditControllerpublic int[] getSelectionDistance()
getSelectionDistance in interface MeshEditControllerpublic double getMeshTension()
MeshEditController
getMeshTension in interface MeshEditControllerpublic int getTensionDistance()
MeshEditController
getTensionDistance in interface MeshEditControllerpublic void objectChanged()
objectChanged in interface MeshEditControllerpublic void displayRangeChanged()
public void setTextureCoords(Vec2[] coords)
public ToolPalette getToolPalette()
EditingWindow
getToolPalette in interface EditingWindowpublic void setTool(EditingTool tool)
setTool in interface EditingWindowpublic void setHelpText(java.lang.String text)
setHelpText in interface EditingWindowpublic buoy.widget.BFrame getFrame()
getFrame in interface EditingWindowpublic void updateImage()
updateImage in interface EditingWindowpublic void updateMenus()
updateMenus in interface EditingWindowpublic void updateTextFields()
public void setUndoRecord(UndoRecord command)
setUndoRecord in interface EditingWindowpublic void setModified()
EditingWindow
setModified in interface EditingWindowpublic Scene getScene()
getScene in interface EditingWindowpublic ViewerCanvas getView()
getView in interface EditingWindowpublic boolean confirmClose()
confirmClose in interface EditingWindow
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||