1 | /* -*- mode: c++; c-basic-offset: 4; indent-tabs-mode: nil -*- */ |
---|
2 | /* |
---|
3 | * ---------------------------------------------------------------------- |
---|
4 | * ZincBlendeVolume.h: 3d zincblende volume class, a subclass of Volume. |
---|
5 | * It contains two cubic volumes. |
---|
6 | * |
---|
7 | * ====================================================================== |
---|
8 | * AUTHOR: Wei Qiao <qiaow@purdue.edu> |
---|
9 | * Purdue Rendering and Perceptualization Lab (PURPL) |
---|
10 | * |
---|
11 | * Copyright (c) 2004-2013 HUBzero Foundation, LLC |
---|
12 | * |
---|
13 | * See the file "license.terms" for information on usage and |
---|
14 | * redistribution of this file, and for a DISCLAIMER OF ALL WARRANTIES. |
---|
15 | * ====================================================================== |
---|
16 | */ |
---|
17 | #ifndef _ZINCBLENDE_VOLUME_H_ |
---|
18 | #define _ZINCBLENDE_VOLUME_H_ |
---|
19 | |
---|
20 | #include <vrmath/Vector3f.h> |
---|
21 | |
---|
22 | #include "Volume.h" |
---|
23 | |
---|
24 | class ZincBlendeVolume : public Volume |
---|
25 | { |
---|
26 | public: |
---|
27 | ZincBlendeVolume(float x, float y, float z, |
---|
28 | int width, int height, int depth, int numComponents, |
---|
29 | float *dataVolumeA, float *dataVolumeB, |
---|
30 | double vmin, double vmax, double non_zeromin, const vrmath::Vector3f& cellSize); |
---|
31 | |
---|
32 | virtual ~ZincBlendeVolume(); |
---|
33 | |
---|
34 | Texture3D *zincblendeTex[2]; //the textures of two cubic volumes |
---|
35 | vrmath::Vector3f cellSize; //the cell size in texture space |
---|
36 | }; |
---|
37 | |
---|
38 | #endif |
---|