jvx.vector
Class PwIsoline
- java.lang.Object
-
- jv.object.PsObject
-
- jvx.project.PjWorkshop
-
- jvx.vector.PwIsoline
-
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Cloneable, PsUpdateIf, PjWorkshopIf
public class PwIsoline extends PjWorkshop
Study scalar fields on a surface which are given as vector fields of dimension 1. Compute level lines as polygon set or assign vertex colors based on the scalar.- See Also:
- Serialized Form
- Author:
- Konrad Polthier, Klaus Hildebrandt
- Version:
- 01.03.04, 1.00 created (kp)
-
-
Field Summary
Fields Modifier and Type Field and Description static intRANGE_FULLstatic intRANGE_HIGHERstatic intRANGE_LOWERstatic intRANGE_MAJOR-
Fields inherited from class jv.object.PsObject
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
-
Fields inherited from interface jv.project.PjWorkshopIf
MODE_BUG, MODE_STANDARD, MODE_VALIDATE
-
-
Constructor Summary
Constructors Constructor and Description PwIsoline()Constructor.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidcancel()Cancel operation of this workshop by resetting the assigned geometry, and finally close this workshop.PdVectorgetLevels()intgetRangeType()voidinit()Initialize and reset project, stops the running animation if any.voidmakeIsolines()Compute isolines of selected scalar field of geometry.static PgPolygonSetmakeIsolines(PgElementSet geom, PdVector levels, PgPolygonSet isolines, PdVector scalar)Computes a set of isolines of a scalar field on a triangulated surface.voidreset()Reset workshop and geometry to original state.voidsetGeometry(PgGeometry geom)Assign a geometry on which this workshop operates, and create a backup clone of the geometry.voidsetLevels(PdVector level)voidsetRangeType(int type)booleanupdate(java.lang.Object event)Each time another geometry is loaded.-
Methods inherited from class jvx.project.PjWorkshop
close, getDisplay, getDisplays, getGeometry, getMode, getSavedGeometry, getViewer, isModal, isStandalone, ok, removeGeometry, setDisplay, setDisplays, setModal, setMode, setStandalone, setViewer
-
Methods inherited from class jv.object.PsObject
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
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface jv.object.PsUpdateIf
getFather, getName, setParent
-
-
-
-
Field Detail
-
RANGE_MAJOR
public static final int RANGE_MAJOR
- See Also:
- Constant Field Values
-
RANGE_LOWER
public static final int RANGE_LOWER
- See Also:
- Constant Field Values
-
RANGE_HIGHER
public static final int RANGE_HIGHER
- See Also:
- Constant Field Values
-
RANGE_FULL
public static final int RANGE_FULL
- See Also:
- Constant Field Values
-
-
Method Detail
-
init
public void init()
Description copied from class:PjWorkshopInitialize and reset project, stops the running animation if any. Does not reset any registered display nor geometry. They must be reset individually in each subclass.- Overrides:
initin classPjWorkshop
-
reset
public void reset()
Reset workshop and geometry to original state.- Overrides:
resetin classPjWorkshop
-
update
public boolean update(java.lang.Object event)
Each time another geometry is loaded.- Specified by:
updatein interfacePsUpdateIf- Overrides:
updatein classPjWorkshop- Parameters:
event- sender of this update.- Returns:
- true if update was correctly handled by superclass.
- See Also:
PsObject.setParent(PsUpdateIf),PsObject.getFather(),PsObject.addUpdateListener(PsUpdateIf)
-
setGeometry
public void setGeometry(PgGeometry geom)
Description copied from class:PjWorkshopAssign a geometry on which this workshop operates, and create a backup clone of the geometry. The backup geometry is restored if the workshop is canceled.Subclasses frequently overwrite this method but are advised to call this method.
- Specified by:
setGeometryin interfacePjWorkshopIf- Overrides:
setGeometryin classPjWorkshop- Parameters:
geom- the workshop modifies this geometry.
-
cancel
public void cancel()
Cancel operation of this workshop by resetting the assigned geometry, and finally close this workshop.If necessary, the duplicate of the original geometry is restored into the geometry.
- Overrides:
cancelin classPjWorkshop
-
getLevels
public PdVector getLevels()
-
setLevels
public void setLevels(PdVector level)
-
getRangeType
public int getRangeType()
-
setRangeType
public void setRangeType(int type)
-
makeIsolines
public void makeIsolines()
Compute isolines of selected scalar field of geometry.- Version:
- 01.03.04, 1.00 created (kp)
-
makeIsolines
public static PgPolygonSet makeIsolines(PgElementSet geom, PdVector levels, PgPolygonSet isolines, PdVector scalar)
Computes a set of isolines of a scalar field on a triangulated surface. The function is given as a PdVector. Each double of the vector is regarded as the function value of the vertex of the surface with the corresponding index. In the interior of elements the function is linearly interpolated. The isolines are returned as a list of polygons each consisting of only one edge. The isovalue of each polygon is given as a PdVector. To simplify the polygon set seePuCleanMesh.identifyVertices(PgGeometry)andPwCleanMesh.joinPolygons.- Parameters:
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.- Since:
- JavaView 2.65.000
- Version:
- 20.03.03, 1.10 created (ep) Body inherited from original non-static method makeIsolines. 00.07.02, 1.00 created (kh) Original body of method.
-
-
"