JavaView® v2.00.008

jvx.geom
Class PwLIC

java.lang.Object
  |
  +--jv.object.PsObject
        |
        +--jvx.geom.PwLIC
All Implemented Interfaces:
java.lang.Cloneable, PsUpdateIf, java.lang.Runnable, java.io.Serializable

public class PwLIC
extends PsObject
implements java.lang.Runnable

Make Line Integral Convolution texture image to given vector field in a JavaView workshop. Uses the methods provided by class PnLIC.

Version:
18.09.00, 3.10 revised (ep) bugfix vertex based vector fields in method run().
19.06.00, 3.00 created (ep)
Author:
Eike Preuss
See Also:
PnLIC, Serialized Form

Field Summary
protected  PuDouble m_coarseness
          Coarseness of the convoluted noise.
protected  PuInteger m_conv
          Width of convolution window.
protected static int m_dimOfDomain
          Dimension of domain and vector fields.
protected  boolean m_fast
          Specifies whether euler integration or 4th order runge kutta.
protected  PgElementSet m_geom
          Base geometry is a rectangular grid which carries the vector field.
protected  java.lang.Thread m_LIC
          the process that computes the LIC images
protected  PuInteger m_LICSize
          Size of quadratic LIC texture image.
protected  PuInteger m_minConv
          Minimum width of convolution window.
protected  PgVectorField m_vf
          Vector field, associated with base geometry.
 
Fields inherited from class jv.object.PsObject
HAS_CONFIG_PANEL, HAS_INFO_PANEL, HAS_MATERIAL_PANEL, INSPECTOR_INFO, INSPECTOR_INFO_EXT, IS_DELETED, IS_FIXED, IS_SELECTED, IS_USED, m_infoPanel, m_name, m_panelList, m_parent, m_tag, m_updateList, NUM_TAGS
 
Constructor Summary
PwLIC()
           
 
Method Summary
 void init()
          If instance has missing name then assign default name 'object_NUMBER' where number is the total number of already created instances.
 boolean isComputingLIC()
           
 void run()
           
 void setFast(boolean flag)
          Sets whether 4th-order runge-kutta or euler integration will be used.
 void setGeometry(PgElementSet geom)
          Sets the triangulation.
 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, 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, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

m_dimOfDomain

protected static final int m_dimOfDomain
Dimension of domain and vector fields.

m_geom

protected PgElementSet m_geom
Base geometry is a rectangular grid which carries the vector field.

m_vf

protected PgVectorField m_vf
Vector field, associated with base geometry.

m_LIC

protected java.lang.Thread m_LIC
the process that computes the LIC images

m_LICSize

protected PuInteger m_LICSize
Size of quadratic LIC texture image.

m_conv

protected PuInteger m_conv
Width of convolution window.

m_minConv

protected PuInteger m_minConv
Minimum width of convolution window.

m_coarseness

protected PuDouble m_coarseness
Coarseness of the convoluted noise.

m_fast

protected boolean m_fast
Specifies whether euler integration or 4th order runge kutta.
Constructor Detail

PwLIC

public PwLIC()
Method Detail

init

public void init()
Description copied from class: PsObject
If instance has missing name then assign default name 'object_NUMBER' where number is the total number of already created instances.
Overrides:
init in class PsObject

setGeometry

public void setGeometry(PgElementSet geom)
Sets the triangulation.

update

public boolean update(java.lang.Object event)
Update the class whenever a child has changed. Method is usually invoked from the children.
Overrides:
update in class PsObject
Following copied from class: jv.object.PsObject
See Also:
PsObject.setParent(PsUpdateIf), PsObject.getFather(), PsObject.addUpdateListener(PsUpdateIf)

setFast

public void setFast(boolean flag)
Sets whether 4th-order runge-kutta or euler integration will be used.
Parameters:
flag - true: euler; false: 4th order r.-k.

isComputingLIC

public boolean isComputingLIC()
Returns:
true if the LIC thread is running at the moment

startLIC

public void startLIC()
Starts a new thread that computes the LIC texture.

stopLIC

public void stopLIC()
Stops the LIC thread if it is currently running.

run

public void run()
Specified by:
run in interface java.lang.Runnable

JavaView® v2.00.008

The software JavaView® is copyright protected. All Rights Reserved.