www.pudn.com > Ì廿֯Âë.rar > transfunc.h, change:2001-12-19,size:762b


#ifndef __transfunc_h__ 
#define __transfunc_h__ 
 
#include "stdafx.h" 
#include "volume.h" 
#include "color.h" 
 
class TransferFunction 
{ 
private: 
   rgba m_colors[MAXDENSITY+1]; 
   float m_opacity[MAXDENSITY+1]; 
   rgba m_blendedcolors[MAXDENSITY+1]; 
   rgba m_backgroundcolor; 
 
public: 
   TransferFunction();  
   ~TransferFunction();       
 
   void SetColor(int i, rgba color); 
   void SetOpacity(int i, float opacity); 
    
   void GetColor(int i, rgba &color); 
   void GetBlendedColor(int i, rgba &color); 
   void GetOpacity(int i, float &opacity); 
   void GetTransparency(int i, float &trans); 
 
   void SetBackgroundColor(rgba color); 
   void GetBackgroundColor(rgba &color); 
}; 
 
// ------------------------------------ 
 
#endif