|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectCustomWidget
artofillusion.ViewerCanvas
artofillusion.ObjectViewer
artofillusion.MeshViewer
artofillusion.texture.UVMappingViewer
public class UVMappingViewer
UVMappingViewer appears in the UVMappingWindow, and is used for editing the UV texture coordinates at each vertex of a mesh.
Field Summary |
---|
Fields inherited from class artofillusion.MeshViewer |
---|
HANDLE_SIZE |
Fields inherited from class artofillusion.ViewerCanvas |
---|
backgroundColor, disabledColor, handleColor, highlightColor, highValueColor, lineColor, lowValueColor, RENDER_FLAT, RENDER_RENDERED, RENDER_SMOOTH, RENDER_TEXTURED, RENDER_TRANSPARENT, RENDER_WIREFRAME, specialHighlightColor, surfaceColor, surfaceRGBColor, transparentColor, VIEW_BACK, VIEW_BOTTOM, VIEW_FRONT, VIEW_LEFT, VIEW_OTHER, VIEW_RIGHT, VIEW_TOP |
Constructor Summary | |
---|---|
UVMappingViewer(Texture2D tex,
UVMappingWindow window,
double minu,
double maxu,
double minv,
double maxv,
int component,
int sampling,
double time,
double[] param)
|
Method Summary | |
---|---|
double[] |
estimateDepthRange()
Estimate the range of depth values that the camera will need to render. |
MeshEditController |
getController()
Get the controller for editing the UV mesh. |
double |
getMaxU()
Get the maximum U value. |
double |
getMaxV()
Get the maximum V value. |
double |
getMinU()
Get the minimum U value. |
double |
getMinV()
Get the minimum V value. |
boolean[] |
getSelection()
Get a list of which vertices are selected. |
boolean |
isDragInProgress()
Get whether a mouse drag is currently in progress. |
void |
objectChanged()
This is called whenever the mesh has changed. |
void |
setDisplayedVertices(Vec2[] coord,
boolean[] display)
Rebuild the list of vertices to display. |
void |
setMesh(Mesh mesh)
Set the Mesh object for this viewer. |
void |
setParameters(double minu,
double maxu,
double minv,
double maxv)
Set the parameters for what part of the texture to display. |
void |
setParameters(double minu,
double maxu,
double minv,
double maxv,
int component,
int sampling)
Set the parameters for what part of the texture to display. |
void |
updateImage()
Subclasses should override this to draw the contents of the canvas, but should begin by calling super.updateImage() to display the grid. |
void |
updateVertexPositions(Vec2[] coord)
Update the positions of the displayed vertices. |
Methods inherited from class artofillusion.MeshViewer |
---|
getLockedJoints, getMeshVisible, getSelectedJoint, getSkeletonDetached, getSkeletonVisible, getSurfaceTextureParameter, getSurfaceVisible, isJointLocked, lockJoint, setMeshVisible, setSelectedJoint, setSkeletonDetached, setSkeletonVisible, setSurfaceTextureParameter, setSurfaceVisible, unlockJoint |
Methods inherited from class artofillusion.ObjectViewer |
---|
beginDraggingSelection, endDraggingSelection, getDisplayCoordinates, getFreehandSelection, getScene, getSceneVisible, getUseWorldCoords, previewObject, selectionRegionContains, selectionRegionIntersects, setFreehandSelection, setScene, setSceneVisible, setUseWorldCoords, viewChanged |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public UVMappingViewer(Texture2D tex, UVMappingWindow window, double minu, double maxu, double minv, double maxv, int component, int sampling, double time, double[] param)
Method Detail |
---|
public MeshEditController getController()
getController
in class ObjectViewer
public void setParameters(double minu, double maxu, double minv, double maxv)
public void setParameters(double minu, double maxu, double minv, double maxv, int component, int sampling)
public double[] estimateDepthRange()
estimateDepthRange
in class MeshViewer
public void updateImage()
ViewerCanvas
updateImage
in class ObjectViewer
public boolean[] getSelection()
public void setMesh(Mesh mesh)
public void setDisplayedVertices(Vec2[] coord, boolean[] display)
public void updateVertexPositions(Vec2[] coord)
public double getMinU()
public double getMaxU()
public double getMinV()
public double getMaxV()
public boolean isDragInProgress()
public void objectChanged()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |