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

Class PjClosedPoly

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


    public class PjClosedPoly
    extends PjProject
    Study closed polygonal curves under motion of selected vertices. Length of polygon edges is kept when vertices are dragged.
    See Also:
    Serialized Form
    Author:
    Eike Preuß
    Version:
    03.02.00, 1.00 created (ep)
    • Constructor Detail

      • PjClosedPoly

        public PjClosedPoly()
    • 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()
      • computeNGon

        public void computeNGon(int numPoints,
                                PgPolygon out)
      • mirrorVertex

        public void mirrorVertex(int vertex,
                                 PgPolygon out)
      • localTransformation

        public void localTransformation(int vertex,
                                        PdVector newPos,
                                        PgPolygon out)
      • getNearestSupplement

        public boolean getNearestSupplement(PdVector first,
                                            PdVector second,
                                            PdVector reference)
        Parameters:
        reference - input/output, here the calculated vector is saved
      • globalTransformation

        public void globalTransformation(int vertex,
                                         PdVector newPos,
                                         PgPolygon out)
      • pickVertex

        public void pickVertex(PgGeometryIf geom,
                               int index,
                               PdVector vertex)
        Description copied from class: PjProject
        Get a picked vertex of a geometry. This method does nothing and must be overwritten.
        Specified by:
        pickVertex in interface PvPickListenerIf
        Overrides:
        pickVertex in class PjProject
        Parameters:
        geom - Picked geometry on which vertex lies
        index - Index of vertex in vertex array of geometry
        vertex - 3d coordinates of vertex position
        See Also:
        PvPickListenerIf
      • setMode

        public void setMode(int mode)
"JavaView? v5.03.003"

"

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

Ads help maintain this website.