public class PwIntersectWithFunction extends PwIntersectElementSet
Modifier and Type | Field and Description |
---|---|
static int |
DATA
Identifier for intersect with data array mode.
|
static int |
FUNCTION
Identifier for intersect with function mode.
|
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 |
---|
PwIntersectWithFunction()
Constructor
|
Modifier and Type | Method and Description |
---|---|
void |
clip(boolean bPositive)
Clip the workshop's geometry at the level function or vertex data.
|
void |
clipAtFunction(boolean bPositive)
Clip the workshop's geometry at the level function.
|
void |
clipAtPdVector(boolean bPositive)
Clip the workshop's geometry at level in scalar data.
|
void |
computeVertexDataFromNormal()
Fill vertex data array with scalar product of vertex normal and this workshop's normal vector.
|
java.lang.String |
getFunction()
Get textual expression of level function.
|
double |
getLevel()
Get level value at which clipping happens.
|
int |
getMode()
Get current intersection mode
|
void |
intersect()
Invoke Cutting the elements of the workshop's geometry at level function or vertex data.
|
void |
intersect(double level)
Invoke Cutting the elements of the workshop's geometry at level function or vertex data.
|
void |
intersectWithFunction()
Invoke Cutting the elements of the workshop's geometry at the level function.
|
void |
intersectWithPdVector()
Invoke Cutting the elements of the workshop's geometry at scalar data.
|
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 canceled.
|
void |
setLevel(double level)
Set the value at which clipping happens.
|
void |
setMode(int mode)
Set intersection mode to FUNCTION or DATA.
|
void |
setScalarData(PdVector data)
Set double data to clip or split Geometry at.
|
PgElementSet |
splitAtFunction()
Split the workshop's geometry into two geometries along the level function.
|
PgElementSet |
splitAtPdVector()
Split the workshop's geometry into two geometries at a level in scalar data.
|
boolean |
update(java.lang.Object event)
Update the class whenever a child has changed.
|
breakElements, breakElements, cancel, cutAlongIntersection, cutAlongIntersection, getIntersection, init, reset, setGeometries
close, getDisplay, getDisplays, getGeometry, getSavedGeometry, getViewer, isModal, isStandalone, ok, removeGeometry, setDisplay, setDisplays, setModal, 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 static final int FUNCTION
public static final int DATA
public void setGeometry(PgGeometry geom)
setGeometry
in interface PjWorkshopIf
setGeometry
in class PjWorkshop
geom
- the workshop modifies this geometry.public void setMode(int mode)
setMode
in interface PjWorkshopIf
setMode
in class PjWorkshop
mode
- either MODE_STANDARD for standard mode, or MODE_BUG for debugging operations.PjWorkshopIf.MODE_STANDARD
public int getMode()
getMode
in class PjWorkshop
PjWorkshopIf.MODE_STANDARD
public java.lang.String getFunction()
public void setFunction(java.lang.String s)
s
- string containing a function expressionParser
public void setScalarData(PdVector data)
public double getLevel()
public void setLevel(double level)
level
- level value at which clipping happenspublic 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 intersect()
intersect
in class PwIntersectElementSet
public void intersectWithFunction()
public void intersectWithPdVector()
public void computeVertexDataFromNormal()
public PgElementSet splitAtFunction()
public PgElementSet splitAtPdVector()
public void clip(boolean bPositive)
bPositive
- Flag to get either the higher or the lower function value areas.public void clipAtFunction(boolean bPositive)
bPositive
- Flag to get either the higher or the lower function value areas.public void clipAtPdVector(boolean bPositive)
bPositive
- Flag to get either the higher or the lower function value areas.public void intersect(double level)
"