| 
      
    | 
   
template<class V >  
  
  
      
        
          | void vtkfig::ScalarView::SetSurfaceRGBTable  | 
          ( | 
          const V &  | 
          tab,  | 
         
        
           | 
           | 
          int  | 
          lutsize  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
inline   | 
   
 
 
Set Surface RGB table from vector.  
- Template Parameters
 - 
  
    | V | Vector class counting from zero with member functions size() and operator[]. std::vector will work. |  
   
   
 
- Parameters
 - 
  
    | tab | Vector containg data. One RGB point is described by x, r, g, b between 0 and 1 RGB point i is contained in '(tab[4*i],tab[4*i+1],tab[4*i+2],tab[4*i+3])  |  
    | lutsize | Size of lookup table created.  |  
   
   
 
Definition at line 108 of file vtkfigScalarView.h. 
  111     rgbtab.resize(tab.size()/4);    112     for ( int i=0,j=0; i<tab.size(); i+=4,j++)    114       rgbtab[j].x=tab[i+0];    115       rgbtab[j].r=tab[i+1];    116       rgbtab[j].g=tab[i+2];    117       rgbtab[j].b=tab[i+3];  void SetSurfaceRGBTable(const V &tab, int lutsize) Set Surface RGB table from vector.   
std::vector< RGBPoint > RGBTable  
 
 
 
     |