RayTraceVisual
R2026bDescription
Add-On Required: This feature requires the 3D Scenarios add-on.
A RayTraceVisual object controls the appearance of a RayTraceAnalysis
object in a scenario viewer.
Creation
When you add a ray trace analysis to a scenario with open viewers, the scenario
automatically creates an RayTraceVisual object and stores the object in the
Visual property of the corresponding RayTraceAnalysis
object.
You can access an RayTraceVisual object by using the getvisual function
or by querying the Visual property of the
RayTraceAnalysis object.
Properties
Metric for the ray path colors, specified as one of these values:
"num-interactions"— Apply color to the ray paths based on the number of interactions. By default, theRayTraceVisualobject sets the color limits to the minimum and maximum number of interactions, and the number of interactions map directly to colors in the colormap."distance"— Apply color to the ray paths based on the propagation distance.
Colormap for the ray paths, specified as an m-by-3 array of RGB triplets that define m individual colors or as a colormap name from this table.
| Colormap Name | Color Scale |
|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Color limits for the ray paths, specified as a two-element vector of the form
[cmin cmax]. This property determines how data values map to the
colors in the colormap, where:
cminspecifies the data value that maps to the first color in the colormap.cmaxspecifies the data value that maps to the last color in the colormap.
The RayTraceVisual object interpolates data values between
cmin and cmax across the colormap. Values
outside this range use either the first or last color, whichever is closest.
Calculation mode for the color limits, specified as one of these values:
"auto"— TheRayTraceVisualobject automatically selects the limits based on the value of theColorMetricproperty. The object recalculates the color limits each time the simulation advances."manual"— Manually specify the color limit values. To specify the values, set theColorLimitsproperty. The color limit values do not change as the simulation advances.
Line width, in pixels, specified as a positive scalar. This value specifies the width of the lines that make up the ray paths.
Radius of the endpoint markers, in pixels, specified as a positive scalar.
Ray path transparency, specified as a scalar in the range [0, 1]. A value of
1 is opaque and a value of 0 is completely
transparent.
Option to show the color legend, specified as "on" or
"off", or as numeric or logical 1
(true) or 0 (false). A value
of "on" is equivalent to true, and
"off" is equivalent to false. Thus, you can use
the value of this property as a logical value. The value is stored as an on/off logical
value of type matlab.lang.OnOffSwitchState.
"on"— Show the color legend."off"— Do not show the color legend.
The viewer can display a maximum of one legend at a time.
Option to show the ray path lines, specified as "on" or
"off", or as numeric or logical 1
(true) or 0 (false). A value
of "on" is equivalent to true, and
"off" is equivalent to false. Thus, you can use
the value of this property as a logical value. The value is stored as an on/off logical
value of type matlab.lang.OnOffSwitchState.
"on"— Show the ray path lines."off"— Do not show the ray path lines.
Option to show the endpoint markers, specified as "on" or
"off", or as numeric or logical 1
(true) or 0 (false). A value
of "on" is equivalent to true, and
"off" is equivalent to false. Thus, you can use
the value of this property as a logical value. The value is stored as an on/off logical
value of type matlab.lang.OnOffSwitchState.
"off"— Do not show the endpoint markers."on"— Show the endpoint markers.
The color of the source endpoint is white with a black outline. The color of each destination endpoint corresponds to the highest value for the specified color metric among the ray paths.
Option to show circular point markers at the interaction locations, specified as
"on" or "off", or as numeric or logical
1 (true) or 0
(false). A value of "on" is equivalent to
true, and "off" is equivalent to
false. Thus, you can use the value of this property as a logical
value. The value is stored as an on/off logical value of type matlab.lang.OnOffSwitchState.
"off"— Do not show markers at the interaction points."on"— Show markers at the interaction points.
The color of each interaction point matches the color of the corresponding ray path.
State of visibility, specified as "on" or
"off", or as numeric or logical 1
(true) or 0 (false). A value
of "on" is equivalent to true, and
"off" is equivalent to false. Thus, you can use
the value of this property as a logical value. The value is stored as an on/off logical
value of type matlab.lang.OnOffSwitchState.
"on"— Show the visual object in the viewer."off"— Do not show the visual object in the viewer.
Version History
Introduced in R2026b
See Also
Functions
Objects
MATLAB Command
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
选择网站
选择网站以获取翻译的可用内容,以及查看当地活动和优惠。根据您的位置,我们建议您选择:。
您也可以从以下列表中选择网站:
如何获得最佳网站性能
选择中国网站(中文或英文)以获得最佳网站性能。其他 MathWorks 国家/地区网站并未针对您所在位置的访问进行优化。
美洲
- América Latina (Español)
- Canada (English)
- United States (English)
欧洲
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)