lut Module


Used by

  • module~~lut~~UsedByGraph module~lut lut module~forimage forimage module~forimage->module~lut program~demo_color demo_color program~demo_color->module~forimage program~demo_ppm demo_ppm program~demo_ppm->module~forimage program~example26 example26 program~example26->module~forimage program~example27 example27 program~example27->module~forimage program~example28 example28 program~example28->module~forimage program~example29 example29 program~example29->module~forimage program~test test program~test->module~forimage program~test1 test1 program~test1->module~forimage program~test10 test10 program~test10->module~forimage program~test11 test11 program~test11->module~forimage program~test12 test12 program~test12->module~forimage program~test13 test13 program~test13->module~forimage program~test14 test14 program~test14->module~forimage program~test15 test15 program~test15->module~forimage program~test16 test16 program~test16->module~forimage program~test17 test17 program~test17->module~forimage program~test18 test18 program~test18->module~forimage program~test19 test19 program~test19->module~forimage program~test2 test2 program~test2->module~forimage program~test20 test20 program~test20->module~forimage program~test21 test21 program~test21->module~forimage program~test22 test22 program~test22->module~forimage program~test23 test23 program~test23->module~forimage program~test24 test24 program~test24->module~forimage program~test25 test25 program~test25->module~forimage program~test3 test3 program~test3->module~forimage program~test4 test4 program~test4->module~forimage program~test6 test6 program~test6->module~forimage program~test7 test7 program~test7->module~forimage program~test8 test8 program~test8->module~forimage program~test9 test9 program~test9->module~forimage

Derived Types

type, public ::  format_lut

Components

Type Visibility Attributes Name Initial
integer, public, dimension(:,:), allocatable :: colors
integer, public :: dim_colors
integer, public :: num_colors

Type-Bound Procedures

procedure, public :: allocate_colors
procedure, public :: export
procedure, public :: finalize => deallocate_lut
procedure, public :: get_colors
procedure, public :: get_dim_colors
procedure, public :: get_num_colors
procedure, public :: import
procedure, public :: set
procedure, public :: set_colors
procedure, public :: set_dim_colors
procedure, public :: set_num_colors

Functions

private pure function get_colors(this) result(colors)

Author
Seyed Ali Ghasemi
License
BSD 3-Clause

Arguments

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

Return Value integer, dimension(:,:), allocatable

private pure elemental function get_dim_colors(this) result(dim_colors)

Author
Seyed Ali Ghasemi
License
BSD 3-Clause

Arguments

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

Return Value integer

private pure elemental function get_num_colors(this) result(num_colors)

Author
Seyed Ali Ghasemi
License
BSD 3-Clause

Arguments

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

Return Value integer


Subroutines

private pure elemental subroutine allocate_colors(this)

Author
Seyed Ali Ghasemi
License
BSD 3-Clause

Arguments

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

private pure elemental subroutine deallocate_lut(this)

Author
Seyed Ali Ghasemi
License
BSD 3-Clause

Arguments

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

private impure subroutine export(this, file_name)

Author
Seyed Ali Ghasemi
License
BSD 3-Clause

Arguments

Type IntentOptional Attributes Name
class(format_lut), intent(inout) :: this
character(len=*), intent(in) :: file_name

private impure subroutine import(this, file_name, dim_colors)

Author
Seyed Ali Ghasemi
License
BSD 3-Clause

Arguments

Type IntentOptional Attributes Name
class(format_lut), intent(inout) :: this
character(len=*), intent(in) :: file_name
integer, intent(in) :: dim_colors

private pure subroutine set(this, num_colors, dim_colors, colors)

Author
Seyed Ali Ghasemi
License
BSD 3-Clause

Arguments

Type IntentOptional Attributes Name
class(format_lut), intent(inout) :: this
integer, intent(in) :: num_colors
integer, intent(in) :: dim_colors
integer, intent(in), dimension(:,:) :: colors

private pure subroutine set_colors(this, colors)

Author
Seyed Ali Ghasemi
License
BSD 3-Clause

Arguments

Type IntentOptional Attributes Name
class(format_lut), intent(inout) :: this
integer, intent(in), dimension(:,:) :: colors

private pure elemental subroutine set_dim_colors(this, dim_colors)

Author
Seyed Ali Ghasemi
License
BSD 3-Clause

Arguments

Type IntentOptional Attributes Name
class(format_lut), intent(inout) :: this
integer, intent(in) :: dim_colors

private pure elemental subroutine set_num_colors(this, num_colors)

Author
Seyed Ali Ghasemi
License
BSD 3-Clause

Arguments

Type IntentOptional Attributes Name
class(format_lut), intent(inout) :: this
integer, intent(in) :: num_colors