source: trunk/packages/vizservers/nanovis/dxReaderCommon.h @ 1258

Last change on this file since 1258 was 956, checked in by dkearney, 16 years ago

updated the process of querying data from dx files but using native dx library calls instead of calculating grid positions and data points myself.
the Rappture::DX::interpolate() function does not quite work as intended, but if you do not change the axis lengths you can get the original data values back.
created a new function !computeSimpleGradient, located in dxReaderCommon.cpp, as part of the effort to simplify !dxReader.cpp.
removed old code from !dxReader2.cpp

File size: 381 bytes
Line 
1#ifndef _DX_READER_COMMON_H
2#define _DX_READER_COMMON_H
3
4float* merge(float* scalar, float* gradient, int size);
5void normalizeScalar(float* fdata, int count, float min, float max);
6float* computeGradient(float* fdata, int width, int height, int depth,
7        float min, float max);
8void computeSimpleGradient(float* data, int nx, int ny, int nz);
9
10#endif /*_DX_READER_COMMON_H*/
Note: See TracBrowser for help on using the repository browser.