FramedPath#
FramedPath
The base class of arcs, circles, lines, polygons and polylines, whose points are positions in a reference frame.
A FramedPath object is returned as {"id": ..., "class": ...}, its identifier and the name
of its own class. An argument is that object or the identifier alone. A path that acts on an
object takes the identifier as (id).
- GET /drawing/framed-path/(id)/reference-frame#
The reference frame for the positions of the object.
- Parameters:
id – The identifier of the FramedPath object.
- Response JSON Object:
value (SpaceCenter.ReferenceFrame)
- PUT /drawing/framed-path/(id)/reference-frame#
The reference frame for the positions of the object.
- Parameters:
id – The identifier of the FramedPath object.
- Request JSON Object:
value (SpaceCenter.ReferenceFrame) – The new value.
- GET /drawing/framed-path/(id)/visible#
Whether the object is visible.
Inherited from Drawable.
- Parameters:
id – The identifier of the FramedPath object.
- Response JSON Object:
value (bool)
- PUT /drawing/framed-path/(id)/visible#
Whether the object is visible.
Inherited from Drawable.
- Parameters:
id – The identifier of the FramedPath object.
- Request JSON Object:
value (bool) – The new value.
- GET /drawing/framed-path/(id)/color#
The color of the object.
Inherited from Drawable.
Note
For a path drawn with more than one color, this is the color at its start.
- Parameters:
id – The identifier of the FramedPath object.
- Response JSON Object:
value (StdLib.ColorRGB)
- PUT /drawing/framed-path/(id)/color#
The color of the object.
Inherited from Drawable.
Note
For a path drawn with more than one color, this is the color at its start.
- Parameters:
id – The identifier of the FramedPath object.
- Request JSON Object:
value (StdLib.ColorRGB) – The new value.
- GET /drawing/framed-path/(id)/colors#
The colors of the path, blended evenly from its start to its end.
Inherited from Path.
Note
Throws an exception if the list is empty or holds more than 8 colors.
- Parameters:
id – The identifier of the FramedPath object.
- Response JSON Object:
value (list<StdLib.ColorRGB>)
- PUT /drawing/framed-path/(id)/colors#
The colors of the path, blended evenly from its start to its end.
Inherited from Path.
Note
Throws an exception if the list is empty or holds more than 8 colors.
- Parameters:
id – The identifier of the FramedPath object.
- Request JSON Object:
value (list<StdLib.ColorRGB>) – The new value.
- GET /drawing/framed-path/(id)/thickness#
The thickness of the path.
Inherited from Path.
- Parameters:
id – The identifier of the FramedPath object.
- Response JSON Object:
value (float)
- PUT /drawing/framed-path/(id)/thickness#
The thickness of the path.
Inherited from Path.
- Parameters:
id – The identifier of the FramedPath object.
- Request JSON Object:
value (float) – The new value.
- GET /drawing/framed-path/(id)/start-arrow#
Whether an arrow head is drawn at the start.
Inherited from Path.
- Parameters:
id – The identifier of the FramedPath object.
- Response JSON Object:
value (bool)
- PUT /drawing/framed-path/(id)/start-arrow#
Whether an arrow head is drawn at the start.
Inherited from Path.
- Parameters:
id – The identifier of the FramedPath object.
- Request JSON Object:
value (bool) – The new value.
- GET /drawing/framed-path/(id)/end-arrow#
Whether an arrow head is drawn at the end.
Inherited from Path.
- Parameters:
id – The identifier of the FramedPath object.
- Response JSON Object:
value (bool)
- PUT /drawing/framed-path/(id)/end-arrow#
Whether an arrow head is drawn at the end.
Inherited from Path.
- Parameters:
id – The identifier of the FramedPath object.
- Request JSON Object:
value (bool) – The new value.
- GET /drawing/framed-path/(id)/arrow-size#
The size of the arrow heads, relative to the thickness.
Inherited from Path.
- Parameters:
id – The identifier of the FramedPath object.
- Response JSON Object:
value (float)
- PUT /drawing/framed-path/(id)/arrow-size#
The size of the arrow heads, relative to the thickness.
Inherited from Path.
- Parameters:
id – The identifier of the FramedPath object.
- Request JSON Object:
value (float) – The new value.
- GET /drawing/framed-path/(id)/dashed#
Whether the path is drawn as a dashed line.
Inherited from Path.
- Parameters:
id – The identifier of the FramedPath object.
- Response JSON Object:
value (bool)
- PUT /drawing/framed-path/(id)/dashed#
Whether the path is drawn as a dashed line.
Inherited from Path.
- Parameters:
id – The identifier of the FramedPath object.
- Request JSON Object:
value (bool) – The new value.
- GET /drawing/framed-path/(id)/label#
The text drawn halfway along the path, facing the camera. Empty for no label.
Inherited from Path.
- Parameters:
id – The identifier of the FramedPath object.
- Response JSON Object:
value (string)
- PUT /drawing/framed-path/(id)/label#
The text drawn halfway along the path, facing the camera. Empty for no label.
Inherited from Path.
- Parameters:
id – The identifier of the FramedPath object.
- Request JSON Object:
value (string) – The new value.
- GET /drawing/framed-path/(id)/material#
The material used to render the object. Creates the material from a shader with the given name. Throws an exception if the object is a marker, which the game draws with its own material.
Inherited from Drawable.
- Parameters:
id – The identifier of the FramedPath object.
- Response JSON Object:
value (string)
- PUT /drawing/framed-path/(id)/material#
The material used to render the object. Creates the material from a shader with the given name. Throws an exception if the object is a marker, which the game draws with its own material.
Inherited from Drawable.
- Parameters:
id – The identifier of the FramedPath object.
- Request JSON Object:
value (string) – The new value.
- POST /drawing/framed-path/(id)/remove#
Remove the object.
Inherited from Drawable.
- Parameters:
id – The identifier of the FramedPath object.