public class PwEnergy extends PjWorkshop
PjImportModel
or may
be set from external projects.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 |
---|
PwEnergy()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
PnEnergy |
getEnergy() |
PnEnergyMinimizer |
getMinimizer() |
void |
init()
Initialize and reset project, stops the running animation if any.
|
void |
reset()
Reset workshop and geometry to original state.
|
void |
setEnergy(PnEnergy energy) |
void |
setGeometry(PgElementSet geom) |
boolean |
update(java.lang.Object event)
Each time another geometry is loaded.
|
cancel, close, getDisplay, getDisplays, getGeometry, getMode, getSavedGeometry, getViewer, isModal, isStandalone, ok, openDialog, removeGeometry, setDisplay, setDisplays, setGeometry, 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()
PjWorkshop
init
in class PjWorkshop
public void reset()
reset
in class PjWorkshop
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 setGeometry(PgElementSet geom)
public PnEnergyMinimizer getMinimizer()
public PnEnergy getEnergy()
public void setEnergy(PnEnergy energy)
"