www.pudn.com > Ì廿֯Âë.rar > tfvolume.h, change:2001-12-09,size:704b
#ifndef __tfcolors_h__
#define __tfcolors_h__
#include "volume.h"
#include "transfunc.h"
#include "color.h"
class TransferFunctionVolume
{
private:
int m_x;
int m_y;
int m_z;
int m_xy;
Volume *m_vol;
TransferFunction *m_tf;
rgba *m_colors;
float *m_opacity;
bool m_update;
public:
TransferFunctionVolume(Volume *vol, TransferFunction *tf);
~TransferFunctionVolume();
void UpdateOnUse();
void Update();
bool GetColor(coord3 &pos, rgba &color);
bool GetColorTL(coord3 &pos, rgba &color);
bool GetTransparency(coord3 &pos, float &transparency);
bool GetTransparencyTL(coord3 &pos, float &transparency);
};
#endif