artofillusion
Class TriMeshViewer

java.lang.Object
  extended by CustomWidget
      extended by artofillusion.ViewerCanvas
          extended by artofillusion.ObjectViewer
              extended by artofillusion.MeshViewer
                  extended by artofillusion.TriMeshViewer

public class TriMeshViewer
extends MeshViewer

The TriMeshViewer class is a component which displays a TriangleMesh object and allow the user to edit it.


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
TriMeshViewer(MeshEditController window, RowContainer p)
           
 
Method Summary
 int findClickTarget(java.awt.Point pos, Vec3 uvw)
          Determine which vertex, edge, or face (depending on the current selection mode) the mouse was clicked on.
 void updateImage()
          Subclasses should override this to draw the contents of the canvas, but should begin by calling super.updateImage() to display the grid.
 
Methods inherited from class artofillusion.MeshViewer
estimateDepthRange, getLockedJoints, getMeshVisible, getSelectedJoint, getSkeletonDetached, getSkeletonVisible, getSurfaceTextureParameter, getSurfaceVisible, isJointLocked, lockJoint, setMeshVisible, setSelectedJoint, setSkeletonDetached, setSkeletonVisible, setSurfaceTextureParameter, setSurfaceVisible, unlockJoint
 
Methods inherited from class artofillusion.ObjectViewer
beginDraggingSelection, endDraggingSelection, getController, getDisplayCoordinates, getFreehandSelection, getScene, getSceneVisible, getUseWorldCoords, previewObject, selectionRegionContains, selectionRegionIntersects, setFreehandSelection, setScene, setSceneVisible, setUseWorldCoords, viewChanged
 
Methods inherited from class artofillusion.ViewerCanvas
addViewerControl, addViewerControl, adjustCamera, copyOrientationFromCamera, drawBorder, drawBox, drawBoxes, drawDraggedShape, drawHRule, drawImage, drawLine, drawShape, drawString, drawVRule, fillShape, frameBox, getActionProcessor, getBoundCamera, getCamera, getCanvasDrawer, getCurrentTool, getDefaultRotationCenter, getDrawFocus, getGridSpacing, getMinimumSize, getOrientation, getPreferredSize, getRenderMode, getRotationCenter, getScale, getShowAxes, getShowGrid, getSnapToGrid, getSnapToSubdivisions, getTemplateImage, getTemplateShown, getViewerControls, getViewerControlWidgets, isOpenGLAvailable, isPerspective, prepareCameraForRendering, removeViewerControl, renderBox, renderBoxes, renderImage, renderLine, renderLine, renderMesh, renderMeshTransparent, renderWireframe, setAltTool, setBoundCamera, setDrawFocus, setGrid, setMetaTool, setOrientation, setPerspective, setPopupMenuManager, setPreferredSize, setRenderMode, setRotationCenter, setScale, setShowAxes, setShowTemplate, setTemplateImage, setTemplateImage, setTool
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TriMeshViewer

public TriMeshViewer(MeshEditController window,
                     RowContainer p)
Method Detail

updateImage

public void updateImage()
Description copied from class: ViewerCanvas
Subclasses should override this to draw the contents of the canvas, but should begin by calling super.updateImage() to display the grid.

Overrides:
updateImage in class ObjectViewer

findClickTarget

public int findClickTarget(java.awt.Point pos,
                           Vec3 uvw)
Determine which vertex, edge, or face (depending on the current selection mode) the mouse was clicked on. If the click was on top of multiple objects, priority is given to ones which are currently selected, and then to ones which are in front. If the click is not over any object, -1 is returned.



Copyright © 1999-2011 by Peter Eastman.