[2798] | 1 | /* -*- mode: c++; c-basic-offset: 4; indent-tabs-mode: nil -*- */ |
---|
[1478] | 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-2006 Purdue Research Foundation |
---|
| 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 | |
---|
| 18 | #ifndef _ZINCBLENDE_VOLUME_H_ |
---|
| 19 | #define _ZINCBLENDE_VOLUME_H_ |
---|
| 20 | |
---|
| 21 | |
---|
| 22 | #include "Volume.h" |
---|
| 23 | |
---|
| 24 | class ZincBlendeVolume : public Volume |
---|
| 25 | { |
---|
| 26 | public: |
---|
| 27 | Texture3D* zincblende_tex[2]; //the textures of two cubic volumes |
---|
| 28 | Vector3 cell_size; //the cell size in texture space |
---|
| 29 | |
---|
| 30 | |
---|
| 31 | ZincBlendeVolume(float x, float y, float z, |
---|
| 32 | int width, int height, int depth, float size, int n_component, |
---|
| 33 | float* dataVolumeA, float* dataVolumeB, |
---|
| 34 | double vmin, double vmax, double non_zeromin, const Vector3& cellSize); |
---|
| 35 | |
---|
| 36 | virtual ~ZincBlendeVolume(); |
---|
| 37 | }; |
---|
| 38 | |
---|
| 39 | #endif |
---|