Main Content

Graphic

Marker with graphic properties

  • Library:
  • Simscape / Multibody / Body Elements

  • Graphic block

Description

The Graphic block adds a simple marker to the attached frame. The marker has a simple geometry, color, and no inertia. You can use this block to highlight a frame of interest in the Mechanics Explorer visualization pane. The graphic marker has no impact on model dynamics.

Graphic Marker Geometries

Ports

Frame

expand all

Local reference frame of the graphic marker. Connect to a frame line or frame port to define the relative position and orientation of the marker.

Parameters

expand all

Shape of the marker to show in the visualization of the model, specified as Sphere, Cube, or Frame. The motion of the marker reflects the motion of the frame to which the block is connected.

Width of the marker in pixels, specified as a scalar. This width does not scale with zoom level. Note that the apparent size of the marker depends partly on screen resolution, with higher resolutions packing more pixels per unit length, and therefore producing smaller icons.

Visual Properties

Parameterizations for specifying visual properties. Select Simple to specify Diffuse Color and Opacity. Select Advanced to specify more visual properties, such as Specular Color, Ambient Color, Emissive Color, and Shininess.

Color of the light due to diffuse reflection, specified as an [R,G,B] or [R,G,B,A] vector with values in the range of 0 to 1. The vector can be a row or column vector. The optional fourth element specifies the color opacity. Omitting the opacity element is equivalent to specifying a value of 1.

Graphic opacity, specified as a scalar in the range of 0 to 1. A scalar of 0 corresponds to completely transparent, and a scalar of 1 corresponds to completely opaque.

Dependencies

To enable this parameter, set Visual Properties to Simple.

Color of the light due to specular reflection, specified as an [R,G,B] or [R,G,B,A] vector with values in the range of 0 to 1. The vector can be a row or column vector. The optional fourth element specifies the color opacity. Omitting the opacity element is equivalent to specifying a value of 1.

Dependencies

To enable this parameter, set Visual Properties to Advanced.

Color of the ambient light, specified as an [R,G,B] or [R,G,B,A] vector with values in the range of 0 to 1. The vector can be a row or column vector. The optional fourth element specifies the color opacity. Omitting the opacity element is equivalent to specifying a value of 1.

Ambient light refers to a general level of illumination that does not come directly from a light source. The Ambient light consists of light that has been reflected and re-reflected so many times that it is no longer coming from any particular direction.

Dependencies

To enable this parameter, set Visual Properties to Advanced.

Color due to self illumination, specified as an [R,G,B] or [R,G,B,A] vector in the range of 0 to 1. The vector can be a row or column vector. The optional fourth element specifies the color opacity. Omitting the opacity element is equivalent to specifying a value of 1.

The emission color is color that does not come from any external source, and therefore seems to be emitted by the marker itself. When a marker has a emissive color, the marker can be seen even if there is no external light source.

Dependencies

To enable this parameter, set Visual Properties to Advanced.

Shininess of the marker, specified as a scalar in the range of 0 to 128. This parameter affects the sharpness of the specular reflections of the marker. A marker with high shininess has a mirror-like appearance, and marker with low shininess has a more low-gloss or satin appearance.

Dependencies

To enable this parameter, set Visual Properties to Advanced.

Extended Capabilities

C/C++ Code Generation
Generate C and C++ code using Simulink® Coder™.

Version History

Introduced in R2012a