.. default-domain:: cpp .. highlight:: cpp .. namespace:: krpc::services::Drawing Path ==== .. class:: Path The base class of orbit paths and of the paths whose points are in a reference frame. | Base class: :class:`Drawable` | Derived classes: :class:`FramedPath`, :class:`OrbitPath` .. container:: inherited-members .. rubric:: Inherited Members * From :class:`Drawable`: :func:`visible `, :func:`set_visible `, :func:`color `, :func:`set_color `, :func:`material `, :func:`set_material `, :func:`remove ` .. function:: std::vector colors() .. function:: void set_colors(std::vector value) The colors of the path, blended evenly from its start to its end. :Game Scenes: Flight, Tracking Station, Editor Vab, Editor Sph .. note:: Throws an exception if the list is empty or holds more than 8 colors. .. function:: float thickness() .. function:: void set_thickness(float value) The thickness of the path. :Game Scenes: Flight, Tracking Station, Editor Vab, Editor Sph .. function:: bool start_arrow() .. function:: void set_start_arrow(bool value) Whether an arrow head is drawn at the start. :Game Scenes: Flight, Tracking Station, Editor Vab, Editor Sph .. function:: bool end_arrow() .. function:: void set_end_arrow(bool value) Whether an arrow head is drawn at the end. :Game Scenes: Flight, Tracking Station, Editor Vab, Editor Sph .. function:: float arrow_size() .. function:: void set_arrow_size(float value) The size of the arrow heads, relative to the thickness. :Game Scenes: Flight, Tracking Station, Editor Vab, Editor Sph .. function:: bool dashed() .. function:: void set_dashed(bool value) Whether the path is drawn as a dashed line. :Game Scenes: Flight, Tracking Station, Editor Vab, Editor Sph .. function:: std::string label() .. function:: void set_label(std::string value) The text drawn halfway along the path, facing the camera. Empty for no label. :Game Scenes: Flight, Tracking Station, Editor Vab, Editor Sph