vmm3d.surface
Class Surface
- java.lang.Object
-
- vmm3d.core.Exhibit
-
- vmm3d.core3D.Exhibit3D
-
- vmm3d.surface.Surface
-
- All Implemented Interfaces:
- java.util.EventListener, javax.swing.event.ChangeListener, Decorateable, Parameterizable
- Direct Known Subclasses:
- SurfaceParametric
public abstract class Surface extends Exhibit3D
Represents a surface in three-space defined by a rectangular array of points.
-
-
Field Summary
Fields Modifier and Type Field and Description IntegerParamuPatchCountThe U resolution, that is, the number of patches in the u direction.IntegerParamvPatchCountThe U resolution, that is, the number of patches in the u direction.
-
Constructor Summary
Constructors Constructor and Description Surface()Adds uPatchCount and vPatchCount as parameters of the surface, each with a range of possible input values from 1 to 40.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description AnimationgetBuildAnimation(View view)Returns a surface build animation, which shows patches being drawn bit-by-bit in back to front order.intgetDefaultOrientation()Returns the default orientation setting for this surface.ViewgetDefaultView()Returns a default view of this exhibit, a View of typeSurfaceView.Grid3DgetGrid3D()Returns grid 3D.voidsetDefaultOrientation(int defaultOrientation)Set the default orientation setting for this surface.-
Methods inherited from class vmm3d.core3D.Exhibit3D
getDefaultTransform, getDefaultViewpoint, getDefaultViewUp, setDefaultViewpoint, setDefaultViewUp
-
Methods inherited from class vmm3d.core.Exhibit
addChangeListener, addDecoration, addExtraXML, addView, clearDecorations, forceRedraw, getActionsForView, getAdditionalAnimationsForView, getAlternativeViews, getCreateAnimation, getDecorations, getDefaultBackground, getDefaultForeground, getDefaultWindow, getFramesForMorphing, getMorphingAnimation, getName, getParameterByName, getParameters, getSettingsCommandsForView, getTitle, getUseFilmstripForMorphing, getViews, parameterChanged, readExtraXML, removeChangeListener, removeDecoration, removeView, render, setDefaultBackground, setDefaultForeground, setDefaultWindow, setDefaultWindow, setFramesForMorphing, setName, setUseFilmstripForMorphing, stateChanged
-
-
-
-
Field Detail
-
uPatchCount
public IntegerParam uPatchCount
The U resolution, that is, the number of patches in the u direction. By convention, the number of points along the u-direction of the surface is 1 plus 6 times the value of uPatchCount, since there are 6 "subpatches" along each side of a patch. (However, the number of subpatches per patch is actually selected by a subclass when it creates the data for the surface.)
-
vPatchCount
public IntegerParam vPatchCount
The U resolution, that is, the number of patches in the u direction. By convention, the number of points along the u-direction of the surface is 1 plus 6 times the value of vPatchCount.
-
-
Constructor Detail
-
Surface
public Surface()
Adds uPatchCount and vPatchCount as parameters of the surface, each with a range of possible input values from 1 to 40. Also callsExhibit.setFramesForMorphing(int)to set the number of frames for morphing to 12 and callsExhibit.setUseFilmstripForMorphing(boolean)to turn on the use of filmstrips for the morphing animation.
-
-
Method Detail
-
getDefaultOrientation
public int getDefaultOrientation()
Returns the default orientation setting for this surface. This property determines which side of the surface, if any, is front-facing.- See Also:
setDefaultOrientation(int)
-
setDefaultOrientation
public void setDefaultOrientation(int defaultOrientation)
Set the default orientation setting for this surface. This property determines which side of the surface, if any, is front-facing. The possible settings are: View3DLit.NORMAL_ORIENTATION, View3DLit.REVERSE_ORIENTATION, and View3DLit.NO_ORIENTATION. Other values of the parameter are ignored. If it is not changed by calling this method, the default orientation is View3DLit.NORMAL_ORIENTATION.Note that the default orientation is used only when a View is created by the
getDefaultView()method.- See Also:
View3DLit.setOrientation(int)
-
getDefaultView
public View getDefaultView()
Returns a default view of this exhibit, a View of typeSurfaceView. (Note: If a Surface is displayed in a plain View3D, it will always appear as a wireframe.)- Overrides:
getDefaultViewin classExhibit3D
-
getGrid3D
public Grid3D getGrid3D()
Returns grid 3D.
-
getBuildAnimation
public Animation getBuildAnimation(View view)
Returns a surface build animation, which shows patches being drawn bit-by-bit in back to front order.- Overrides:
getBuildAnimationin classExhibit- Parameters:
view- The view into which the build animation will be installed.- Returns:
- The return value in this top-level Exhibit class is null.
-
-
DMelt 3.0 © DataMelt by jWork.ORG