|
JavaView® v2.12 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--jvx.numeric.PnLIC
Line Integral Convolution for vector field visualization.
After constructing an instance of this class you can imediately
get the resulting LIC texture size by methods getTextureWidth()
and getTextureHeight().
| Constructor Summary | |
PnLIC(PgElementSet geom,
int size,
double time,
PnGeodesicRK rk)
Creates a new LIC processor for given geometry. |
|
| Method Summary | |
double |
getCoarseness()
|
int |
getConvolutionWidth()
|
int |
getMinConvolutionWidth()
|
int[] |
getPixArray(int[] pix)
Puts actual LIC texture line by line with offset 0 and scanwidth 'texturewidth' into given alphaRGB pixel array. |
double |
getStepSize()
|
int |
getTextureHeight()
Call this to get information about the actual height of the texture image that is used for the LIC image. |
int |
getTextureWidth()
Call this to get information about the actual width of the texture image that is used for the LIC image. |
void |
makeElement(int elemIndex)
Computes Line Integral Convolution texture along all integral lines that begin in given element. |
void |
makeLIC()
Computes LIC texture for all elements of geometry. |
boolean |
setCoarseness(double coarse)
Sets the coarseness of noise that is convoluted to create the LIC image. |
boolean |
setConvolutionWidth(int numPixels)
Sets normal (one-velocity) convolution width along integral lines. |
boolean |
setMinConvolutionWidth(int numPixels)
At every point their is a minimal number of pixels that are convoluted, even if convolutionwidth*(velocity of vector field)
is less than this number (minconvolutionwidth). |
void |
setStepSize(double h)
Sets the stepsize of the runge-kutta integration method. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public PnLIC(PgElementSet geom,
int size,
double time,
PnGeodesicRK rk)
geom - underlying geometrysize - width in pixels of longest edge of the geometrytime - not yet implementedrk - geodesic runge-kutta method that contains the vector field
that shall be visualizedPnGeodesicRK| Method Detail |
public int getTextureWidth()
public int getTextureHeight()
public boolean setCoarseness(double coarse)
coarse - 0 = fine; 1 = constantpublic double getCoarseness()
public boolean setConvolutionWidth(int numPixels)
numPixels - new width given in texture pixelspublic int getConvolutionWidth()
public boolean setMinConvolutionWidth(int numPixels)
convolutionwidth*(velocity of vector field)
is less than this number (minconvolutionwidth). Of course this number
may be zero. minconvolutionwidth may not be less than convolutionwidth.public int getMinConvolutionWidth()
public void setStepSize(double h)
h - stepsizepublic double getStepSize()
public void makeElement(int elemIndex)
elemIndex - global element index in underlying geometrypublic int[] getPixArray(int[] pix)
getTextureWidth() and getTextureHeight(), or may be null. If parameter is null
then a new integer array of the correct size is returned.pix - output: actual LIC texture; should be of size texturewidth*textureheightpix, or a new integer array
that contains the results if pix is nullgetTextureWidth(),
getTextureHeight()public void makeLIC()
getPixArray(int[]) returns the texture image.getPixArray(int[])
|
JavaView® v2.12 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||