Documentation of 'vgp.vector.rungeKutta.PjRungeKutta' Java class
PjRungeKutta ("JavaView Reference Manual")
"JavaView? v5.03.003"
vgp.vector.rungeKutta

Class PjRungeKutta

  • All Implemented Interfaces:
    java.awt.event.ActionListener, java.io.Serializable, java.lang.Cloneable, java.lang.Runnable, java.util.EventListener, PsTimeListenerIf, PsUpdateIf, PvPickListenerIf


    public class PjRungeKutta
    extends PjProject
    implements java.lang.Runnable, java.awt.event.ActionListener
    Project demonstrates geodesic Runge-Kutta integration of vector fields on surfaces and the line integral convolution method. The vector field is randomly generated on loaded geometries.
    See Also:
    PnLIC, Serialized Form
    Author:
    Konrad Polthier, Eike Preuß
    Version:
    06.10.07, 2.50 revised (kp) Package renamed to vgp.vector.rungeKutta.
    03.09.07, 2.00 revised (kp) Full rewrite, superclass changed to PsApplet.
    04.06.06, 1.10 revised (kp) Moved to vgp.vector.translation from dev.app.vector.translation.
    29.08.99, 1.00 created (ep).
    • Field Detail

      • PROJECTION

        public static final int PROJECTION
        Is used by method calculateRepresentations.
        See Also:
        Constant Field Values
      • GEODESIC

        public static final int GEODESIC
        Geodesic completion. Is used by method calculateRepresentations.
        See Also:
        Constant Field Values
      • GEODESIC2

        public static final int GEODESIC2
        Geodesic translation along half angle. Is used by method calculateRepresentations.
        See Also:
        Constant Field Values
      • GEODESIC3

        public static final int GEODESIC3
        Geodesic translation dependent on evaluation point (continuous). Is used by method calculateRepresentations.
        See Also:
        Constant Field Values
    • Constructor Detail

      • PjRungeKutta

        public PjRungeKutta()
        If (this.instanceOf("PjRungeKutta")) it calls init-method.
    • 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
      • reset

        public void reset()
        Reset project and start again.
      • getFileName

        public java.lang.String getFileName()
        Get current file name.
      • setFileName

        public void setFileName(java.lang.String fullFileName)
        Sets filename from outside of this project. Replaces the default file name. Must call load() after setting the file name.
        Parameters:
        fullFileName - fully specified file name including code base, or URL.
        See Also:
        load()
      • actionPerformed

        public void actionPerformed(java.awt.event.ActionEvent event)
        Starts a new thread that calculates the LIC texture.
        Specified by:
        actionPerformed in interface java.awt.event.ActionListener
        See Also:
        run()
      • setGeometry

        public boolean setGeometry(PgElementSet geom)
        Sets the geometry loaded from PjImportModel and then triangulates, updates the number of elements, gets a vector field and fits that all in the display.

        Lic computation must be stopped before loading a new geometry.

      • isEnabledFast

        public boolean isEnabledFast()
        Sets integration method to euler-mode or 4th-order Runge-Kutta mode.
        Returns:
        true: euler; false: 4th-order runge-kutta
      • setEnabledFast

        public void setEnabledFast(boolean flag)
        Sets integration method to Euler-mode or 4th-order Runge-Kutta mode.
        Parameters:
        flag - true: Euler; false: 4th-order Runge-Kutta
      • getTime

        public double getTime()
        Return running time of latest Lic calculation in milliseconds.
      • isRunning

        public boolean isRunning()
        Check if lic computation is currently running.
      • startLIC

        public void startLIC()
        Start computation of lic image.
      • stopLIC

        public void stopLIC()
        Stop computation of lic image.
      • run

        public void run()
        Gets an appropriate Runge-Kutta class and initiates LIC calculation element by element.
        Specified by:
        run in interface java.lang.Runnable
        See Also:
        PnLIC, PnVertexRK, PnTranslationRK
      • computeRandomVectorField

        public void computeRandomVectorField()
        Calculates (pseudo) random vector field.
      • computeIntegralCurve

        public void computeIntegralCurve(int elemInd,
                                         PdBary bary,
                                         double length,
                                         int discr)
        Computes the integral curve with initial values internally given.
"JavaView? v5.03.003"

"

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

You see the box below because you did not login.