|
JavaView® v2.00.008 | ||||||||
| 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.
| Field Summary | |
protected double |
m_coarseness
Control of the noise. |
protected PgElementSet |
m_geom
the geometry |
protected int |
m_height
Height of the texture in pixels. |
protected double |
m_integralh
Stepsize of the integration method. |
protected int |
m_kernelwidth
Normal width of the convolution kernel. |
protected int |
m_maxhits
After the m_maxhits'th time the streamline hits a pixel that was hit by other lines more than m_maxhits times, the convolution of this streamline stops. |
protected int |
m_minKernel
Kernelwidth for velocity near zero. |
protected PnNoise |
m_noise
Procedural noise. |
protected int[] |
m_pix
Texture pixel array. |
protected PnGeodesicRK |
m_rk
Runge-kutta class. |
protected double |
m_steplen
Step from one pixel to the next. |
protected PdVector[][] |
m_texCoords
Texture coordinates buffer. |
protected int |
m_width
Width of the texture in pixels. |
| Constructor Summary | |
PnLIC(PgElementSet geom,
int size,
double time,
PnGeodesicRK rk)
Creates a new LIC processor. |
|
| Method Summary | |
protected int |
getOutline(PdVector[] elemTex,
int width,
int height,
PiVector xc,
PiVector yc)
Calculates outline of triangle texture coordinates in texture pixels by line scanning. |
void |
getPixArray(int[] pix)
Puts actual LIC texture line by line into alphaRGB pixel array. |
void |
makeElement(int elemIndex)
Computes Line Integral Convolution texture along all integral lines that begin within given element. |
void |
makeLIC()
Computes LIC texture for all elements of geometry. |
boolean |
setCoarseness(double coarse)
Sets the coarseness of noise. |
boolean |
setConvolutionWidth(int numPixels)
Sets normal (one-velocity) convolution width along integral lines. |
boolean |
setMinConvolutionWidth(int numPixels)
|
void |
setStepSize(double h)
Sets the stepsize of the runge-kutta integration method. |
protected double |
triangleElemTexCoords(PgElementSet geom)
Calculates element texture coordinates for triangulation. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected PgElementSet m_geom
protected int m_maxhits
protected PnGeodesicRK m_rk
protected double m_integralh
protected int m_width
protected int m_height
protected int[] m_pix
protected PdVector[][] m_texCoords
protected double m_steplen
protected int m_kernelwidth
protected int m_minKernel
protected double m_coarseness
protected PnNoise m_noise
| Constructor Detail |
public PnLIC(PgElementSet geom,
int size,
double time,
PnGeodesicRK rk)
geom - underlying geometrysize - width and height of the LIC-texturetime - not yet implementedrk - geodesic runge-kutta method that contains the vector field
that shall be visualizedPnGeodesicRK| Method Detail |
public boolean setCoarseness(double coarse)
coarse - ==0. fine; ==1. constantpublic boolean setConvolutionWidth(int numPixels)
numPixels - new width given in texture pixelspublic boolean setMinConvolutionWidth(int numPixels)
public void setStepSize(double h)
h - stepsizepublic void makeElement(int elemIndex)
elemIndex - global element index in underlying geometrypublic void getPixArray(int[] pix)
pix - output: actual LIC texture; should be of size LICSIZE*LICSIZEpublic void makeLIC()
getPixArray returns the texture image.getPixArray(int[])protected double triangleElemTexCoords(PgElementSet geom)
geom - triangulation
protected int getOutline(PdVector[] elemTex,
int width,
int height,
PiVector xc,
PiVector yc)
elemTex - normalized texture coordinates of trianglewidth - width of the texture image (pixel)height - height of the texture image (pixel)xc - output: x-coordinates of outlineyc - output: y-coordinates of outline
|
JavaView® v2.00.008 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||