vmm3d.spacecurve
Class SpaceCurve
- java.lang.Object
-
- vmm3d.core.Exhibit
-
- vmm3d.core3D.Exhibit3D
-
- vmm3d.spacecurve.SpaceCurve
-
- All Implemented Interfaces:
- java.util.EventListener, javax.swing.event.ChangeListener, Decorateable, Parameterizable
- Direct Known Subclasses:
- SpaceCurveParametric
public abstract class SpaceCurve extends Exhibit3D
Represents a curve, or set of curve segments, in three-space. The curve is defined by an array of 3D points.
-
-
Constructor Summary
Constructors Constructor and Description SpaceCurve()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description ViewgetDefaultView()Returns aSpaceCurveViewwith antialiasing turned on.Vector3DgetPoint(int i)Get one of the points from the array that defines the curve.intgetPointCount()Get the size of the array of points that define this curve.-
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, getBuildAnimation, 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
-
-
-
-
Method Detail
-
getDefaultView
public View getDefaultView()
Returns aSpaceCurveViewwith antialiasing turned on.- Overrides:
getDefaultViewin classExhibit3D
-
getPointCount
public int getPointCount()
Get the size of the array of points that define this curve. If the array has not yet been computed, because the curve has not yet been drawn, then the return value will be 0.
-
getPoint
public Vector3D getPoint(int i)
Get one of the points from the array that defines the curve.- Parameters:
i- The index of the point in the array. This must be in the range 0 togetPointCount()-1, or an error will occur.- Returns:
- The i-th point from the array. This can be null, indicating a break in the curve.
-
-
DMelt 3.0 © DataMelt by jWork.ORG