public class PjSmooth extends PjProject implements java.awt.event.ActionListener
Noisy geometries are smoothed according to a Laplacian or different mean curvature flows. The flows may be anisotropic and adjust to the geometry.
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| Constructor and Description |
|---|
PjSmooth()
Constructor, without arguments to allow loading of project from menu.
|
PjSmooth(java.lang.String fileName) |
| Modifier and Type | Method and Description |
|---|---|
void |
actionPerformed(java.awt.event.ActionEvent event)
Catch action events from the import loader when a new model was loaded.
|
void |
init()
Do initialization of data structures; method is also used to reset instances.
|
boolean |
setGeometry(PgGeometryIf newGeomIf)
Assign a new geometry to the smoothing workshop.
|
void |
start()
Start project, e.g. start an animation.
|
boolean |
update(java.lang.Object event)
Update method of project to react on changes in its panel or of its children.
|
addDisplay, addGeometry, addGeometry, dispose, dragDisplay, dragInitial, dragVertex, fitDisplays, getAnimation, getDisplay, getDisplays, getGeometry, getGeometry, getNumGeometries, getParameter, getViewer, hasAnimation, hasDisplay, isEnabledAutoFit, markVertices, pickDisplay, pickInitial, pickVertex, removeDisplay, removeGeometries, removeGeometry, selectDisplay, selectGeometry, setAnimation, setBackColor, setBorderType, setDisplay, setEnabledAutoFit, setParameter, setTime, setViewer, stop, unmarkVerticesaddInspector, 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, updatePanelsequals, getClass, hashCode, notify, notifyAll, wait, wait, waitgetNamegetNamepublic PjSmooth()
public PjSmooth(java.lang.String fileName)
public void init()
public void start()
start in class PjProjectPvViewerIf.start(),
PjProject.isEnabledAutoFit()public void actionPerformed(java.awt.event.ActionEvent event)
actionPerformed in interface java.awt.event.ActionListenerpublic boolean update(java.lang.Object event)
child.setParent(this) with
this project as argument. For example, see the constructor of MyProject.
Project must react on child events, or forward them to its superclass.
Catch events of integer children and recompute surface.
update in interface PsUpdateIfupdate in class PsObjectevent - carries a lot of informationPsObject.setParent(PsUpdateIf),
PsObject.getFather(),
PsObject.addUpdateListener(PsUpdateIf)public boolean setGeometry(PgGeometryIf newGeomIf)
setGeometry in class PjProjectnewGeomIf - main geometry of this project."