public class PwNoise extends PjWorkshop
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
MODE_BUG, MODE_STANDARD, MODE_VALIDATE
Constructor and Description |
---|
PwNoise()
Constructor
|
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.
|
cancel, getDisplay, getDisplays, getGeometry, getMode, getSavedGeometry, getViewer, isModal, isStandalone, ok, openDialog, removeGeometry, setDisplay, setDisplays, setModal, setMode, setStandalone, setViewer
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
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
getFather, getName, setParent
public void init()
init
in class PjWorkshop
public void reset()
reset
in class PjWorkshop
public void setGeometry(PgGeometry geom)
setGeometry
in interface PjWorkshopIf
setGeometry
in class PjWorkshop
geom
- the workshop modifies this geometry.public void setAmplitude(double value)
public double getAmplitude()
public boolean isEnabledKeepBoundary()
public void setEnabledKeepBoundary(boolean flag)
public boolean isEnabledKeepSelected()
public void setEnabledKeepSelected(boolean flag)
public boolean isEnabledNoiseTangential()
public void setEnabledNoiseTangential(boolean flag)
public boolean isEnabledNoiseNormal()
public void setEnabledNoiseNormal(boolean flag)
public boolean isEnabledUpdateNormals()
public void setEnabledUpdateNormals(boolean flag)
public void keepBoundary(boolean flag)
public void keepSelected(boolean flag)
public void noiseTangential(boolean flag)
public void noiseNormal(boolean flag)
public void updateNormals(boolean flag)
public boolean update(java.lang.Object event)
update
in interface PsUpdateIf
update
in class PjWorkshop
event
- sender of this update.PsObject.setParent(PsUpdateIf)
,
PsObject.getFather()
,
PsObject.addUpdateListener(PsUpdateIf)
public void close()
close
in class PjWorkshop
public void newFrequence()
public void newNoise()
public void noise(double factor, boolean bNormal, boolean bTangential, boolean bKeepBoundary, boolean bKeepSelected)
public void noise()
Vertex and element normals of the geometry are update if the original geometry had respective normal vectors.
"