public class PwClip 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_TAGSMODE_BUG, MODE_STANDARD, MODE_VALIDATE| Constructor and Description |
|---|
PwClip()
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
clipAtFunction()
Cut all elements of the workshop's geometry at the level value.
|
void |
clipAtFunction(double level)
Cut all elements of the workshop's geometry at the given level value.
|
java.lang.String |
getFunction()
Get textual expression of level function.
|
double |
getLevel()
Get level value at which clipping happens.
|
void |
init()
Initialize and reset project, stops the running animation if any.
|
boolean |
isEnabledPositive()
Get comparison sign for function level.
|
void |
setEnabledPositive(boolean showPositive)
Set comparison sign for function level.
|
void |
setFunction(java.lang.String s)
Set textual expression of level function used clipping from outside of workshop.
|
void |
setGeometry(PgGeometry geom)
Assign a geometry on which this workshop operates,
and create a backup copy if workshop is cancelled.
|
void |
setLevel(double level)
Set the value at which clipping happens.
|
boolean |
update(java.lang.Object event)
Update the class whenever a child has changed.
|
cancel, close, getDisplay, getDisplays, getGeometry, getMode, getSavedGeometry, getViewer, isModal, isStandalone, ok, openDialog, removeGeometry, reset, setDisplay, setDisplays, setModal, setMode, setStandalone, setVieweraddInspector, 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, waitgetFather, getName, setParentpublic void init()
PjWorkshopinit in class PjWorkshoppublic void setGeometry(PgGeometry geom)
setGeometry in interface PjWorkshopIfsetGeometry in class PjWorkshopgeom - the workshop modifies this geometry.public java.lang.String getFunction()
public void setFunction(java.lang.String s)
s - string containing a function expressionParserpublic double getLevel()
public void setLevel(double level)
level - Level value at which clipping happens.public void setEnabledPositive(boolean showPositive)
public boolean isEnabledPositive()
public boolean update(java.lang.Object event)
update in interface PsUpdateIfupdate in class PjWorkshopevent - sender of this update.PsObject.setParent(PsUpdateIf),
PsObject.getFather(),
PsObject.addUpdateListener(PsUpdateIf)public void clipAtFunction()
public void clipAtFunction(double level)
"