|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectBDialog
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(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. |
ViewerCanvas[] |
getAllViews()
Get all ViewerCanvases contained in this window. |
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 java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public UVMappingWindow(BDialog parent, Object3D obj, UVMapping map)
Method Detail |
---|
public ObjectInfo getObject()
getObject
in interface MeshEditController
public void setMesh(Mesh mesh)
setMesh
in interface MeshEditController
public int getSelectionMode()
getSelectionMode
in interface MeshEditController
public void setSelectionMode(int mode)
setSelectionMode
in interface MeshEditController
public boolean[] getSelection()
getSelection
in interface MeshEditController
public void setSelection(boolean[] selected)
setSelection
in interface MeshEditController
public int[] getSelectionDistance()
getSelectionDistance
in interface MeshEditController
public double getMeshTension()
MeshEditController
getMeshTension
in interface MeshEditController
public int getTensionDistance()
MeshEditController
getTensionDistance
in interface MeshEditController
public void objectChanged()
objectChanged
in interface MeshEditController
public void displayRangeChanged()
public void setTextureCoords(Vec2[] coords)
public ToolPalette getToolPalette()
EditingWindow
getToolPalette
in interface EditingWindow
public void setTool(EditingTool tool)
setTool
in interface EditingWindow
public void setHelpText(java.lang.String text)
setHelpText
in interface EditingWindow
public BFrame getFrame()
getFrame
in interface EditingWindow
public void updateImage()
updateImage
in interface EditingWindow
public void updateMenus()
updateMenus
in interface EditingWindow
public void updateTextFields()
public void setUndoRecord(UndoRecord command)
setUndoRecord
in interface EditingWindow
public void setModified()
EditingWindow
setModified
in interface EditingWindow
public Scene getScene()
getScene
in interface EditingWindow
public ViewerCanvas getView()
getView
in interface EditingWindow
public ViewerCanvas[] getAllViews()
EditingWindow
getAllViews
in interface EditingWindow
public boolean confirmClose()
confirmClose
in interface EditingWindow
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |