00001 using System; 00002 using System.Collections.Generic; 00003 using System.Linq; 00004 using System.Text; 00005 using Microsoft.Xna.Framework; 00006 00007 namespace visLU 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(float r, float g, float 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 }