jvx.geom

## Class PwBoundary

- java.lang.Object
- - jv.object.PsObject
  - - jvx.project.PjWorkshop
    - - jvx.geom.PwBoundary

- All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable, PsUpdateIf, PjWorkshopIf

      public class PwBoundary
      extends PjWorkshop

  Utility program for handling boundary polygons of PgElementSet.
  See Also:
    Serialized Form

- - ### Field Summary

    - ### Fields inherited from class jv.object.PsObject

      `HAS_BOUNDARY_PANEL, HAS_CONFIG_PANEL, HAS_INFO_PANEL, HAS_LABEL_PANEL, HAS_MATERIAL_PANEL, HAS_TEXTURE_PANEL, HAS_VECTOR_PANEL, INSPECTOR_INFO, INSPECTOR_INFO_EXT, IS_DELETED, IS_FIXED, IS_FOCUSSED, IS_PICKED, IS_SELECTED, IS_USED, NUM_TAGS`

    - ### Fields inherited from interface jv.project.PjWorkshopIf

      `MODE_BUG, MODE_STANDARD, MODE_VALIDATE`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `PwBoundary()` Constructor.

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `close()` Close workshop and remove itself as listener from various classes.
    `double` | `getCornerAngle()` Get maximal corner angle in [0,360] such that smaller vertex angles along the boundary are identified as sharp boundary vertices.
    `double` | `getLineTol()` Get tolerance allowed for points to vary from a line.
    `double` | `getPlaneTol()` Get tolerance allowed for points to vary from a plane.
    `void` | `init()` Initialize and reset project, stops the running animation if any.
    `boolean` | `isEnabledMakeConstraints()` Check if boundary constraints will be generate when boundary is created.
    `void` | `makeBoundary()` Generate boundary polygons for a PgElementSet.
    `static void` | `makeBoundary(PgElementSet elemSet)` Generate boundary polygons for a PgElementSet.
    `static void` | `makeBoundaryConstraint(PgElementSet elemSet, int bndIndex, double lineTol, double planeTol)` Make boundary constraints for an existing PgBndPolygon.
    `void` | `makeBoundaryConstraints()` Make boundary constraints for existing PgBndPolygons.
    `void` | `ok()` Accept the current state of the geometry and close the workshop.
    `void` | `removeBoundary()` Remove boundary from the registered geometry.
    `void` | `reset()` Reset this workshop to its initial state from which computations can start.
    `void` | `setCornerAngle(double angle)` Set maximal corner angle in [0,360] such that smaller vertex angles along the boundary are identified as sharp boundary vertices.
    `void` | `setEnabledMakeConstraints(boolean flag)` Set flag which determines if boundary constraints will be generate when boundary is created.
    `void` | `setGeometry(PgGeometry geom)` Assign a geometry, on which the workshop operates.
    `void` | `setLineTol(double lineTol)` Set tolerance allowed for points to vary from a line.
    `void` | `setPlaneTol(double planeTol)` Set tolerance allowed for points to vary from a plane.
    `boolean` | `update(java.lang.Object event)` Update workshop and geometry.

    - ### Methods inherited from class jvx.project.PjWorkshop

      `cancel, getDisplay, getDisplays, getGeometry, getMode, getSavedGeometry, getViewer, isModal, isStandalone, removeGeometry, setDisplay, setDisplays, setModal, setMode, setStandalone, setViewer`

    - ### Methods inherited from class jv.object.PsObject

      `addInspector, addUpdateListener, assureInspector, clearTag, clone, clone, clone, copy, getFather, getInfoPanel, getInspector, getName, getNumObjects, getSymbol, hasInspector, hasTag, hasUpdateListener, instanceOf, instanceOf, newInspector, newInspector, removeInspector, removeInspector, removeUpdateListener, setName, setParent, setSymbol, setTag, toString, updatePanels`

    - ### Methods inherited from class java.lang.Object

      `equals, getClass, hashCode, notify, notifyAll, wait, wait, wait`

    - ### Methods inherited from interface jv.object.PsUpdateIf

      `getFather, getName, setParent`

