source: trunk/packages/vizservers/nanovis/ZincBlendeVolume.h @ 2892

Last change on this file since 2892 was 2877, checked in by ldelgass, 12 years ago

Some minor refactoring, also add some more fine grained config.h defines
(e.g. replace NV40 define with feature defines). Add tests for some required
OpenGL extensions (should always check for extensions or base version before
calling entry points from the extension). Also, clamp diffuse and specular
values on input and warn when they are out of range.

  • Property svn:eol-style set to native
File size: 1.3 KB
Line 
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-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#ifndef _ZINCBLENDE_VOLUME_H_
18#define _ZINCBLENDE_VOLUME_H_
19
20#include "Volume.h"
21
22class ZincBlendeVolume : public Volume
23{
24public:
25    ZincBlendeVolume(float x, float y, float z,
26                     int width, int height, int depth, float size, int n_component,
27                     float *dataVolumeA, float *dataVolumeB,
28                     double vmin, double vmax, double non_zeromin, const Vector3& cellSize);
29
30    virtual ~ZincBlendeVolume();
31
32    Texture3D *zincblendeTex[2]; //the textures of two cubic volumes
33    Vector3 cellSize;   //the cell size in texture space
34};
35
36#endif
Note: See TracBrowser for help on using the repository browser.