Draw the names of the named stars drawn (those of the catalog's last
field), beside them: shown (default false), of the stars up to
magnitude max_mag (default all of them), size window units tall
(default 12), in color rgba (default a pale blue) and font font
('' or default: vkframes' default font). Also while shown; the
settings not given are kept. Returns false (nothing changed) if size
isn't > 0.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(SkySphere), | intent(inout) | :: | self | |||
| logical, | intent(in) | :: | shown |
draw the names |
||
| real(kind=wp), | intent(in), | optional | :: | max_mag |
the dimmest named (apparent magnitude) |
|
| real(kind=wp), | intent(in), | optional | :: | size |
height in window units (> 0) |
|
| real(kind=wp), | intent(in), | optional | :: | rgba(4) |
color [r, g, b, a] (0 to 1) |
|
| character(len=*), | intent(in), | optional | :: | font |
font file ('' for the default) |
logical function set_star_names(self, shown, max_mag, size, rgba, font) result(ok) class(SkySphere), intent(inout) :: self logical, intent(in) :: shown !! draw the names real(wp), intent(in), optional :: max_mag !! the dimmest named (apparent magnitude) real(wp), intent(in), optional :: size !! height in window units (> 0) real(wp), intent(in), optional :: rgba(4) !! color [r, g, b, a] (0 to 1) character(len=*), intent(in), optional :: font !! font file ('' for the default) ok = .true. if (present(size)) ok = size > 0.0_wp if (.not. ok) return self%names_shown = shown if (present(max_mag)) self%names_max_mag = max_mag if (present(size)) self%names_size = size if (present(rgba)) self%names_rgba = rgba if (present(font)) self%names_font = font if (c_associated(self%root)) call make_name_node(self) end function set_star_names