jvx.geom

## Class PwNoise

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

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

      public class PwNoise
      extends PjWorkshop

  This workshop moves all vertices of a PgPointSet randomly away from their original position. The random direction may be constrained to vertex normal or tangential directions. Boundaries and marked vertices may be kept fix.
  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
    `PwNoise()` Constructor

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `close()` Close workshop and remove workshop from geometry as update listener.
    `double` | `getAmplitude()` Get amplitude of noise.
    `void` | `init()` Initialization.
    `boolean` | `isEnabledKeepBoundary()` Get flag to keep boundary vertices fixed during noising.
    `boolean` | `isEnabledKeepSelected()` Get flag to keep selected vertices fixed during noising.
    `boolean` | `isEnabledNoiseNormal()` Get flag to enable movement of vertices in vertex normal direction.
    `boolean` | `isEnabledNoiseTangential()` Get flag to enable movement of vertices in tangential direction.
    `boolean` | `isEnabledUpdateNormals()` Get flag to update vertex normals after noising.
    `void` | `keepBoundary(boolean flag)` Deprecated. use setEnabledKeepBoundary.
    `void` | `keepSelected(boolean flag)` Deprecated. use setEnabledKeepSelected.
    `void` | `newFrequence()` Select by random vertices to be noised.
    `void` | `newNoise()` Generate new random noise directions for all vertices.
    `void` | `noise()` Move all vertices by their individual noise directions.
    `void` | `noise(double factor, boolean bNormal, boolean bTangential, boolean bKeepBoundary, boolean bKeepSelected)` Deprecated. set options first and use noise() method instead.(ur)
    `void` | `noiseNormal(boolean flag)` Deprecated. use setEnabledNoiseNormal.
    `void` | `noiseTangential(boolean flag)` Deprecated. use setEnabledNoiseTangential.
    `void` | `reset()` Reset
    `void` | `setAmplitude(double value)` Set amplitude of noise.
    `void` | `setEnabledKeepBoundary(boolean flag)` Set flag to keep boundary vertices fixed during noising.
    `void` | `setEnabledKeepSelected(boolean flag)` Set flag to keep selected vertices fixed during noising.
    `void` | `setEnabledNoiseNormal(boolean flag)` Set flag to enable movement of vertices in vertex normal direction.
    `void` | `setEnabledNoiseTangential(boolean flag)` Set flag to enable movement of vertices in tangential direction.
    `void` | `setEnabledUpdateNormals(boolean flag)` Set flag to update vertex normals after noising.
    `void` | `setGeometry(PgGeometry geom)` Store geometry to be noised.
    `boolean` | `update(java.lang.Object event)` Update the class whenever a child has changed.
    `void` | `updateNormals(boolean flag)` Deprecated. use setEnabledUpdateNormals.

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

      `cancel, getDisplay, getDisplays, getGeometry, getMode, getSavedGeometry, getViewer, isModal, isStandalone, ok, 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

    - #### PwNoise

          public PwNoise()

      Constructor

  - ### Method Detail

    - #### init

          public void init()

      Initialization.
      Overrides:
        `init` in class `PjWorkshop`

    - #### reset

          public void reset()

      Reset
      Overrides:
        `reset` in class `PjWorkshop`

    - #### setGeometry

          public void setGeometry(PgGeometry geom)

      Store geometry to be noised.
      Specified by:
        `setGeometry` in interface `PjWorkshopIf`
      Overrides:
        `setGeometry` in class `PjWorkshop`
      Parameters:
        `geom` - the workshop modifies this geometry.

    - #### setAmplitude

          public void setAmplitude(double value)

      Set amplitude of noise.

    - #### getAmplitude

          public double getAmplitude()

      Get amplitude of noise.

    - #### isEnabledKeepBoundary

          public boolean isEnabledKeepBoundary()

      Get flag to keep boundary vertices fixed during noising.
      Since:
        JavaView 2.66

    - #### setEnabledKeepBoundary

          public void setEnabledKeepBoundary(boolean flag)

      Set flag to keep boundary vertices fixed during noising.
      Since:
        JavaView 2.66

    - #### isEnabledKeepSelected

          public boolean isEnabledKeepSelected()

      Get flag to keep selected vertices fixed during noising.
      Since:
        JavaView 2.66

    - #### setEnabledKeepSelected

          public void setEnabledKeepSelected(boolean flag)

      Set flag to keep selected vertices fixed during noising.
      Since:
        JavaView 2.66

    - #### isEnabledNoiseTangential

          public boolean isEnabledNoiseTangential()

      Get flag to enable movement of vertices in tangential direction.
      Since:
        JavaView 2.66

    - #### setEnabledNoiseTangential

          public void setEnabledNoiseTangential(boolean flag)

      Set flag to enable movement of vertices in tangential direction.
      Since:
        JavaView 2.66

    - #### isEnabledNoiseNormal

          public boolean isEnabledNoiseNormal()

      Get flag to enable movement of vertices in vertex normal direction.
      Since:
        JavaView 2.66

    - #### setEnabledNoiseNormal

          public void setEnabledNoiseNormal(boolean flag)

      Set flag to enable movement of vertices in vertex normal direction.
      Since:
        JavaView 2.66

    - #### isEnabledUpdateNormals

          public boolean isEnabledUpdateNormals()

      Get flag to update vertex normals after noising.
      Since:
        JavaView 2.66

    - #### setEnabledUpdateNormals

          public void setEnabledUpdateNormals(boolean flag)

      Set flag to update vertex normals after noising.
      Since:
        JavaView 2.66

    - #### keepBoundary

          public void keepBoundary(boolean flag)

      Deprecated. use setEnabledKeepBoundary.
      Set flag to keep or not keep boundary vertices un-noised.

    - #### keepSelected

          public void keepSelected(boolean flag)

      Deprecated. use setEnabledKeepSelected.
      Set flag to keep or not keep selected vertices un-noised.

    - #### noiseTangential

          public void noiseTangential(boolean flag)

      Deprecated. use setEnabledNoiseTangential.
      Set Flag to noise or not noise vertices in tangential direction.

    - #### noiseNormal

          public void noiseNormal(boolean flag)

      Deprecated. use setEnabledNoiseNormal.
      Set Flag to noise or not noise vertices in vertex normal direction.

    - #### updateNormals

          public void updateNormals(boolean flag)

      Deprecated. use setEnabledUpdateNormals.
      Set flag to update or not update vertex normals after noising.

    - #### update

          public boolean update(java.lang.Object event)

      Update the class whenever a child has changed. Method is usually invoked from the children.
      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)`

    - #### close

          public void close()

      Close workshop and remove workshop from geometry as update listener. Instance variables of this workshop are nulled.
      Overrides:
        `close` in class `PjWorkshop`

    - #### newFrequence

          public void newFrequence()

      Select by random vertices to be noised.

    - #### newNoise

          public void newNoise()

      Generate new random noise directions for all vertices.

    - #### noise

          public void noise(double factor,
                   boolean bNormal,
                   boolean bTangential,
                   boolean bKeepBoundary,
                   boolean bKeepSelected)

      Deprecated. set options first and use noise() method instead.(ur)

    - #### noise

          public void noise()

      Move all vertices by their individual noise directions. Successive calls of this method will use the same noise vector per vertex unless the noise vector has been updated inbetween.

      Vertex and element normals of the geometry are update if the original geometry had respective normal vectors.

      Since:
        JavaView 2.49.015

"

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