fortplot_figure_core_accessors Module

Property accessor methods extracted from fortplot_figure_core

This module contains property accessor methods for the core figure to maintain architectural compliance with size limits.



Functions

public function core_get_width(state) result(width)

Arguments

Type IntentOptional Attributes Name
type(figure_state_t), intent(in) :: state

Return Value integer

public function core_get_height(state) result(height)

Arguments

Type IntentOptional Attributes Name
type(figure_state_t), intent(in) :: state

Return Value integer

public function core_get_rendered(state) result(rendered)

Arguments

Type IntentOptional Attributes Name
type(figure_state_t), intent(in) :: state

Return Value logical

public function core_get_plot_count(state) result(plot_count)

Arguments

Type IntentOptional Attributes Name
type(figure_state_t), intent(in) :: state

Return Value integer

public function core_get_plots(plots) result(plots_ptr)

Arguments

Type IntentOptional Attributes Name
type(plot_data_t), intent(in), target :: plots(:)

Return Value type(plot_data_t), pointer, (:)

public function core_get_x_min(state) result(x_min)

Arguments

Type IntentOptional Attributes Name
type(figure_state_t), intent(in) :: state

Return Value real(kind=wp)

public function core_get_x_max(state) result(x_max)

Arguments

Type IntentOptional Attributes Name
type(figure_state_t), intent(in) :: state

Return Value real(kind=wp)

public function core_get_y_min(state) result(y_min)

Arguments

Type IntentOptional Attributes Name
type(figure_state_t), intent(in) :: state

Return Value real(kind=wp)

public function core_get_y_max(state) result(y_max)

Arguments

Type IntentOptional Attributes Name
type(figure_state_t), intent(in) :: state

Return Value real(kind=wp)

public function core_backend_associated(state) result(is_associated)

Arguments

Type IntentOptional Attributes Name
type(figure_state_t), intent(in) :: state

Return Value logical


Subroutines

public subroutine core_set_rendered(state, rendered)

Arguments

Type IntentOptional Attributes Name
type(figure_state_t), intent(inout) :: state
logical, intent(in) :: rendered

public subroutine core_backend_color(state, r, g, b)

Arguments

Type IntentOptional Attributes Name
type(figure_state_t), intent(inout) :: state
real(kind=wp), intent(in) :: r
real(kind=wp), intent(in) :: g
real(kind=wp), intent(in) :: b

public subroutine core_backend_line(state, x1, y1, x2, y2)

Arguments

Type IntentOptional Attributes Name
type(figure_state_t), intent(inout) :: state
real(kind=wp), intent(in) :: x1
real(kind=wp), intent(in) :: y1
real(kind=wp), intent(in) :: x2
real(kind=wp), intent(in) :: y2

public subroutine core_backend_arrow(state, x, y, dx, dy, arrow_size, style)

Arguments

Type IntentOptional Attributes Name
type(figure_state_t), intent(inout) :: state
real(kind=wp), intent(in) :: x
real(kind=wp), intent(in) :: y
real(kind=wp), intent(in) :: dx
real(kind=wp), intent(in) :: dy
real(kind=wp), intent(in) :: arrow_size
character(len=*), intent(in) :: style

public subroutine core_setup_png_backend_for_animation(state)

Arguments

Type IntentOptional Attributes Name
type(figure_state_t), intent(inout) :: state

public subroutine core_extract_rgb_data_for_animation(state, rgb_data, plots, plot_count, annotations, annotation_count, rendered)

Arguments

Type IntentOptional Attributes Name
type(figure_state_t), intent(inout) :: state
real(kind=wp), intent(out) :: rgb_data(:,:,:)
type(plot_data_t), intent(inout), allocatable :: plots(:)
integer, intent(in) :: plot_count
type(text_annotation_t), intent(inout), allocatable :: annotations(:)
integer, intent(in) :: annotation_count
logical, intent(in) :: rendered

public subroutine core_extract_png_data_for_animation(state, png_data, status, plots, plot_count, annotations, annotation_count, rendered)

Arguments

Type IntentOptional Attributes Name
type(figure_state_t), intent(inout) :: state
integer(kind=1), intent(out), allocatable :: png_data(:)
integer, intent(out) :: status
type(plot_data_t), intent(inout), allocatable :: plots(:)
integer, intent(in) :: plot_count
type(text_annotation_t), intent(inout), allocatable :: annotations(:)
integer, intent(in) :: annotation_count
logical, intent(in) :: rendered