VIS2 SS2013 CVD DVR
Main Page
Packages
Classes
Files
File List
All
Classes
Namespaces
Functions
Enumerations
Properties
TransferControlPoint.cs
1
using System;
2
using
System.Collections.Generic;
3
using
System.Linq;
4
using
System.Text;
5
using
Microsoft.Xna.Framework;
6
7
namespace
visLU
8
{
12
public
class
TransferControlPoint
13
{
14
// control points for transfer function
15
16
public
int
isoValue;
//between 0 and 255
17
public
Vector4 color;
18
26
public
TransferControlPoint
(
float
r,
float
g,
float
b,
int
_isoValue)
27
{
28
// for colorvalues
29
color.X = r;
30
color.Y = g;
31
color.Z = b;
32
color.W = 1.0f;
33
isoValue = _isoValue;
34
}
35
41
public
TransferControlPoint
(
float
alpha,
int
_isoValue)
42
{
43
// for alphavalues
44
color.X = 0.0f;
45
color.Y = 0.0f;
46
color.Z = 0.0f;
47
color.W = alpha;
48
isoValue = _isoValue;
49
}
50
}
51
}
Generated on Wed Jun 12 2013 23:20:54 for VIS2 SS2013 CVD DVR by
1.8.4