Arrow
Visualizing an arrow with variable size; all data have to be set as modifiers (see info layer)
Library
PlanarMechanics/Visualizers/Advanced
Description
Model Arrow defines an arrow that is dynamicallyvisualized at the defined location (see variables below).

The dialog variables R
, r
, r_tail
,r_head
, diameter
, color
and specularCoefficient
are declared as (time varying) input variables.If the default equation is not appropriate, a correspondingmodifier equation has to be provided in themodel where an Arrow instance is used, e.g., in the form
Visualizers.Advanced.Arrow arrow(diameter = sin(time));
Variable color is a RGB color space given in the range0 .. 255.Predefined colors fromTypes.Defaultsare used throughout the library to get a coherent visualization.
Parameters
Name | Label | Description | Data Type | Valid Values |
---|---|---|---|---|
mo_R | R | Orientation object to rotate the planarWorld frame into the arrow frame | FromModelica('Modelica.Mechanics.MultiBody.Frames.Orientation') | |
mo_r | r | Position vector from origin of planarWorld frame to origin of arrow frame, resolved in planarWorld frame | Vector of size 3 | |
mo_r_tail | r_tail | Position vector from origin of arrow frame to arrow tail, resolved in arrow frame | Vector of size 3 | |
mo_r_head | r_head | Position vector from arrow tail to the head of the arrow, resolved in arrow frame | Vector of size 3 | |
mo_diameter | diameter | Diameter of arrow line | Scalar | |
mo_color | color | Color of arrow | Vector of size 3 | |
mo_specularCoefficient | specularCoefficient | Material property describing the reflecting of ambient light (= 0 means, that light is completely absorbed) | Scalar |
Name | Label | Description | Data Type | Valid Values |
---|---|---|---|---|
mo__nmodifiers | Number of Modifiers | Specifies the number of modifiers | Number | |
mo__modifiers | Modifiers | Add new modifier | Structure | |
mo__modifiers/varname | Variable name | Cell of strings | ||
mo__modifiers/attribute | Attribute | Cell of strings | 'start' | |
mo__modifiers/value | Value |