Documentation of 'vgp.curve.cycloid.PjCycloid' Java class
PjCycloid ("JavaView Reference Manual")
"JavaView? v5.03.003"
vgp.curve.cycloid

Class PjCycloid

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable, PsTimeListenerIf, PsUpdateIf, PvPickListenerIf


    public class PjCycloid
    extends PjProject
    Generate a cycloid by tracing a point on a disk which rolls along an axis. Optionally, the cycloid curve may be rotated around the axis.
    See Also:
    Serialized Form
    Author:
    Konrad Polthier
    Version:
    25.07.03, 2.00 revised (kp) Update and recomputation simplified.
    08.11.99, 1.00 created (kp)
    • Constructor Detail

      • PjCycloid

        public PjCycloid()
    • Method Detail

      • init

        public void init()
        Description copied from class: PjProject
        Initialize and reset project, stops the running animation if any. Does not reset any registered display nor geometry. They must be reset individually in each subclass.
        Overrides:
        init in class PjProject
      • start

        public void start()
        Description copied from class: PjProject
        Method is invoked during loading of a project in JavaView.

        If a project has an animation object, then the animation panel is shown when the project's this start() method is invoked during loading of the project. Use setAnimation(PsAnimation) to register an animation.

        If auto fit is enabled then scenery is scaled to fit in each display.

        Overrides:
        start in class PjProject
        See Also:
        PvViewerIf.start(), PjProject.isEnabledAutoFit()
      • reset

        public void reset()
        Reset project to initial state. Method calls project.init(). Must call project.update(project) after calling reset().
      • getCycloid

        public PgPolygon getCycloid()
        Get the cycloid curve. Note, the coordinates of the curve are recomputed whenever parameters of this project or the project itself change.
      • getCycloidDiscr

        public int getCycloidDiscr()
        Get number of points on cycloid curve.
      • setCycloidDiscr

        public void setCycloidDiscr(int cycloidDiscr)
        Set number of points on cycloid curve.
        Parameters:
        cycloidDiscr - number of vertices on cycloid curve
      • getCycloidLength

        public double getCycloidLength()
        Get length of the cycloid curve.
      • setCycloidLength

        public void setCycloidLength(double len)
        Set distance of traced point to center of rolling ball.
        Parameters:
        len - distance of point to center of disc
      • getDistance

        public double getDistance()
        Get distance of the traced point to the center of the rolling disk, that means, the length of the stick.
      • setDistance

        public void setDistance(double d)
        Set distance of the traced point to the center of the rolling disk, that means, the length of the stick.
        Parameters:
        d - distance of point to center of the
"JavaView? v5.03.003"

"

The software JavaView? is copyright protected. All Rights Reserved.
"

You see the box below because you did not login.