![]() ![]() int = obj.GetIndependentComponentsMinValue () - Does the data have independent components, or do some define color only? If IndependentComponents is On (the default) then each component will be independently passed through a lookup table to determine RGBA, shaded.Normals will be generated from the fourth component. The fourth component will be passed through the first scalar opacity transfer function for opacity. For 4 component data, the first three will directly represent RGB (no lookup table). Normals will be generated off of the second component. For 2 component data, the first is passed through the first color transfer function and the second component is passed through the first opacity transfer function. If IndependentComponents is Off, then you must have either 2 or 4 component data. ![]() Some volume Mappers can handle 1 to 4 component unsigned char or unsigned short data (see each mapper header file to determine functionality). obj.SetIndependentComponents (int ) - Does the data have independent components, or do some define color only? If IndependentComponents is On (the default) then each component will be independently passed through a lookup table to determine RGBA, shaded.long = obj.GetMTime () - Get the modified time for this object (or the properties registered with this object).vtkVolumeProperty = obj.SafeDownCast (vtkObject o).In the methods listed below, obj is an instance of the vtkVolumeProperty class. Note that the documentation is translated automatically from the VTK sources, and may not be completely intelligible. The class vtkVolumeProperty has several methods that can be used. To create an instance of class vtkVolumeProperty, simply invoke its constructor as follows obj = vtkVolumeProperty Omitting the index parameter on the Set/Get methods will access index = 0. If you are using 2 component data as LV or 4 component data as RGBV (as specified in the mapper) only the first scalar opacity and gradient opacity transfer functions will be used (and all color functions will be ignored). Most properties can be set per "component" for volume mappers that support multiple independent components. ![]() When a scalar and gradient opacity are both set simultaneously, then the opacity is defined to be the product of the scalar opacity and gradient opacity transfer functions. When the scalar opacity or the gradient opacity of a volume is not set, then the function is defined to be a constant value of 1.0. This includes properties for determining the type of interpolation to use when sampling a volume, the color of a volume, the scalar opacity of a volume, the gradient opacity of a volume, and the shading parameters of a volume. VtkVolumeProperty is used to represent common properties associated with volume rendering. Section: Visualization Toolkit Rendering Classes ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |