Colormaps_info Derived Type

type, public :: Colormaps_info


Inherits

type~~colormaps_info~~InheritsGraph type~colormaps_info Colormaps_info type~table table type~colormaps_info->type~table colormaps

Components

Type Visibility Attributes Name Initial
type(table), private :: colormaps(232)

Type-Bound Procedures

procedure, public :: finalize => deallocate_Colormaps_info

procedure, public :: get_levels

  • private pure function get_levels(this, index) result(levels)

    Arguments

    Type IntentOptional Attributes Name
    class(Colormaps_info), intent(in) :: this
    integer, intent(in) :: index

    Return Value integer

procedure, public :: get_name

  • private pure elemental function get_name(this, index) result(name)

    Arguments

    Type IntentOptional Attributes Name
    class(Colormaps_info), intent(in) :: this
    integer, intent(in) :: index

    Return Value character(len=colormap_name_length)

procedure, public :: get_ncolormaps

  • private pure elemental function get_ncolormaps(this) result(ncolormaps)

    Arguments

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

    Return Value integer

procedure, public :: set_all

  • private pure elemental subroutine set_all(this)

    Arguments

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

procedure, public :: write

  • private impure subroutine write(this, verbose, name, family, gradient, palette, author, license, levels, file_name)

    Arguments

    Type IntentOptional Attributes Name
    class(Colormaps_info), intent(inout) :: this
    integer, intent(in), optional :: verbose
    character(len=*), intent(in), optional :: name
    character(len=*), intent(in), optional :: family
    character(len=*), intent(in), optional :: gradient
    character(len=*), intent(in), optional :: palette
    character(len=*), intent(in), optional :: author
    character(len=*), intent(in), optional :: license
    integer, intent(in), optional :: levels
    character(len=*), intent(in), optional :: file_name

Source Code

   type :: Colormaps_info
      type(table), private :: colormaps(232) ! Array of 'table' type to store multiple colormaps
   contains
      procedure :: set_all ! Procedure to set information for all colormaps in the array
      procedure :: write   ! Procedure to filter and write information about the colormaps
      procedure :: finalize => deallocate_Colormaps_info ! Procedure to finalize the derived type
      procedure :: get_ncolormaps ! Procedure to get the number of colormaps
      procedure :: get_name       ! Procedure to get the name of a colormap
      procedure :: get_levels     ! Procedure to get the number of levels in a colormap
   end type Colormaps_info