vmm.spacecurve.parametric
Class SphericalCurve

java.lang.Object
  extended by vmm.core.Exhibit
      extended by vmm.core3D.Exhibit3D
          extended by vmm.spacecurve.SpaceCurve
              extended by vmm.spacecurve.parametric.SpaceCurveParametric
                  extended by vmm.spacecurve.parametric.SphericalCurve
All Implemented Interfaces:
java.util.EventListener, javax.swing.event.ChangeListener, Decorateable, Parameterizable
Direct Known Subclasses:
Loxodrome, SphericalCycloid, SphericalEllipse, Viviani

public abstract class SphericalCurve
extends SpaceCurveParametric

A curve that lies on the surface of a sphere. The sphere is shown as a random dot cloud. The sphere is of radius 1. Note that in any subclass, the value() method must return a vector of length one (unless the return value is null); this is not checked or enforced anywhere in this class.


Nested Class Summary
protected  class SphericalCurve.DotCloudSphere
          Defines the dot cloud sphere of radius one on which the curve lies.
 class SphericalCurve.SphericalCurveView
          The default view for a SphericalCurve.
 
Nested classes/interfaces inherited from class vmm.spacecurve.parametric.SpaceCurveParametric
SpaceCurveParametric.SpaceCurveParametricView, SpaceCurveParametric.SpaceCurveParametricViewAsTube
 
Field Summary
protected  SphericalCurve.DotCloudSphere cloudSphere
          This variable refers to the dot-cloud sphere decoration that is installed in this exhibit by the constructor.
 
Fields inherited from class vmm.spacecurve.parametric.SpaceCurveParametric
tmax, tmin, tResolution, tube, tubeSides, tubeSize, tVals
 
Fields inherited from class vmm.spacecurve.SpaceCurve
points
 
Fields inherited from class vmm.core3D.Exhibit3D
defaultViewpoint, defaultViewUp, previousTransform3D
 
Fields inherited from class vmm.core.Exhibit
decorations, exhibitNeedsRedraw, isMorphing, morphingView, parameters, previousTransform
 
Constructor Summary
SphericalCurve()
          Constructs a SphericalCurve with a blue dot-cloud sphere and a default window of (-1.2,1.2,-1.2,1.2) that should be OK for any subclass.
 
Method Summary
 View getDefaultView()
          Returns a View of type SphericalCurve.SphericalCurveView, which is a subclass of SpaceCurveParametric.SpaceCurveParametricView that defines some additional Actions.
 
Methods inherited from class vmm.spacecurve.parametric.SpaceCurveParametric
computeDrawData3D, deriv1, deriv2, doDraw3D, geographicCoordinates, getActionsForView, getAlternativeViews, getBuildAnimation, getCenterOfPoints, getCreateAnimation, getT, getTResolution, makePoints, makeRepereMobile, value
 
Methods inherited from class vmm.spacecurve.SpaceCurve
getPoint, getPointCount
 
Methods inherited from class vmm.core3D.Exhibit3D
computeDrawDataHook, doDrawHook, getDefaultTransform, getDefaultViewpoint, getDefaultViewUp, setDefaultViewpoint, setDefaultViewUp
 
Methods inherited from class vmm.core.Exhibit
addChangeListener, addDecoration, addExtraXML, addParameter, addView, clearDecorations, computeDrawData, doDraw, fireExhibitChangeEvent, forceRedraw, getAdditionalAnimationsForView, getDecorations, getDefaultBackground, getDefaultForeground, getDefaultWindow, getFramesForMorphing, getMorphingAnimation, getName, getParameterByName, getParameters, getSettingsCommandsForView, getTitle, getUseFilmstripForMorphing, getViews, parameterChanged, readExtraXML, removeChangeListener, removeDecoration, removeParameter, removeView, render, setDefaultBackground, setDefaultForeground, setDefaultWindow, setDefaultWindow, setFramesForMorphing, setName, setUseFilmstripForMorphing, stateChanged
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

cloudSphere

protected SphericalCurve.DotCloudSphere cloudSphere
This variable refers to the dot-cloud sphere decoration that is installed in this exhibit by the constructor.

Constructor Detail

SphericalCurve

public SphericalCurve()
Constructs a SphericalCurve with a blue dot-cloud sphere and a default window of (-1.2,1.2,-1.2,1.2) that should be OK for any subclass. It also sets a default viewpoint of (16,9,19) which might or might need to be changed in individual subclasses.

Method Detail

getDefaultView

public View getDefaultView()
Returns a View of type SphericalCurve.SphericalCurveView, which is a subclass of SpaceCurveParametric.SpaceCurveParametricView that defines some additional Actions.

Overrides:
getDefaultView in class SpaceCurveParametric