|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object vmm.core.View vmm.core3D.View3D vmm.core3D.View3DWithLightSettings vmm.core3D.View3DLit vmm.surface.SurfaceView
public class SurfaceView
Field Summary | |
---|---|
protected ActionRadioGroup |
gridSpacingSelect
An array of 6 commmands that allow the user to select what fraction of grid lines are actually drawn. |
protected ToggleAction |
omitULineAction
A command that allows the user to turn off grid lines in the u direction alltogether. |
protected ToggleAction |
omitVLineAction
A command that allows the user to turn off grid lines in the v direction alltogether. |
Fields inherited from class vmm.core3D.View3DLit |
---|
dragAsSurfaceToggle, NO_ORIENTATION, NORMAL_ORIENTATION, PATCH_RENDERING, REVERSE_ORIENTATION, selectColoredCommands, selectOrientationCommands, selectRenderingCommands, selectShadingCommands, setTransparencyCommand, WIREFRAME_RENDERING |
Fields inherited from class vmm.core3D.View3DWithLightSettings |
---|
lightingEnabledToggle, lightSettingsCommand |
Fields inherited from class vmm.core3D.View3D |
---|
CROSS_EYE_STEREO_VIEW, leftStereographOSI, MONOCULAR_VIEW, projectionCommands, RED_GREEN_STEREO_VIEW, rightStereographOSI, set3DViewOptionsAction, setViewpointAction, stereoComposite, STEREOGRAPH_VIEW, transform3D, viewStyleCommands |
Fields inherited from class vmm.core.View |
---|
backgroundCommands, buildAnimation, buildingImageForFilmstrip, currentGraphics, decorations, directOffscreenDrawing, fullOSI, needsRedraw, offscreenImageType, parameters, showAxesAction |
Constructor Summary | |
---|---|
SurfaceView()
|
Method Summary | |
---|---|
ActionList |
getActions()
Generates a list of "Action commands" that can be applied to this View. |
int |
getGridSpacing()
Set the spacing between grid lines that are drawn. |
boolean |
getShowUGridLines()
Tells whether grid lines are drawn in the U direction. |
boolean |
getShowVGridLines()
Tells whether grid lines are drawn in the V direction. |
void |
setExhibit(Exhibit exhibit)
This method is overridden to set the orientation of a Surface exhibit from the defaultOrientation property of the Surface. |
void |
setGridSpacing(int gridSpacing)
Determines how many grid lines are actually drawn. |
void |
setShowUGridLines(boolean showUGridLines)
Set whether grid lines are drawn in the U direction. |
void |
setShowVGridLines(boolean showVGridLines)
Set whether grid lines are drawn in the V direction. |
Methods inherited from class vmm.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 vmm.core3D.View3DWithLightSettings |
---|
addExtraXML, getLightingEnabled, getLightSettings, readExtraXML, setAnaglyphLightSettings, setLightingEnabled, setLightSettings, setNonAnaglyphLightSettings |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected ToggleAction omitULineAction
getActions()
method.
protected ToggleAction omitVLineAction
getActions()
method.
protected ActionRadioGroup gridSpacingSelect
getActions()
method.
Constructor Detail |
---|
public SurfaceView()
Method Detail |
---|
public void setGridSpacing(int gridSpacing)
public int getGridSpacing()
setGridSpacing(int)
public boolean getShowUGridLines()
setShowUGridLines(boolean)
public void setShowUGridLines(boolean showUGridLines)
setGridSpacing(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.)
public boolean getShowVGridLines()
setShowVGridLines(boolean)
public void setShowVGridLines(boolean showVGridLines)
setGridSpacing(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.)
public ActionList getActions()
View
ActionItem
interface and will generally
belong to one of the classes AbstractActionVMM
,
ToggleAction
, ActionRadioGroup
, or
ActionList
. 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.
getActions
in class View
public void setExhibit(Exhibit exhibit)
setExhibit
in class View3D
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.Surface.setDefaultOrientation(int)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |