vmm3d.surface.parametric
Class DiracBelt
- java.lang.Object
-
- vmm3d.core.Exhibit
-
- vmm3d.core3D.Exhibit3D
-
- vmm3d.surface.Surface
-
- vmm3d.surface.parametric.SurfaceParametric
-
- vmm3d.surface.parametric.DiracBelt
-
- All Implemented Interfaces:
- java.util.EventListener, javax.swing.event.ChangeListener, Decorateable, Parameterizable
public class DiracBelt extends SurfaceParametric
Defines a Dirac Belt (for the Belt-Trick) with parametric equations ((1/2)*(v - 8*u*cos(t)*(1 + 2*cos(t)^2*cos(v))*sin(t)*sin(v/2)^2 + cos(4*t)*(v - sin(v)) + sin(v)) -2.5, -cos(v)*sin(2*t) + u*cos(t)^2*sin(2*v);, u*(-cos(2*t)*sin(t)^2 + cos(t)^2*(cos(2*t)*cos(2*v) + 4*cos(v)*sin(t)^2)) + (1/2)*sin(4*t)*(-v + sin(v))))
-
-
Field Summary
-
Fields inherited from class vmm3d.surface.parametric.SurfaceParametric
COLOR_GAUSS_CURVATURE, COLOR_MEAN_CURVATURE, COLOR_TWO_SIDED_DEFAULT, COLOR_TWO_SIDED_USER, COLOR_USER, COLOR_USER_FUNCTION_HSB, COLOR_USER_FUNCTION_RGB, COLOR_WHITE
-
Fields inherited from class vmm3d.surface.Surface
uPatchCount, vPatchCount
-
-
Constructor Summary
Constructors Constructor and Description DiracBelt()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description AnimationgetCreateAnimation(View view)This method is called to "create" the Exhibit.ViewgetDefaultView()Returns a default view of this exhibit, a View of typeSurfaceView.Vector3DsurfacePoint(double u, double v)The parametric equations that define the surface, given as a function from the uv-plane into R3.-
Methods inherited from class vmm3d.surface.parametric.SurfaceParametric
addExtraXML, deriv_u, deriv_v, gaussMap, getActionsForView, getPatchCountU, getPatchCountV, readExtraXML, removeView, setEpsilon, setPatchCount, setU, setV, setViewpoint, surfaceNormal
-
Methods inherited from class vmm3d.surface.Surface
getBuildAnimation, getDefaultOrientation, getGrid3D, setDefaultOrientation
-
Methods inherited from class vmm3d.core3D.Exhibit3D
getDefaultTransform, getDefaultViewpoint, getDefaultViewUp, setDefaultViewpoint, setDefaultViewUp
-
Methods inherited from class vmm3d.core.Exhibit
addChangeListener, addDecoration, addView, clearDecorations, forceRedraw, getAdditionalAnimationsForView, getAlternativeViews, getDecorations, getDefaultBackground, getDefaultForeground, getDefaultWindow, getFramesForMorphing, getMorphingAnimation, getName, getParameterByName, getParameters, getSettingsCommandsForView, getTitle, getUseFilmstripForMorphing, getViews, parameterChanged, removeChangeListener, removeDecoration, render, setDefaultBackground, setDefaultForeground, setDefaultWindow, setDefaultWindow, setFramesForMorphing, setName, setUseFilmstripForMorphing, stateChanged
-
-
-
-
Method Detail
-
getDefaultView
public View getDefaultView()
Description copied from class:SurfaceReturns 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 classSurface
-
getCreateAnimation
public Animation getCreateAnimation(View view)
Description copied from class:ExhibitThis method is called to "create" the Exhibit. It should return an animation that will show the process of creating the Exhibit, whatever that means. The animation is run when the Exhibit is first shown on the screen (in the 3dxm shell program) and when the "Create" action command is invoked. If the return value is null, then there is no creation animation for this exhibit. If the return value is non-null, then it can be expected that the animation will be installed in the View's Display.- Overrides:
getCreateAnimationin classExhibit- Parameters:
view- A View that is displaying this Exhibit. The animation, if any, that is returned by this method will be installed in the View's display. If the view is null, than a creation animation that can run independently of a view could be returned.- Returns:
- A creation animation for the given View of this Exhibit. The return value can be null to indicate that no creation animation is to be run.
-
surfacePoint
public Vector3D surfacePoint(double u, double v)
Description copied from class:SurfaceParametricThe parametric equations that define the surface, given as a function from the uv-plane into R3. The return value of this function can be null, indicating that the function is undefined for the given u and v.- Specified by:
surfacePointin classSurfaceParametric
-
-
DMelt 3.0 © DataMelt by jWork.ORG