|
JavaView® v2.12 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--jv.object.PsObject
|
+--jvx.geom.PwLIC
Make Line Integral Convolution texture image to given vector field in a JavaView workshop.
Uses the methods provided by class jvx.numeric.PnLIC.
All computation is done in a seperate thread. If you register as an update listener
to this object, then you will receive an update whenever a LIC computation has been
ended.
Using this class:
Tell it about the geometry with a vector field: setGeometry(PgElementSet).
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 Form| Fields inherited from class jv.object.PsObject |
HAS_CONFIG_PANEL, HAS_INFO_PANEL, HAS_MATERIAL_PANEL, HAS_TEXTURE_PANEL, INSPECTOR_INFO, INSPECTOR_INFO_EXT, IS_DELETED, IS_FIXED, IS_SELECTED, IS_USED, NUM_TAGS |
| Constructor Summary | |
PwLIC()
|
|
| Method Summary | |
void |
close()
Call this method to shutdown the workshop. |
int |
getConvolutionWidth()
|
boolean |
getFast()
|
PgElementSet |
getGeometry()
|
int |
getLICSize()
|
int |
getMinConvolutionWidth()
|
int |
getVectorFieldIndex()
|
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)
Sets whether 4th-order runge-kutta or euler integration will be used for integration along vector field. |
void |
setGeometry(PgElementSet geom)
Sets the triangulation. |
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 |
setVectorFieldIndex(int vfIndex)
Set the vector field that will be visualized by index in the element set as set by setGeometry(PgElementSet),
beginning with index 0. |
void |
startLIC()
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. |
| Methods inherited from class jv.object.PsObject |
addInspector, addUpdateListener, assureInspector, clearTag, clone, clone, clone, copy, getFather, getInfoPanel, getInspector, getName, getNumObjects, hasInspector, hasTag, hasUpdateListener, instanceOf, instanceOf, removeInspector, removeUpdateListener, setName, setParent, setTag, toString, updatePanels |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public PwLIC()
| Method Detail |
public void init()
init in class PsObjectpublic void setGeometry(PgElementSet geom)
geom - may be null to indicate that the geometry shall be removed from this workshoppublic PgElementSet getGeometry()
public void setVectorFieldIndex(int vfIndex)
setGeometry(PgElementSet),
beginning with index 0.vfIndex - index of vector field that shall be visualized 0,...setGeometry(PgElementSet)public int getVectorFieldIndex()
public boolean update(java.lang.Object event)
update in class PsObjectjv.object.PsObjectPsObject.setParent(PsUpdateIf),
PsObject.getFather(),
PsObject.addUpdateListener(PsUpdateIf)public void setFast(boolean flag)
flag - true: euler; false: 4th order r.-k.public boolean getFast()
public void setConvolutionWidth(int convWidth)
public int getConvolutionWidth()
public void setMinConvolutionWidth(int minconvwidth)
public int getMinConvolutionWidth()
public void setLICSize(int aSize)
setGeometry(PgElementSet)public int getLICSize()
public boolean isComputingLIC()
startLIC(),
stopLIC()public void startLIC()
isComputingLIC(),
stopLIC()public void stopLIC()
isComputingLIC(),
startLIC()public void close()
public void run()
run in interface java.lang.Runnable
|
JavaView® v2.12 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||