JavaView© v3.95.000

jvx.geom
Class PwNoise

java.lang.Object
  extended byjv.object.PsObject
      extended byjvx.project.PjWorkshop
          extended byjvx.geom.PwNoise
All Implemented Interfaces:
java.lang.Cloneable, PjWorkshopIf, PsUpdateIf, java.io.Serializable

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_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
 
Constructor Summary
PwNoise()
          Constructor
 
Method Summary
 void close()
          Close workshop and remove workshop from geometry as update listener.
 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 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(PgPointSet 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, getSavedGeometry, getViewer, isModal, ok, removeGeometry, setDisplay, setDisplays, setGeometry, setModal, 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(PgPointSet geom)
Store geometry to be noised.


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.

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

JavaView© v3.95.000

The software JavaView© is copyright protected. All Rights Reserved.