plot_data_tri_2d Derived Type

type, public, extends(plot_data_colored) :: plot_data_tri_2d

Defines a 2D triangulated data set.


Contents


Type-Bound Procedures

procedure, public :: define_data => pdt2d_define_data

  • private module subroutine pdt2d_define_data(this, tri)

    Defines the data to plot.

    Arguments

    Type IntentOptional Attributes Name
    class(plot_data_tri_2d), intent(inout) :: this

    The plot_data_tri_2d object.

    class(delaunay_tri_2d), intent(in) :: tri

    The triangulation data to plot.

procedure, public :: get_color_index => pdc_get_color_index

  • private pure function pdc_get_color_index(this) result(x)

    Gets the color index.

    Arguments

    Type IntentOptional Attributes Name
    class(plot_data_colored), intent(in) :: this

    The plot_data_colored object.

    Return Value integer(kind=int32)

    The index value.

procedure, public :: get_command_string => pdt2d_get_cmd

  • private module function pdt2d_get_cmd(this) result(x)

    Gets the GNUPLOT command string for the object.

    Arguments

    Type IntentOptional Attributes Name
    class(plot_data_tri_2d), intent(in) :: this

    The plot_data_tri_2d object.

    Return Value character(len=:), allocatable

    The command string.

procedure, public :: get_data_string => pdt2d_get_data_cmd

  • private module function pdt2d_get_data_cmd(this) result(x)

    Gets the GNUPLOT command string describing the data to plot.

    Arguments

    Type IntentOptional Attributes Name
    class(plot_data_tri_2d), intent(in) :: this

    The plot_data_tri_2d object.

    Return Value character(len=:), allocatable

    The command string.

procedure, public :: get_line_color => pdc_get_line_color

  • private pure function pdc_get_line_color(this) result(x)

    Gets the object color.

    Arguments

    Type IntentOptional Attributes Name
    class(plot_data_colored), intent(in) :: this

    The plot_data_colored object.

    Return Value type(color)

    The color.

procedure, public :: get_line_style => pdt2d_get_line_style

  • private pure module function pdt2d_get_line_style(this) result(rst)

    Gets the line style.

    Arguments

    Type IntentOptional Attributes Name
    class(plot_data_tri_2d), intent(in) :: this

    The plot_data_tri_2d object.

    Return Value integer(kind=int32)

    The line style. The line style must be one of the following constants.

    • LINE_DASHED

    • LINE_DASH_DOTTED

    • LINE_DASH_DOT_DOT

    • LINE_DOTTED

    • LINE_SOLID

procedure, public :: get_line_width => pdt2d_get_line_width

  • private pure module function pdt2d_get_line_width(this) result(rst)

    Gets the width of the lines used to draw the triangulation.

    Arguments

    Type IntentOptional Attributes Name
    class(plot_data_tri_2d), intent(in) :: this

    The plot_data_tri_2d object.

    Return Value real(kind=real32)

    The line width.

procedure, public :: get_name => pd_get_name

  • private pure function pd_get_name(this) result(txt)

    Gets the name to associate with this data set.

    Arguments

    Type IntentOptional Attributes Name
    class(plot_data), intent(in) :: this

    The plot_data object.

    Return Value character(len=:), allocatable

    The name.

procedure, public :: set_color_index => pdc_set_color_index

  • private subroutine pdc_set_color_index(this, x)

    Sets the color index.

    Arguments

    Type IntentOptional Attributes Name
    class(plot_data_colored), intent(inout) :: this

    The plot_data_colored object.

    integer(kind=int32), intent(in) :: x

    The index value.

procedure, public :: set_line_color => pdc_set_line_color

  • private subroutine pdc_set_line_color(this, x)

    Sets the object color.

    Arguments

    Type IntentOptional Attributes Name
    class(plot_data_colored), intent(inout) :: this

    The plot_data_colored object.

    type(color), intent(in) :: x

    The color.

procedure, public :: set_line_style => pdt2d_set_line_style

  • private module subroutine pdt2d_set_line_style(this, x)

    Sets the line style.

    Arguments

    Type IntentOptional Attributes Name
    class(plot_data_tri_2d), intent(inout) :: this

    The plot_data_tri_2d object.

    integer(kind=int32), intent(in) :: x

    The line style. The line style must be one of the following constants.

    • LINE_DASHED

    • LINE_DASH_DOTTED

    • LINE_DASH_DOT_DOT

    • LINE_DOTTED

    • LINE_SOLID

procedure, public :: set_line_width => pdt2d_set_line_width

  • private module subroutine pdt2d_set_line_width(this, x)

    Sets the width of the lines used to draw the triangulation.

    Arguments

    Type IntentOptional Attributes Name
    class(plot_data_tri_2d), intent(inout) :: this

    The plot_data_tri_2d object.

    real(kind=real32), intent(in) :: x

    The line width.

procedure, public :: set_name => pd_set_name

  • private subroutine pd_set_name(this, txt)

    Sets the name to associate with this data set.

    Arguments

    Type IntentOptional Attributes Name
    class(plot_data), intent(inout) :: this

    The plot_data object.

    character(len=*), intent(in) :: txt

    The name.