- - ### Constructor Detail

    - #### PwBoundary

          public PwBoundary()

      Constructor.

  - ### Method Detail

    - #### init

          public void init()

      Description copied from class: `PjWorkshop`
      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`

    - #### reset

          public void reset()

      Reset this workshop to its initial state from which computations can start.
      Overrides:
        `reset` in class `PjWorkshop`

    - #### close

          public void close()

      Close workshop and remove itself as listener from various classes. The workshop will no longer be functional after this call.
      Overrides:
        `close` in class `PjWorkshop`

    - #### ok

          public void ok()

      Accept the current state of the geometry and close the workshop.
      Overrides:
        `ok` in class `PjWorkshop`

    - #### update

          public boolean update(java.lang.Object event)

      Update workshop and 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)`

    - #### setGeometry

          public void setGeometry(PgGeometry geom)

      Assign a geometry, on which the workshop operates.
      Specified by:
        `setGeometry` in interface `PjWorkshopIf`
      Overrides:
        `setGeometry` in class `PjWorkshop`
      Parameters:
        `geom` - the workshop modifies this geometry.

    - #### removeBoundary

          public void removeBoundary()

      Remove boundary from the registered geometry.

    - #### makeBoundary

          public void makeBoundary()

      Generate boundary polygons for a PgElementSet. Boundary polygons will start and end preferentially at vertices with tag PsObject.IS_SELECTED. This method requires correct neighbourhood informations. This is a non-static call for PjWorkshop use.

    - #### getCornerAngle

          public double getCornerAngle()

      Get maximal corner angle in [0,360] such that smaller vertex angles along the boundary are identified as sharp boundary vertices.

    - #### setCornerAngle

          public void setCornerAngle(double angle)

      Set maximal corner angle in [0,360] such that smaller vertex angles along the boundary are identified as sharp boundary vertices.

    - #### getLineTol

          public double getLineTol()

      Get tolerance allowed for points to vary from a line.

    - #### setLineTol

          public void setLineTol(double lineTol)

      Set tolerance allowed for points to vary from a line.

    - #### getPlaneTol

          public double getPlaneTol()

      Get tolerance allowed for points to vary from a plane.

    - #### setPlaneTol

          public void setPlaneTol(double planeTol)

      Set tolerance allowed for points to vary from a plane.

    - #### makeBoundary

          public static void makeBoundary(PgElementSet elemSet)

      Generate boundary polygons for a PgElementSet. Boundary polygons will start and end preferentially at vertices with tag PsObject.IS_SELECTED. This method requires correct neighbourhood information.

    - #### isEnabledMakeConstraints

          public boolean isEnabledMakeConstraints()

      Check if boundary constraints will be generate when boundary is created.
      Returns:
        `true` if making of boundary constraints is enabled.

    - #### setEnabledMakeConstraints

          public void setEnabledMakeConstraints(boolean flag)

      Set flag which determines if boundary constraints will be generate when boundary is created.
      Parameters:
        `flag` - `true` to enable making of boundary constraints.

    - #### makeBoundaryConstraints

          public void makeBoundaryConstraints()

      Make boundary constraints for existing PgBndPolygons. Polygons get constrained to a straight line, if they contain at least three vertices and all vertices lie upon this straight line. Polygons get constrained to a plane or a circle, if they contain at least four vertices and all vertices lie upon the plane or circle. This is a non-static call for PjWorkshop use.

    - #### makeBoundaryConstraint

          public static void makeBoundaryConstraint(PgElementSet elemSet,
                                    int bndIndex,
                                    double lineTol,
                                    double planeTol)

      Make boundary constraints for an existing PgBndPolygon. The polygon gets constrained to a straight line, if it contains at least three vertices and all vertices lie upon this straight line. The polygon gets constrained to a plane or a circle, if it contains at least four vertices and all vertices lie upon the plane or circle.

"

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