The axes (arrows), axes labels and name label, each under a switch, in the frame's color (OpenFrames' ReferenceFrame decorations).
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(ReferenceFrame), | intent(inout) | :: | self |
subroutine build_decorations(self) class(ReferenceFrame), intent(inout) :: self integer :: k if (.not. self%axes_moved) call self%reposition_axes() do k = 1, 3 self%axis_node(k) = vkf_switch_create() self%axis_label_node(k) = vkf_switch_create() call make_axis(self, k) call check_status(vkf_node_add_child(self%node_, self%axis_node(k))) call check_status(vkf_node_add_child(self%node_, self%axis_label_node(k))) end do ! the name label at the origin, label_size pixels tall self%name_label_node = vkf_switch_create() call make_name_label(self) call check_status(vkf_node_add_child(self%node_, self%name_label_node)) call update_switches(self) end subroutine build_decorations