• Main Page
  • Packages
  • Classes
  • Files
  • File List

trunk/visLU/TransferControlPoint.cs

Go to the documentation of this file.
00001 using System;
00002 using System.Collections.Generic;
00003 using System.Linq;
00004 using System.Text;
00005 using Microsoft.Xna.Framework;
00006 
00007 namespace visLU2
00008 {
00012     public class TransferControlPoint
00013     {
00014         // control points for transfer function
00015 
00016         public int isoValue; //between 0 and 255
00017         public Vector4 color;
00018 
00026         public TransferControlPoint(int r, int g, int b, int _isoValue)
00027         {
00028             // for colorvalues
00029             color.X = r;
00030             color.Y = g;
00031             color.Z = b;
00032             color.W = 1.0f;
00033             isoValue = _isoValue;
00034         }
00035 
00041         public TransferControlPoint(float alpha, int _isoValue)
00042         {
00043             // for alphavalues
00044             color.X = 0.0f;
00045             color.Y = 0.0f;
00046             color.Z = 0.0f;
00047             color.W = alpha;
00048             isoValue = _isoValue;
00049         }
00050     }
00051 }

Generated on Wed Jan 19 2011 21:59:17 for flowvis-2 by  doxygen 1.7.2