FieldViz.h¶
-
class
FieldViz
¶ - #include <FieldViz.h>
Public Functions
-
FieldViz
()¶
-
FieldViz
(int n_xPix, int n_yPix)¶
-
FieldViz
(int n_xPix, int n_yPix, double xmin, double xmax, double ymin, double ymax)¶
-
~FieldViz
()¶
-
void
SetColormap
(char *_cmapFile)¶
-
void
SetNumPixels
(int _n_xPix, int _n_yPix)¶
-
void
Init
()¶
-
void
PreProcess
()¶
-
void
SetLICParams
(int _nIter, double _histEqExp)¶
-
void
SetCylDataFromCart
(double *_xx, double *_yy, double *zz, double *_vx, double *_vy, double *vz, int nAtoms)¶
-
void
PerformLIC
()¶
-
void
PostProcess
()¶
-
void
SetData
(double *_xx, double *_yy, double *_vx, double *_vy, int _nAtoms)¶
-
void
ResetField
()¶
-
void
SetNAtoms
(int _nAtoms)¶
-
void
SetBounds
(double _xmin, double _xmax, double _ymin, double _ymax)¶
-
double
MinVal
(double *array, int n)¶
-
double
MaxVal
(double *array, int n)¶
-
void
WriteField
(const char *xFile, const char *yFile, const char *format)¶
-
void
WriteField4Col
(char *outFile)¶
-
void
AddFieldFromData
(double eps)¶
-
void
DivideFieldByFrames
()¶
-
void
GenFieldFromData
(double eps)¶
-
void
HighPass
()¶
-
void
HistEqual
(double pwr)¶
-
double
SmoothStep
(double tt, double aa)¶
-
void
NormField
()¶
-
void
SyntheszSaddle
()¶ synthesize a saddle-shaped vector field ///
-
void
LoadColormap
(char *cmap_file)¶
-
void
NormalizVectrs
()¶ normalize the vector field ///
-
void
CalculateColor
(double *vecMags)¶
-
void
GenBoxFiltrLUT
(int LUTsiz)¶ generate box filter LUTs ///
-
void
MakeWhiteNoise
(unsigned char *pNoise)¶ make white noise as the LIC input texture ///
-
void
FlowImagingLIC
(unsigned char *pNoise, unsigned char *pImage, double krnlen)¶ flow imaging (visualization) through Line Integral Convolution ///
-
void
WriteImage2PPM
(const char *f_name)¶ write the LIC image to a PPM file ///
Private Members
-
int
n_xPix
¶
-
int
n_yPix
¶
-
double *
xx
¶
-
double *
yy
¶
-
double *
vx
¶
-
double *
vy
¶
-
double **
xField
¶
-
double **
yField
¶
-
double **
xFieldTmp
¶
-
double **
yFieldTmp
¶
-
int
nAtoms
¶
-
double
xMin
¶
-
double
xMax
¶
-
double
yMin
¶
-
double
yMax
¶
-
double
xRange
¶
-
double
yRange
¶
-
double
xPixRes
¶
-
double
yPixRes
¶
-
int
n_xBlocks
¶
-
int
n_yBlocks
¶
-
vector<int> **
indVecs
¶
-
double *
pVectr
¶
-
double *
p_LUT0
¶
-
double *
p_LUT1
¶
-
unsigned char *
pNoise
¶
-
unsigned char *
pImage
¶
-
double *
cmap
¶
-
double *
vecMags
¶
-
double *
vecAngles
¶
-
int *
colorIndices
¶
-
double
licLength
¶
-
int
nIter
¶
-
double
histEqExp
¶
-
char
cmapFile
[256]¶
-
int
nFrames
¶
-
int
DISCRETE_FILTER_SIZE
¶
-
double
LINE_SQUARE_CLIP_MAX
¶
-
double
VECTOR_COMPONENT_MIN
¶
-