颜色传输函数与不透明度传输函数的使用类似,二者的不同之处在于颜色传输函数是将一个标量值映射为一个颜色值。这个颜色值既可以是 RGB 值,也可以是 HSV 值。
class vtkColorTransferFunction
AddHSVPoint(...)
| V.AddHSVPoint(float, float, float, float) -> int
| C++: int AddHSVPoint(double x, double h, double s, double v) #x表示灰度值
| V.AddHSVPoint(float, float, float, float, float, float) -> int
| C++: int AddHSVPoint(double x, double h, double s, double v,
| double midpoint, double sharpness)
|
|
| AddHSVSegment(...)
| V.AddHSVSegment(float, float, float, float, float, float, float,
| float)
| C++: void AddHSVSegment(double x1, double h1, double s1,
| double v1, double x2, double h2, double s2, double v2)
|
| Add two points to the function and remove all the points between
| them
|
| AddRGBPoint(...)
| V.AddRGBPoint(float, float, float, float) -> int
| C++: int AddRGBPoint(double x, double r, double g, double b)
| V.AddRGBPoint(float, float, float, float, float, float) -> int
| C++: int AddRGBPoint(double x, double r, double g, double b,
| double midpoint, double sharpness)
|
| AddRGBSegment(...)
| V.AddRGBSegment(float, float, float, float, float, float, float,
| float)
| C++: void AddRGBSegment(double x1, double r1, double g1,
| double b1, double x2, double r2, double g2, double b2)
|
| Add two points to the function and remove all the points between
| them
| SetColor(...)
| V.SetColor(int, vtkPiecewiseFunction)
| C++: void SetColor(int index, vtkPiecewiseFunction *function)
| V.SetColor(vtkPiecewiseFunction)
| C++: void SetColor(vtkPiecewiseFunction *function)
| V.SetColor(int, vtkColorTransferFunction)
| C++: void SetColor(int index, vtkColorTransferFunction *function)
| V.SetColor(vtkColorTransferFunction)
| C++: void SetColor(vtkColorTransferFunction *function)
|
| Set the color of a volume to a gray level transfer function for
| the component indicated by index. This will set the color
| channels for this component to 1.