vmm3d.surface
Class SurfaceView
- java.lang.Object
-
- vmm3d.core.View
-
- vmm3d.core3D.View3D
-
- vmm3d.core3D.View3DWithLightSettings
-
- vmm3d.core3D.View3DLit
-
- vmm3d.surface.SurfaceView
-
- All Implemented Interfaces:
- java.util.EventListener, javax.swing.event.ChangeListener, Decorateable, Parameterizable
- Direct Known Subclasses:
- WeierstrassMinimalSurface.WMSView
public class SurfaceView extends View3DLit
-
-
Field Summary
-
Fields inherited from class vmm3d.core3D.View3DLit
NO_ORIENTATION, NORMAL_ORIENTATION, PATCH_RENDERING, REVERSE_ORIENTATION, WIREFRAME_RENDERING
-
Fields inherited from class vmm3d.core3D.View3D
CROSS_EYE_STEREO_VIEW, MONOCULAR_VIEW, RED_GREEN_STEREO_VIEW, STEREOGRAPH_VIEW
-
-
Constructor Summary
Constructors Constructor and Description SurfaceView()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description ActionListgetActions()Generates a list of "Action commands" that can be applied to this View.intgetGridSpacing()Set the spacing between grid lines that are drawn.booleangetShowUGridLines()Tells whether grid lines are drawn in the U direction.booleangetShowVGridLines()Tells whether grid lines are drawn in the V direction.voidsetExhibit(Exhibit exhibit)This method is overridden to set the orientation of a Surface exhibit from the defaultOrientation property of the Surface.voidsetGridSpacing(int gridSpacing)Determines how many grid lines are actually drawn.voidsetShowUGridLines(boolean showUGridLines)Set whether grid lines are drawn in the U direction.voidsetShowVGridLines(boolean showVGridLines)Set whether grid lines are drawn in the V direction.-
Methods inherited from class vmm3d.core3D.View3DLit
drawSurface, drawSurface, fillPolygon, getBlackAndWhite, getDragAsSurface, getOrientation, getPhongShading, getRenderingStyle, getSettingsCommands, getTransparency, getViewCommands, setBlackAndWhite, setDragAsSurface, setEnableThreeD, setOrientation, setPhongShading, setRenderingStyle, setTransparency, setViewStyle, takeExhibit
-
Methods inherited from class vmm3d.core3D.View3DWithLightSettings
addExtraXML, getLightingEnabled, getLightSettings, readExtraXML, setLightingEnabled, setLightSettings
-
Methods inherited from class vmm3d.core3D.View3D
clip, drawCollaredCurve, drawCollaredCurve, drawCollaredCurve, drawCurve, drawCurve, drawCurve, drawDot, drawLine, drawPixel, drawPixelDirect, drawPixels, drawString, drawWireframeSurface, finish, getDefaultMouseTask, getEnableThreeD, getOrthographicProjection, getTransform3D, getViewPoint, getViewStyle, getViewUp, moveStereographImages, setBackground, setDisplay, setOrthographicProjection, setTransform, setViewPoint, setViewUp, setWindowForUseWhileThreeDDisabled, stateChanged, stereographLeftEyeRect, stereographRightEyeRect
-
Methods inherited from class vmm3d.core.View
addDecoration, addParameter, beginDrawToOffscreenImage, clearDecorations, drawCurve, drawCurve, drawCurve, drawDot, drawLine, drawLine, drawLineDirect, drawPixel, drawPixel, drawPixels, drawString, drawString, endDrawToOffscreenImage, fillRectDirect, forceRedraw, getActionsForViewAndExhibit, getAdditionalAnimations, getAdditionalAnimationsForViewAndExhibit, getAntialiased, getApplyGraphics2DTransform, getBackground, getColor, getCurrentGraphics, getDecorations, getDisplay, getExhibit, getFastDrawing, getForeground, getImage, getName, getNeedRecalculate, getNeedRedraw, getParameterByName, getParameters, getPreserveAspect, getRequestedWindow, getSettingsCommandsForViewAndExhibit, getShowAxes, getStatusText, getTitle, getTransform, getViewAndExhibitParameters, getWindow, parameterChanged, removeDecoration, removeParameter, render, setAntialiased, setApplyGraphics2DTransform, setColor, setCurrentGraphics, setFastDrawing, setFastDrawing, setForeground, setName, setNeedRecalculate, setNeedRedraw, setPreserveAspect, setShowAxes, setStrokeSizeMultiplier, setWindow, setWindow
-
-
-
-
Method Detail
-
setGridSpacing
public void setGridSpacing(int gridSpacing)
Determines how many grid lines are actually drawn. A grid line is drawn every gridSpacing subpatches in each direction of the grid, except that the final grid line is always drawn. If the value of gridSpacing is set to 0, then no grid lines are drawn along the surface; an exception is that when the surface is drawn in wireframe and gridSpacing is 0, grid lines are drawn.
-
getGridSpacing
public int getGridSpacing()
Set the spacing between grid lines that are drawn.- See Also:
setGridSpacing(int)
-
getShowUGridLines
public boolean getShowUGridLines()
Tells whether grid lines are drawn in the U direction.- See Also:
setShowUGridLines(boolean)
-
setShowUGridLines
public void setShowUGridLines(boolean showUGridLines)
Set whether grid lines are drawn in the U direction. If the value is set to false, no U grid lines are drawn. If it is set to true, grid lines are drawn, with the spacing between grid lines depending on the value set bysetGridSpacing(int). (Wireframe mode is a special case in that some grid lines are drawn in wireframe mode, even if grid lines are turned off in both directions.)
-
getShowVGridLines
public boolean getShowVGridLines()
Tells whether grid lines are drawn in the V direction.- See Also:
setShowVGridLines(boolean)
-
setShowVGridLines
public void setShowVGridLines(boolean showVGridLines)
Set whether grid lines are drawn in the V direction. If the value is set to false, no V grid lines are drawn. If it is set to true, grid lines are drawn, with the spacing between grid lines depending on the value set bysetGridSpacing(int). (Wireframe mode is a special case in that some grid lines are drawn in wireframe mode, even if grid lines are turned off in both directions.)
-
getActions
public ActionList getActions()
Description copied from class:ViewGenerates a list of "Action commands" that can be applied to this View. The commands must implement theActionIteminterface and will generally belong to one of the classesAbstractActionVMM,ToggleAction,ActionRadioGroup, orActionList. Null items represent separators. The idea is that the list items will be added to a menu or otherwise presented to the user so that the user can invoke the commands (with ActionList items representing submenus). Null values can occur in the list; they are meant to become separaters in the menu.Subclasses that override this method should generally call super.getActionss() and add their commands to the list retured by that method. This top-level View class does not define any Action commands; the return value is an empty non-null ArrayList.
- Overrides:
getActionsin classView
-
setExhibit
public void setExhibit(Exhibit exhibit)
This method is overridden to set the orientation of a Surface exhibit from the defaultOrientation property of the Surface.- Overrides:
setExhibitin classView3D- Parameters:
exhibit- The exhibit to be installed in this View. The value can be null. In that case, no Exhibit will be associated with the View after the method executes. If exhibit is already installed in this View, then no changes are made.- See Also:
Surface.setDefaultOrientation(int)
-
-
DMelt 3.0 © DataMelt by jWork.ORG