public class PwBoundary 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 |
---|
PwBoundary()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
close()
Close workshop and remove itself as listener from various classes.
|
double |
getCornerAngle()
Get maximal corner angle in [0,360] such that smaller vertex angles
along the boundary are identified as sharp boundary vertices.
|
double |
getLineTol()
Get tolerance allowed for points to vary from a line.
|
double |
getPlaneTol()
Get tolerance allowed for points to vary from a plane.
|
void |
init()
Initialize and reset project, stops the running animation if any.
|
boolean |
isEnabledMakeConstraints()
Check if boundary constraints will be generate when boundary is created.
|
void |
makeBoundary()
Generate boundary polygons for a PgElementSet.
|
static void |
makeBoundary(PgElementSet elemSet)
Generate boundary polygons for a PgElementSet.
|
static void |
makeBoundaryConstraint(PgElementSet elemSet,
int bndIndex,
double lineTol,
double planeTol)
Make boundary constraints for an existing PgBndPolygon.
|
void |
makeBoundaryConstraints()
Make boundary constraints for existing PgBndPolygons.
|
void |
ok()
Accept the current state of the geometry and close the workshop.
|
void |
removeBoundary()
Remove boundary from the registered geometry.
|
void |
reset()
Reset this workshop to its initial state from which computations
can start.
|
void |
setCornerAngle(double angle)
Set maximal corner angle in [0,360] such that smaller vertex angles
along the boundary are identified as sharp boundary vertices.
|
void |
setEnabledMakeConstraints(boolean flag)
Set flag which determines if boundary constraints will be generate when boundary is created.
|
void |
setGeometry(PgGeometry geom)
Assign a geometry, on which the workshop operates.
|
void |
setLineTol(double lineTol)
Set tolerance allowed for points to vary from a line.
|
void |
setPlaneTol(double planeTol)
Set tolerance allowed for points to vary from a plane.
|
boolean |
update(java.lang.Object event)
Update workshop and geometry.
|
cancel, getDisplay, getDisplays, getGeometry, getMode, getSavedGeometry, getViewer, isModal, isStandalone, 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()
PjWorkshop
init
in class PjWorkshop
public void reset()
reset
in class PjWorkshop
public void close()
close
in class PjWorkshop
public void ok()
ok
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(PgGeometry geom)
setGeometry
in interface PjWorkshopIf
setGeometry
in class PjWorkshop
geom
- the workshop modifies this geometry.public void removeBoundary()
public void makeBoundary()
public double getCornerAngle()
public void setCornerAngle(double angle)
public double getLineTol()
public void setLineTol(double lineTol)
public double getPlaneTol()
public void setPlaneTol(double planeTol)
public static void makeBoundary(PgElementSet elemSet)
public boolean isEnabledMakeConstraints()
true
if making of boundary constraints is enabled.public void setEnabledMakeConstraints(boolean flag)
flag
- true
to enable making of boundary constraints.public void makeBoundaryConstraints()
public static void makeBoundaryConstraint(PgElementSet elemSet, int bndIndex, double lineTol, double planeTol)
"