artofillusion.ui
Interface MeshEditController

All Known Implementing Classes:
CurveEditorWindow, MeshEditorWindow, SkeletonShapeEditorWindow, SplineMeshEditorWindow, TriMeshEditorWindow, TubeEditorWindow, UVMappingWindow

public interface MeshEditController

This interface represents an object which coordinates the editing of a mesh.


Field Summary
static int EDGE_MODE
           
static int FACE_MODE
           
static int POINT_MODE
           
 
Method Summary
 double getMeshTension()
          Get the mesh tension level.
 ObjectInfo getObject()
          Get the object being edited.
 boolean[] getSelection()
          Get an array of flags specifying which parts of the object are selected.
 int[] getSelectionDistance()
          Get the distance of each vertex from the selected part of the object.
 int getSelectionMode()
          Get the current selection mode.
 int getTensionDistance()
          Get the distance over which mesh tension applies.
 void objectChanged()
          This should be called whenever the object has changed.
 void setMesh(Mesh mesh)
          Set the mesh being edited.
 void setSelection(boolean[] selected)
          Set an array of flags specifying which parts of the object are selected.
 void setSelectionMode(int mode)
          Set the selection mode.
 

Field Detail

POINT_MODE

static final int POINT_MODE
See Also:
Constant Field Values

EDGE_MODE

static final int EDGE_MODE
See Also:
Constant Field Values

FACE_MODE

static final int FACE_MODE
See Also:
Constant Field Values
Method Detail

getObject

ObjectInfo getObject()
Get the object being edited.


setMesh

void setMesh(Mesh mesh)
Set the mesh being edited.


objectChanged

void objectChanged()
This should be called whenever the object has changed.


getSelectionMode

int getSelectionMode()
Get the current selection mode. This will be POINT_MODE, EDGE_MODE, or FACE_MODE.


setSelectionMode

void setSelectionMode(int mode)
Set the selection mode. The allowed values are POINT_MODE, EDGE_MODE, and FACE_MODE, although some modes may not be permitted for some controllers.


getSelection

boolean[] getSelection()
Get an array of flags specifying which parts of the object are selected. Depending on the selection mode and type of object, this may correspond to vertices, faces, edges, etc.


setSelection

void setSelection(boolean[] selected)
Set an array of flags specifying which parts of the object are selected. Depending on the selection mode and type of object, this may correspond to vertices, faces, edges, etc.


getSelectionDistance

int[] getSelectionDistance()
Get the distance of each vertex from the selected part of the object. This is 0 for a selected vertex, 1 for a vertex adjacent to a selected one, etc., up to a specified maximum distance. For vertices more than the maximum distance for a selected one, it is -1.


getMeshTension

double getMeshTension()
Get the mesh tension level.


getTensionDistance

int getTensionDistance()
Get the distance over which mesh tension applies.



Copyright © 1999-2011 by Peter Eastman.