Documentation of 'jvx.geom.PwGeodesicFlow' Java class
PwGeodesicFlow ("JavaView Reference Manual")
"JavaView? v5.03.003"
jvx.geom

Class PwGeodesicFlow

    • Constructor Detail

      • PwGeodesicFlow

        public PwGeodesicFlow()
        Creates a new instance of PwGeodesicFlow
    • Method Detail

      • init

        public void init()
        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 PjWorkshop
      • ok

        public void ok()
        Accept current version of the geometry as new version. Close workshop. The copy of the original geometry is ignored.

        Overrides:
        ok in class PjWorkshop
      • cancel

        public void cancel()
        Cancel operation of this workshop by resetting the assigned geometry, and finally close this workshop.

        If necessary, the duplicate of the original geometry is restored into the geometry. The update method of the geometry is called.

        Overrides:
        cancel in class PjWorkshop
      • initialize

        public int initialize()
        Sets initial values for the particles.
        Returns:
        number of initialized particles
      • setTime

        public boolean setTime(PsTimeEvent timeEvent)
        Moves the particles one step forward.
        Specified by:
        setTime in interface PsTimeListenerIf
        Parameters:
        timeEvent - ignored
        Returns:
        super.update(this)
      • setAnimation

        public void setAnimation(PsAnimation anAnimation)
        Description copied from interface: PsTimeListenerIf
        Assign the animation manager where this listener is registered. This method is invoked by the animation manager during registration of this listener, and usually is not required to be called by a user. If this listener has an assigned animation manager, then its animation panel may be shown to change the current time of this listener.

        Only one animation manager may be assigned to this listener. Subsequent assignments will replace the previous assignment.

        Specified by:
        setAnimation in interface PsTimeListenerIf
        See Also:
        PsTimeListenerIf.getAnimation(), PsTimeListenerIf.hasAnimation()
      • markVertices

        public void markVertices(PvPickEvent event)
        Description copied from interface: PvPickListenerIf
        Mark a set of vertices of a geometry within a given bounding box.
        Specified by:
        markVertices in interface PvPickListenerIf
        Parameters:
        event - contains two points on the bounding box.
      • selectGeometry

        public void selectGeometry(PgGeometryIf event)
        Description copied from interface: PvPickListenerIf
        Inform pick listener when selected geometry is changing. Supported by jv.viewer.PvDisplay since v3.98.003.
        Specified by:
        selectGeometry in interface PvPickListenerIf
        Parameters:
        event - Now selected geometry of display.
      • pickVertex

        public void pickVertex(PgGeometryIf geom,
                               int vertIndex,
                               PdVector vector)
        Description copied from interface: PvPickListenerIf
        Get a picked vertex of a geometry.
        Specified by:
        pickVertex in interface PvPickListenerIf
        Parameters:
        geom - Picked geometry on which vertex lies
        vertIndex - Index of vertex in vertex array of geometry
        vector - 3d coordinates of vertex position
        See Also:
        PvPickListenerIf
      • pickDisplay

        public void pickDisplay(PvPickEvent event)
        Description copied from interface: PvPickListenerIf
        Get a location in the display with 2d display and 3d world coordinates. Point may be independent of any geometry.
        Specified by:
        pickDisplay in interface PvPickListenerIf
        Parameters:
        event - Pick event issued by the display
        See Also:
        PvPickListenerIf
      • unmarkVertices

        public void unmarkVertices(PvPickEvent event)
        Description copied from interface: PvPickListenerIf
        Unmark a set of vertices of a geometry within a given bounding box.
        Specified by:
        unmarkVertices in interface PvPickListenerIf
        Parameters:
        event - contains two points on the bounding box.
      • dragVertex

        public void dragVertex(PgGeometryIf geom,
                               int vertindex,
                               PdVector vector)
        Description copied from interface: PvPickListenerIf
        Drag a picked vertex of a geometry.
        Specified by:
        dragVertex in interface PvPickListenerIf
        Parameters:
        geom - Picked geometry on which vertex lies
        vertindex - Index of vertex in vertex array of geometry
        vector - 3d coordinates of vertex position
      • dragDisplay

        public void dragDisplay(PvPickEvent event)
        Description copied from interface: PvPickListenerIf
        Drag a location in the display with 2d display and 3d world coordinates. Point may be independent of any geometry.
        Specified by:
        dragDisplay in interface PvPickListenerIf
        Parameters:
        event - Pick event issued by the display
        See Also:
        PvPickListenerIf
      • setEnabledHueColoring

        public void setEnabledHueColoring(boolean flag)
        Enable or disable coloring vertices by hue from starting direction.
      • getMaxNumParticles

        public int getMaxNumParticles()
        Returns the maximum number of particles.
        Returns:
        the maximum number of particles
      • setMaxNumParticles

        public void setMaxNumParticles(int maxNumParticles)
        Sets the maximum number of particles.
        Parameters:
        maxNumParticles - the maximum number of particles
      • getMaxAge

        public double getMaxAge()
        Returns the maximum age.
        Returns:
        the maximum age
      • setMaxAge

        public void setMaxAge(double maxAge)
        Sets the maximum age.
        Parameters:
        maxAge - the maximum age
      • getEmitInterval

        public double getEmitInterval()
        Returns the emit interval of the particles.
        Returns:
        the emit interval
      • setEmitInterval

        public void setEmitInterval(double emitInterval)
        Sets the emit interval of the particles.
        Parameters:
        emitInterval -
      • getSpeed

        public double getSpeed()
        Returns the speed of the particles.
        Returns:
        the speed of the particles
      • setSpeed

        public void setSpeed(double speed)
        Sets the speed of the particles.
        Parameters:
        speed - the speed of the particles
      • update

        public boolean update(java.lang.Object event)
        Updates the geometry if this workshop has changed, i.e. if the event is this or null. Also propagates update() to superclass with the original argument event.

        Some subclasses may register themselves as update listener of the geometry of this workshop. In order to prevent an update loop, this method safely uses isUpdateSender() when updating the geometry.

        Specified by:
        update in interface PsUpdateIf
        Overrides:
        update in class PjWorkshop
        Parameters:
        event - sender of this update.
        Returns:
        true if update was correctly handled by superclass.
        See Also:
        PsObject.setParent(PsUpdateIf), PsObject.getFather(), PsObject.addUpdateListener(PsUpdateIf)
"JavaView? v5.03.003"

"

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

Ads help maintain this website.