Line#

class Drawing.Line()#

A line. Created using Drawing.addLine().

Line.getStart()#
Line.setStart(value)#

Start position of the line.

Property:

Can be read or written

Return type:

[number, number, number]

Game Scenes:

Flight, Tracking Station, Editor Vab, Editor Sph

Line.getEnd()#
Line.setEnd(value)#

End position of the line.

Property:

Can be read or written

Return type:

[number, number, number]

Game Scenes:

Flight, Tracking Station, Editor Vab, Editor Sph

Line.getReferenceFrame()#
Line.setReferenceFrame(value)#

Reference frame for the positions of the object.

Property:

Can be read or written

Return type:

SpaceCenter.ReferenceFrame

Game Scenes:

Flight, Tracking Station, Editor Vab, Editor Sph

Line.getVisible()#
Line.setVisible(value)#

Whether the object is visible.

Property:

Can be read or written

Return type:

boolean

Game Scenes:

Flight, Tracking Station, Editor Vab, Editor Sph

Line.getColor()#
Line.setColor(value)#

The color of the path.

Property:

Can be read or written

Return type:

StdLib.ColorRGB

Game Scenes:

Flight, Tracking Station, Editor Vab, Editor Sph

Note

For a path drawn with more than one color, this is the color at its start.

Line.getColors()#
Line.setColors(value)#

The colors of the path, blended evenly from its start to its end.

Property:

Can be read or written

Return type:

Array of StdLib.ColorRGB

Game Scenes:

Flight, Tracking Station, Editor Vab, Editor Sph

Note

Throws an exception if the list is empty or holds more than 8 colors.

Line.getThickness()#
Line.setThickness(value)#

The thickness of the path.

Property:

Can be read or written

Return type:

number

Game Scenes:

Flight, Tracking Station, Editor Vab, Editor Sph

Line.getStartArrow()#
Line.setStartArrow(value)#

Whether an arrow head is drawn at the start.

Property:

Can be read or written

Return type:

boolean

Game Scenes:

Flight, Tracking Station, Editor Vab, Editor Sph

Line.getEndArrow()#
Line.setEndArrow(value)#

Whether an arrow head is drawn at the end.

Property:

Can be read or written

Return type:

boolean

Game Scenes:

Flight, Tracking Station, Editor Vab, Editor Sph

Line.getArrowSize()#
Line.setArrowSize(value)#

The size of the arrow heads, relative to the thickness.

Property:

Can be read or written

Return type:

number

Game Scenes:

Flight, Tracking Station, Editor Vab, Editor Sph

Line.getDashed()#
Line.setDashed(value)#

Whether the path is drawn as a dashed line.

Property:

Can be read or written

Return type:

boolean

Game Scenes:

Flight, Tracking Station, Editor Vab, Editor Sph

Line.getLabel()#
Line.setLabel(value)#

Text drawn halfway along the path, facing the camera. Empty for no label.

Property:

Can be read or written

Return type:

string

Game Scenes:

Flight, Tracking Station, Editor Vab, Editor Sph

Line.getMaterial()#
Line.setMaterial(value)#

Material used to render the object. Creates the material from a shader with the given name.

Property:

Can be read or written

Return type:

string

Game Scenes:

Flight, Tracking Station, Editor Vab, Editor Sph

Line.remove()#

Remove the object.

Game Scenes:

Flight, Tracking Station, Editor Vab, Editor Sph