Changeset 3935 for trunk/packages/vizservers/nanovis/ZincBlendeVolume.cpp
- Timestamp:
- Sep 18, 2013, 2:51:50 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/packages/vizservers/nanovis/ZincBlendeVolume.cpp
r3630 r3935 24 24 using namespace vrmath; 25 25 26 ZincBlendeVolume::ZincBlendeVolume(int w, int h, int d, int n, 26 ZincBlendeVolume::ZincBlendeVolume(int width, int height, int depth, 27 int numComponents, 27 28 float *dataVolumeA, float *dataVolumeB, 28 double v 0, double v1, double non_zeromin,29 double vmin, double vmax, double nonZeroMin, 29 30 const Vector3f& cellSz) : 30 Volume(w , h, d, n, dataVolumeA, v0, v1, non_zeromin),31 Volume(width, height, depth, numComponents, dataVolumeA, vmin, vmax, nonZeroMin), 31 32 cellSize(cellSz) 32 33 { … … 34 35 _volumeType = ZINCBLENDE; 35 36 36 //store member tex initialize in Volume() as zincblende _tex[0]37 //store member tex initialize in Volume() as zincblendeTex[0] 37 38 assert(_tex); 38 39 zincblendeTex[0] = _tex; 39 40 40 41 //now add another tex as zincblende_tex[1] 41 Texture3D *secondTex = new Texture3D(w , h, d, GL_FLOAT, GL_LINEAR, n);42 Texture3D *secondTex = new Texture3D(width, height, depth, GL_FLOAT, GL_LINEAR, numComponents); 42 43 assert(secondTex); 43 44 secondTex->initialize(dataVolumeB);
Note: See TracChangeset
for help on using the changeset viewer.