public class PwLIC extends PjWorkshop implements java.lang.Runnable
jvx.numeric.PnLIC.
Using this class:
Tell it about the geometry with a vector field: setGeometry(PgGeometry).
Select a vector field: setVectorFieldIndex(int).
Configure LIC: setConvolutionWidth(int),
setLICSize(int),setFast(boolean), ...
Compute LIC: startLIC().
When you want to get rid of an instance of this workshop you should call the close() method to clean up things.
PnLIC,
Serialized FormHAS_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 |
|---|
PwLIC() |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Call this method to shutdown the workshop.
|
void |
computeTextureSize()
Called from info panel.
|
double |
getCoarseness() |
double |
getContrast() |
int |
getConvolutionWidth() |
boolean |
getFast()
Get flag if 4th-order Runge-Kutta or Euler integration is used.
|
boolean |
getIgnoreDirection()
Get flag is workshop makes LIC texture visible after every element.
|
int |
getLICSize() |
int |
getMinConvolutionWidth() |
PnLIC |
getNumericLICInstance()
HACK:
|
boolean |
getSendManyUpdates() |
double |
getStepSize() |
java.awt.Dimension |
getTextureSize() |
int |
getVectorFieldIndex()
Get index of selected vector field.
|
void |
init()
Resets all properties to default values.
|
boolean |
isComputingLIC()
Checks whether workshop is currently working on a LIC texture.
|
void |
run() |
void |
setConvolutionWidth(int convWidth)
Sets the number of pixels that are convoluted in a neighbourhood of a pixel
to compute the new value of that pixel.
|
void |
setFast(boolean flag)
Set flag which determines if 4th-order Runge-Kutta or Euler integration will be used
for integration along vector field.
|
void |
setGeometry(PgGeometry geom)
Sets the triangulation.
|
void |
setIgnoreDirection(boolean flag)
Ignores the direction of vertex based vector fields, i.e.
|
void |
setLICSize(int aSize)
Sets the size that the longest edge of the triangulation will have in the texture image (in pixels).
|
void |
setMinConvolutionWidth(int minconvwidth)
Sets the least number of pixels that are convoluted in a neighbourhood of a pixel
to compute the new value of that pixel, even if the velocity of the vector field
is zero (or very very small).
|
void |
setSendManyUpdates(boolean flag)
Set flag is workshop makes LIC texture visible after every element.
|
void |
setVectorFieldIndex(int vfIndex)
Set the vector field that will be visualized by index in the
element set as set by
setGeometry(PgGeometry),
beginning with index 0. |
void |
startLIC()
Starts a new thread that computes the LIC texture.
|
void |
startLIC(boolean bPreview)
Starts a new thread that computes the LIC texture.
|
void |
stopLIC()
Stops the LIC thread if it is currently running.
|
boolean |
update(java.lang.Object event)
Update the class whenever a child has changed.
|
cancel, 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()
init in class PjWorkshoppublic void setGeometry(PgGeometry geom)
Geometry is triangulated if it is no triangulation.
setGeometry in interface PjWorkshopIfsetGeometry in class PjWorkshopgeom - may be null to indicate that the geometry shall be removed from this workshoppublic int getVectorFieldIndex()
public void setVectorFieldIndex(int vfIndex)
setGeometry(PgGeometry),
beginning with index 0.vfIndex - index of vector field that shall be visualized 0,...setGeometry(PgGeometry)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 computeTextureSize()
public void setFast(boolean flag)
flag - true: euler; false: 4th order r.-k.public boolean getFast()
public void setIgnoreDirection(boolean flag)
public boolean getIgnoreDirection()
public void setSendManyUpdates(boolean flag)
public boolean getSendManyUpdates()
public void setConvolutionWidth(int convWidth)
public int getConvolutionWidth()
public double getCoarseness()
public double getStepSize()
public void setMinConvolutionWidth(int minconvwidth)
public int getMinConvolutionWidth()
public double getContrast()
public void setLICSize(int aSize)
setGeometry(PgGeometry)public int getLICSize()
public java.awt.Dimension getTextureSize()
public PnLIC getNumericLICInstance()
public boolean isComputingLIC()
startLIC(),
stopLIC()public void startLIC()
isComputingLIC(),
stopLIC()public void startLIC(boolean bPreview)
isComputingLIC(),
stopLIC()public void stopLIC()
isComputingLIC(),
startLIC()public void close()
close in class PjWorkshoppublic void run()
run in interface java.lang.Runnable"