.. default-domain:: http .. highlight:: json OrbitPath ========= .. _http-Drawing.OrbitPath: .. rubric:: OrbitPath The path of an orbit. Created using :http:post:`/drawing/add-orbit`. A ``OrbitPath`` object is passed and returned as its identifier, a number. A path that acts on an object takes it as ``(id)``. .. http:get:: /drawing/orbit-path/(id)/orbit The orbit. :param id: The identifier of the :ref:`OrbitPath ` object. :resjson SpaceCenter.Orbit value: .. http:put:: /drawing/orbit-path/(id)/orbit The orbit. :param id: The identifier of the :ref:`OrbitPath ` object. :reqjson SpaceCenter.Orbit value: The new value. .. http:get:: /drawing/orbit-path/(id)/whole-orbit Whether the whole orbit is drawn, up to where it leaves the sphere of influence of its body. When false, the orbit is drawn from :http:get:`/drawing/orbit-path/(id)/start-true-anomaly` to :http:get:`/drawing/orbit-path/(id)/end-true-anomaly`. :param id: The identifier of the :ref:`OrbitPath ` object. :resjson bool value: .. http:put:: /drawing/orbit-path/(id)/whole-orbit Whether the whole orbit is drawn, up to where it leaves the sphere of influence of its body. When false, the orbit is drawn from :http:get:`/drawing/orbit-path/(id)/start-true-anomaly` to :http:get:`/drawing/orbit-path/(id)/end-true-anomaly`. :param id: The identifier of the :ref:`OrbitPath ` object. :reqjson bool value: The new value. .. http:get:: /drawing/orbit-path/(id)/start-true-anomaly The true anomaly at which the path starts, in radians. .. note:: Setting this sets :http:get:`/drawing/orbit-path/(id)/whole-orbit` to false. :param id: The identifier of the :ref:`OrbitPath ` object. :resjson double value: .. http:put:: /drawing/orbit-path/(id)/start-true-anomaly The true anomaly at which the path starts, in radians. .. note:: Setting this sets :http:get:`/drawing/orbit-path/(id)/whole-orbit` to false. :param id: The identifier of the :ref:`OrbitPath ` object. :reqjson double value: The new value. .. http:get:: /drawing/orbit-path/(id)/end-true-anomaly The true anomaly at which the path ends, in radians. .. note:: Setting this sets :http:get:`/drawing/orbit-path/(id)/whole-orbit` to false. :param id: The identifier of the :ref:`OrbitPath ` object. :resjson double value: .. http:put:: /drawing/orbit-path/(id)/end-true-anomaly The true anomaly at which the path ends, in radians. .. note:: Setting this sets :http:get:`/drawing/orbit-path/(id)/whole-orbit` to false. :param id: The identifier of the :ref:`OrbitPath ` object. :reqjson double value: The new value. .. http:get:: /drawing/orbit-path/(id)/visible Whether the object is visible. :param id: The identifier of the :ref:`OrbitPath ` object. :resjson bool value: .. http:put:: /drawing/orbit-path/(id)/visible Whether the object is visible. :param id: The identifier of the :ref:`OrbitPath ` object. :reqjson bool value: The new value. .. http:get:: /drawing/orbit-path/(id)/color The color of the path. .. note:: For a path drawn with more than one color, this is the color at its start. :param id: The identifier of the :ref:`OrbitPath ` object. :resjson StdLib.ColorRGB value: .. http:put:: /drawing/orbit-path/(id)/color The color of the path. .. note:: For a path drawn with more than one color, this is the color at its start. :param id: The identifier of the :ref:`OrbitPath ` object. :reqjson StdLib.ColorRGB value: The new value. .. http:get:: /drawing/orbit-path/(id)/colors The colors of the path, blended evenly from its start to its end. .. note:: Throws an exception if the list is empty or holds more than 8 colors. :param id: The identifier of the :ref:`OrbitPath ` object. :resjson list value: .. http:put:: /drawing/orbit-path/(id)/colors The colors of the path, blended evenly from its start to its end. .. note:: Throws an exception if the list is empty or holds more than 8 colors. :param id: The identifier of the :ref:`OrbitPath ` object. :reqjson list value: The new value. .. http:get:: /drawing/orbit-path/(id)/thickness The thickness of the path. :param id: The identifier of the :ref:`OrbitPath ` object. :resjson float value: .. http:put:: /drawing/orbit-path/(id)/thickness The thickness of the path. :param id: The identifier of the :ref:`OrbitPath ` object. :reqjson float value: The new value. .. http:get:: /drawing/orbit-path/(id)/start-arrow Whether an arrow head is drawn at the start. :param id: The identifier of the :ref:`OrbitPath ` object. :resjson bool value: .. http:put:: /drawing/orbit-path/(id)/start-arrow Whether an arrow head is drawn at the start. :param id: The identifier of the :ref:`OrbitPath ` object. :reqjson bool value: The new value. .. http:get:: /drawing/orbit-path/(id)/end-arrow Whether an arrow head is drawn at the end. :param id: The identifier of the :ref:`OrbitPath ` object. :resjson bool value: .. http:put:: /drawing/orbit-path/(id)/end-arrow Whether an arrow head is drawn at the end. :param id: The identifier of the :ref:`OrbitPath ` object. :reqjson bool value: The new value. .. http:get:: /drawing/orbit-path/(id)/arrow-size The size of the arrow heads, relative to the thickness. :param id: The identifier of the :ref:`OrbitPath ` object. :resjson float value: .. http:put:: /drawing/orbit-path/(id)/arrow-size The size of the arrow heads, relative to the thickness. :param id: The identifier of the :ref:`OrbitPath ` object. :reqjson float value: The new value. .. http:get:: /drawing/orbit-path/(id)/dashed Whether the path is drawn as a dashed line. :param id: The identifier of the :ref:`OrbitPath ` object. :resjson bool value: .. http:put:: /drawing/orbit-path/(id)/dashed Whether the path is drawn as a dashed line. :param id: The identifier of the :ref:`OrbitPath ` object. :reqjson bool value: The new value. .. http:get:: /drawing/orbit-path/(id)/label Text drawn halfway along the path, facing the camera. Empty for no label. :param id: The identifier of the :ref:`OrbitPath ` object. :resjson string value: .. http:put:: /drawing/orbit-path/(id)/label Text drawn halfway along the path, facing the camera. Empty for no label. :param id: The identifier of the :ref:`OrbitPath ` object. :reqjson string value: The new value. .. http:get:: /drawing/orbit-path/(id)/material Material used to render the object. Creates the material from a shader with the given name. :param id: The identifier of the :ref:`OrbitPath ` object. :resjson string value: .. http:put:: /drawing/orbit-path/(id)/material Material used to render the object. Creates the material from a shader with the given name. :param id: The identifier of the :ref:`OrbitPath ` object. :reqjson string value: The new value. .. http:post:: /drawing/orbit-path/(id)/remove Remove the object. :param id: The identifier of the :ref:`OrbitPath ` object.