Changeset 3611 for trunk/packages/vizservers/nanovis/ReaderCommon.cpp
- Timestamp:
- Apr 2, 2013, 8:02:50 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/packages/vizservers/nanovis/ReaderCommon.cpp
r3580 r3611 4 4 * 5 5 */ 6 7 #include <cstdlib> 8 9 #include <vrmath/Vector3f.h> 10 6 11 #include "ReaderCommon.h" 7 12 #include "GradientFilter.h" 8 13 9 #include <vrmath/Vector3f.h> 10 11 #include "stdlib.h" 12 14 using namespace nv; 13 15 using namespace vrmath; 14 16 15 17 float * 16 merge(float *scalar, float *gradient, int size)18 nv::merge(float *scalar, float *gradient, int size) 17 19 { 18 20 float *data = (float *)malloc(sizeof(float) * 4 * size); … … 43 45 */ 44 46 void 45 n ormalizeScalar(float *data, int count, int stride, double vmin, double vmax)47 nv::normalizeScalar(float *data, int count, int stride, double vmin, double vmax) 46 48 { 47 49 double dv = vmax - vmin; … … 82 84 */ 83 85 float * 84 computeGradient(float *data,85 int nx, int ny, int nz,86 float dx, float dy, float dz,87 float min, float max)86 nv::computeGradient(float *data, 87 int nx, int ny, int nz, 88 float dx, float dy, float dz, 89 float min, float max) 88 90 { 89 91 int npts = nx * ny * nz; … … 123 125 */ 124 126 void 125 computeSimpleGradient(float *data,126 int nx, int ny, int nz,127 float dx, float dy, float dz)127 nv::computeSimpleGradient(float *data, 128 int nx, int ny, int nz, 129 float dx, float dy, float dz) 128 130 { 129 131 bool clampToEdge = true;
Note: See TracChangeset
for help on using the changeset viewer.