vmm3d.spacecurve.parametric
Class ConstantCurvature
- java.lang.Object
-
- vmm3d.core.Exhibit
-
- vmm3d.core3D.Exhibit3D
-
- vmm3d.spacecurve.SpaceCurve
-
- vmm3d.spacecurve.parametric.SpaceCurveParametric
-
- vmm3d.spacecurve.parametric.ConstantCurvature
-
- All Implemented Interfaces:
- java.util.EventListener, javax.swing.event.ChangeListener, Decorateable, Parameterizable
public class ConstantCurvature extends SpaceCurveParametric
Defines a space curve of constant curvature kappa by integrating the Frenet equations with kappa=aa and a torsion function tau(t) = bb + cc*sin(t) + dd*sin(2t) + ee*sin(3t). This Class behaves like an explicitly parametrized curve, because the program precomputes the Frenet frame on 100 points between tmin and tmax so that, when the Superclass calls the method Vector3D value(), the ODEsolver only has to integrate from the nearest precomputed point.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class vmm3d.spacecurve.parametric.SpaceCurveParametric
SpaceCurveParametric.SpaceCurveParametricView, SpaceCurveParametric.SpaceCurveParametricViewAsTube
-
-
Constructor Summary
Constructors Constructor and Description ConstantCurvature()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description ActionListgetActionsForView(View view)Returns a list of actions that can be applied to this exhibit in the specified view.intgetExampleNumberFunction()Vector3D[]makeRepereMobile(double t)Returns an array of four vectors representing the Repere Mobile to the curve at a specified t value.voidparameterChanged(Parameter param, java.lang.Object oldValue, java.lang.Object newValue)This method will be called automatically when a parameter that has been added to this Exhibit is changed.voidsetExampleNumberFunction(int exampleNumber)-
Methods inherited from class vmm3d.spacecurve.parametric.SpaceCurveParametric
geographicCoordinates, getAlternativeViews, getBuildAnimation, getCreateAnimation, getDefaultView, getT, getTResolution
-
Methods inherited from class vmm3d.spacecurve.SpaceCurve
getPoint, getPointCount
-
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, getAdditionalAnimationsForView, getDecorations, getDefaultBackground, getDefaultForeground, getDefaultWindow, getFramesForMorphing, getMorphingAnimation, getName, getParameterByName, getParameters, getSettingsCommandsForView, getTitle, getUseFilmstripForMorphing, getViews, readExtraXML, removeChangeListener, removeDecoration, removeView, render, setDefaultBackground, setDefaultForeground, setDefaultWindow, setDefaultWindow, setFramesForMorphing, setName, setUseFilmstripForMorphing, stateChanged
-
-
-
-
Method Detail
-
getExampleNumberFunction
public int getExampleNumberFunction()
-
setExampleNumberFunction
public void setExampleNumberFunction(int exampleNumber)
-
getActionsForView
public ActionList getActionsForView(View view)
Description copied from class:SpaceCurveParametricReturns a list of actions that can be applied to this exhibit in the specified view. The list depends on whether the view is of type SpaceCurveParametricView or View3DLit.- Overrides:
getActionsForViewin classSpaceCurveParametric
-
parameterChanged
public void parameterChanged(Parameter param, java.lang.Object oldValue, java.lang.Object newValue)
Description copied from class:ExhibitThis method will be called automatically when a parameter that has been added to this Exhibit is changed. It should not ordinarily be called directly. Note that in fact, this method simply callsforceRedraw. This method is defined in the <@link Parameterizable} interface.- Specified by:
parameterChangedin interfaceParameterizable- Overrides:
parameterChangedin classExhibit- Parameters:
param- The Parmeter whose value has been set.oldValue- The previous value of the parameter.newValue- The new, current value of the parameter. This is not necessarily guaranteed to be different from the old value (although it is for parameters definedin the VMM core).- See Also:
Exhibit.forceRedraw()
-
makeRepereMobile
public Vector3D[] makeRepereMobile(double t)
Description copied from class:SpaceCurveParametricReturns an array of four vectors representing the Repere Mobile to the curve at a specified t value. The array has length 4. The first vector is the point on the curve, and the other three vectors are the unit tangent, unit normal, and unit bi-normal to the curve at that point. The return value can be null, if the curve or its first or second derivative is not defined at the specified point. If the return value is non-null, then all four vectors in the returned array are non-null.- Overrides:
makeRepereMobilein classSpaceCurveParametric
-
-
DMelt 3.0 © DataMelt by jWork.ORG