source: nanovis/branches/1.1/ReaderCommon.h @ 4923

Last change on this file since 4923 was 4904, checked in by ldelgass, 5 years ago

Merge serveral changes from trunk. Does not include threading, world space
changes, etc.

  • Property svn:eol-style set to native
File size: 780 bytes
Line 
1/* -*- mode: c++; c-basic-offset: 4; indent-tabs-mode: nil -*- */
2/*
3 * Copyright (C) 2004-2013  HUBzero Foundation, LLC
4 *
5 */
6#ifndef NV_READER_COMMON_H
7#define NV_READER_COMMON_H
8
9namespace nv {
10
11extern float *
12merge(float *scalar, float *gradient, int size);
13
14extern void
15normalizeScalar(float *data, int count, int stride, double min, double max);
16
17extern void
18normalizeVector(float *data, int count, double min, double max);
19
20extern float *
21computeGradient(float *data,
22                int nx, int ny, int nz,
23                float dx, float dy, float dz,
24                float min, float max);
25
26extern void
27computeSimpleGradient(float *data,
28                      int nx, int ny, int nz,
29                      float dx = 1.0f, float dy = 1.0f, float dz = 1.0f);
30
31}
32
33#endif
Note: See TracBrowser for help on using the repository browser.