public class PwIsoline extends PjWorkshop
Modifier and Type | Field and Description |
---|---|
static int |
RANGE_FULL |
static int |
RANGE_HIGHER |
static int |
RANGE_LOWER |
static int |
RANGE_MAJOR |
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 |
---|
PwIsoline()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
cancel()
Cancel operation of this workshop by resetting the assigned geometry,
and finally close this workshop.
|
PdVector |
getLevels() |
int |
getRangeType() |
void |
init()
Initialize and reset project, stops the running animation if any.
|
void |
makeIsolines()
Compute isolines of selected scalar field of geometry.
|
static PgPolygonSet |
makeIsolines(PgElementSet geom,
PdVector levels,
PgPolygonSet isolines,
PdVector scalar)
Computes a set of isolines of a scalar field on a triangulated surface.
|
void |
reset()
Reset workshop and geometry to original state.
|
void |
setGeometry(PgGeometry geom)
Assign a geometry on which this workshop operates,
and create a backup clone of the geometry.
|
void |
setLevels(PdVector level) |
void |
setRangeType(int type) |
boolean |
update(java.lang.Object event)
Each time another geometry is loaded.
|
close, getDisplay, getDisplays, getGeometry, getMode, getSavedGeometry, getViewer, isModal, isStandalone, ok, 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 static final int RANGE_MAJOR
public static final int RANGE_LOWER
public static final int RANGE_HIGHER
public static final int RANGE_FULL
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(PgGeometry geom)
PjWorkshop
Subclasses frequently overwrite this method but are advised to call this method.
setGeometry
in interface PjWorkshopIf
setGeometry
in class PjWorkshop
geom
- the workshop modifies this geometry.public void cancel()
If necessary, the duplicate of the original geometry is restored into the geometry.
cancel
in class PjWorkshop
public PdVector getLevels()
public void setLevels(PdVector level)
public int getRangeType()
public void setRangeType(int type)
public void makeIsolines()
public static PgPolygonSet makeIsolines(PgElementSet geom, PdVector levels, PgPolygonSet isolines, PdVector scalar)
PuCleanMesh.identifyVertices(PgGeometry)
and
PwCleanMesh.joinPolygons
.geom
- Base surface must consist of triangles only.levels
- List of values sorted by increasing value, determines the computed isolines.isolines
- Isocurves which will be computed.scalar
- Scalar values at each vertex of the base geometry."