new_curve_artist Function

private function new_curve_artist(traj, color, width) result(a)

A curve artist for traj (optional), drawn in color color ([r, g, b] or [r, g, b, a]; default white) and width (window units; default 1).

Arguments

Type IntentOptional Attributes Name
type(Trajectory), intent(in), optional, target :: traj

the trajectory to draw (not owned)

real(kind=wp), intent(in), optional :: color(:)

[r, g, b] or [r, g, b, a] (0 to 1); width (window units, default 1)

real(kind=wp), intent(in), optional :: width

[r, g, b] or [r, g, b, a] (0 to 1); width (window units, default 1)

Return Value type(CurveArtist)


Calls

proc~~new_curve_artist~~CallsGraph proc~new_curve_artist new_curve_artist proc~curve_set_color CurveArtist%curve_set_color proc~new_curve_artist->proc~curve_set_color proc~curve_set_trajectory CurveArtist%curve_set_trajectory proc~new_curve_artist->proc~curve_set_trajectory proc~position_sources position_sources proc~new_curve_artist->proc~position_sources is_colored is_colored proc~curve_set_color->is_colored proc~curve_style CurveArtist%curve_style proc~curve_set_color->proc~curve_style proc~set_rgba set_rgba proc~curve_set_color->proc~set_rgba proc~curve_set_trajectory->proc~position_sources proc~dof Trajectory%dof proc~curve_set_trajectory->proc~dof proc~curve_style->is_colored proc~apply_highlight apply_highlight proc~curve_style->proc~apply_highlight set_pattern set_pattern proc~curve_style->set_pattern set_style set_style proc~curve_style->set_style style_node style_node proc~curve_style->style_node proc~set_highlight LineChain%set_highlight proc~apply_highlight->proc~set_highlight proc~apply_style apply_style proc~set_highlight->proc~apply_style interface~vkf_line_set_dash_mode vkf_line_set_dash_mode proc~apply_style->interface~vkf_line_set_dash_mode interface~vkf_line_set_highlight vkf_line_set_highlight proc~apply_style->interface~vkf_line_set_highlight interface~vkf_line_set_trail vkf_line_set_trail proc~apply_style->interface~vkf_line_set_trail proc~check_status check_status proc~apply_style->proc~check_status proc~line_set_pattern line_set_pattern proc~apply_style->proc~line_set_pattern proc~line_set_style line_set_style proc~apply_style->proc~line_set_style proc~marker_set_style marker_set_style proc~apply_style->proc~marker_set_style interface~vkf_line_style vkf_line_style proc~line_set_pattern->interface~vkf_line_style interface~vkf_line_style_changed vkf_line_style_changed proc~line_set_pattern->interface~vkf_line_style_changed proc~line_set_style->interface~vkf_line_style proc~line_set_style->interface~vkf_line_style_changed proc~marker_set_style->interface~vkf_line_style proc~marker_set_style->interface~vkf_line_style_changed

Called by

proc~~new_curve_artist~~CalledByGraph proc~new_curve_artist new_curve_artist interface~curveartist CurveArtist interface~curveartist->proc~new_curve_artist

Source Code

    function new_curve_artist(traj, color, width) result(a)
        type(Trajectory), intent(in), target, optional :: traj !! the trajectory to draw (not owned)
        real(wp), intent(in), optional :: color(:), width   !! [r, g, b] or [r, g, b, a] (0 to 1); width (window units, default 1)
        type(CurveArtist) :: a
        a%sources_ = position_sources(3)
        if (present(traj)) call a%set_trajectory(traj)
        if (present(color)) call a%set_color(color)
        if (present(width)) a%width_ = width
    end function new_curve_artist