vmm.spacecurve.parametric
Class TorusKnot

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.TorusKnot
All Implemented Interfaces:
java.util.EventListener, javax.swing.event.ChangeListener, Decorateable, Parameterizable

public class TorusKnot
extends SpaceCurveParametric

Defines a torus knot -- a curve that wraps around the surface of a torus. The axis of the torus is the z-axis, and the cross section of the torus can be elliptical. A TorusKnot can show the torus as a "dot cloud torus."


Nested Class Summary
 class TorusKnot.TorusKnotView
          Adds to a generic SpaceCurveParametricView the ability to show a "cloud torus" on whose surface the curve lies.
 
Nested classes/interfaces inherited from class vmm.spacecurve.parametric.SpaceCurveParametric
SpaceCurveParametric.SpaceCurveParametricView, SpaceCurveParametric.SpaceCurveParametricViewAsTube
 
Field Summary
 
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
TorusKnot()
           
 
Method Summary
 View getDefaultView()
          Returns a View of type SpaceCurveParametric.SpaceCurveParametricView as the default view of this curve.
protected  Vector3D value(double t)
          Returns a point (x(t), y(t), z(t)) on the curve, given a value of t.
 
Methods inherited from class vmm.spacecurve.parametric.SpaceCurveParametric
computeDrawData3D, deriv1, deriv2, doDraw3D, geographicCoordinates, getActionsForView, getAlternativeViews, getBuildAnimation, getCenterOfPoints, getCreateAnimation, getT, getTResolution, makePoints, makeRepereMobile
 
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
 

Constructor Detail

TorusKnot

public TorusKnot()
Method Detail

value

protected Vector3D value(double t)
Description copied from class: SpaceCurveParametric
Returns a point (x(t), y(t), z(t)) on the curve, given a value of t. The return value can be null, indicating a break in the curve. Subclasses must define this method to specify a particular curve.

Specified by:
value in class SpaceCurveParametric

getDefaultView

public View getDefaultView()
Description copied from class: SpaceCurveParametric
Returns a View of type SpaceCurveParametric.SpaceCurveParametricView as the default view of this curve. In this view, the curve appears as a curve.

Overrides:
getDefaultView in class SpaceCurveParametric