Skip to main content

Celestial

Created with kind celestial.

TypeClass
"arc"CelestialArc
"image"CelestialImage
"label"CelestialLabel
"sprite"CelestialSprite

"arc" — CelestialArc​

{"type": "arc"}
KeyTypeAlways requiredNotes
PropertyTypeAccessDescription
belowHorizonVisiblebooleanread/writeReturns whether the part of the curve below the horizon is drawn.
clickRadiusnumberread/writeReturns the click radius of the curve.
radiusnumberread-onlyReturns the angular radius of a circular arc.
segmentedbooleanread-onlyReturns true if the directions are read as separate segments rather than as a path.
widthnumberread/writeReturns the line width.

Inherited from CelestialObject:

PropertyTypeAccessDescription
altitudenumberread-onlyReturns the altitude of a direction-anchored object.
azimuthnumberread-onlyReturns the azimuth of a direction-anchored object.
colorcolorread/writeReturns the color of the object.
directionAnchoredbooleanread-onlyReturns true if the object is anchored by direction, false if by geographic position.
distancenumberread-onlyReturns the distance of a direction-anchored object.
metaDatastruct std::map<std::string, massif::Variant>read/writeReturns a copy of the meta data map. Changes to the copy are not reflected in the object.
occludedByMapbooleanread/writeReturns whether the map in front hides the object.
positionstruct massif::MapPosread-onlyReturns the geographic position of a position-anchored object.
positionAltitudenumberread-onlyReturns the altitude of a position-anchored object.
visiblebooleanread/writeReturns the visibility of the object.
MethodArgumentsReturns
setCircleaxisAzimuth: float, axisAltitude: float, radius: floatvoid
setDirectionazimuth: float, altitude: float, distance: floatvoid
setDirectionsdirections: jsonvoid
setSegmentsdirections: jsonvoid

"image" — CelestialImage​

{"type": "image"}
KeyTypeAlways requiredNotes
PropertyTypeAccessDescription
bitmapobject graphics.Bitmapread/writeReturns the bitmap of the image.
luminanceAlphabooleanread/writeReturns whether the bitmap's brightness is read as its opacity.

Inherited from CelestialObject:

PropertyTypeAccessDescription
altitudenumberread-onlyReturns the altitude of a direction-anchored object.
azimuthnumberread-onlyReturns the azimuth of a direction-anchored object.
colorcolorread/writeReturns the color of the object.
directionAnchoredbooleanread-onlyReturns true if the object is anchored by direction, false if by geographic position.
distancenumberread-onlyReturns the distance of a direction-anchored object.
metaDatastruct std::map<std::string, massif::Variant>read/writeReturns a copy of the meta data map. Changes to the copy are not reflected in the object.
occludedByMapbooleanread/writeReturns whether the map in front hides the object.
positionstruct massif::MapPosread-onlyReturns the geographic position of a position-anchored object.
positionAltitudenumberread-onlyReturns the altitude of a position-anchored object.
visiblebooleanread/writeReturns the visibility of the object.
MethodArgumentsReturns
setAnchorsanchors: jsonvoid
setDirectionazimuth: float, altitude: float, distance: floatvoid

"label" — CelestialLabel​

{"type": "label"}
KeyTypeAlways requiredNotes
PropertyTypeAccessDescription
anchorPointXnumberread-onlyReturns the horizontal anchor point.
anchorPointYnumberread-onlyReturns the vertical anchor point.
backgroundColorcolorread/writeReturns the background colour.
backgroundRadiusnumberread/writeReturns the corner radius of the plate.
clickablebooleanread/writeReturns whether a click on the label hits it.
fontNamestringread/writeReturns the font list.
fontSizenumberread/writeReturns the font size.
haloColorcolorread/writeReturns the halo colour.
haloWidthnumberread/writeReturns the halo width.
offsetXnumberread-onlyReturns the horizontal offset.
offsetYnumberread-onlyReturns the vertical offset.
paddingXnumberread/writeReturns the horizontal padding between the text and the plate's edge.
paddingYnumberread/writeReturns the vertical padding between the text and the plate's edge.
textstringread/writeReturns the text.
textColorcolorread/writeReturns the text colour. The object's own colour tints the whole label, plate included.

Inherited from CelestialObject:

PropertyTypeAccessDescription
altitudenumberread-onlyReturns the altitude of a direction-anchored object.
azimuthnumberread-onlyReturns the azimuth of a direction-anchored object.
colorcolorread/writeReturns the color of the object.
directionAnchoredbooleanread-onlyReturns true if the object is anchored by direction, false if by geographic position.
distancenumberread-onlyReturns the distance of a direction-anchored object.
metaDatastruct std::map<std::string, massif::Variant>read/writeReturns a copy of the meta data map. Changes to the copy are not reflected in the object.
occludedByMapbooleanread/writeReturns whether the map in front hides the object.
positionstruct massif::MapPosread-onlyReturns the geographic position of a position-anchored object.
positionAltitudenumberread-onlyReturns the altitude of a position-anchored object.
visiblebooleanread/writeReturns the visibility of the object.
MethodArgumentsReturns
setAnchorPointx: float, y: floatvoid
setDirectionazimuth: float, altitude: float, distance: floatvoid
setOffsetx: float, y: floatvoid

"sprite" — CelestialSprite​

{"type": "sprite"}
KeyTypeAlways requiredNotes
PropertyTypeAccessDescription
angularSizenumberread/writeReturns the angular size of the sprite.
bitmapobject graphics.Bitmapread/writeReturns the bitmap of the sprite.
clickRadiusnumberread/writeReturns the extra radius that responds to a click.
screenSizenumberread/writeReturns the screen size of the sprite.
softnessnumberread/writeReturns the edge softness of a disc sprite.

Inherited from CelestialObject:

PropertyTypeAccessDescription
altitudenumberread-onlyReturns the altitude of a direction-anchored object.
azimuthnumberread-onlyReturns the azimuth of a direction-anchored object.
colorcolorread/writeReturns the color of the object.
directionAnchoredbooleanread-onlyReturns true if the object is anchored by direction, false if by geographic position.
distancenumberread-onlyReturns the distance of a direction-anchored object.
metaDatastruct std::map<std::string, massif::Variant>read/writeReturns a copy of the meta data map. Changes to the copy are not reflected in the object.
occludedByMapbooleanread/writeReturns whether the map in front hides the object.
positionstruct massif::MapPosread-onlyReturns the geographic position of a position-anchored object.
positionAltitudenumberread-onlyReturns the altitude of a position-anchored object.
visiblebooleanread/writeReturns the visibility of the object.
MethodArgumentsReturns
setDirectionazimuth: float, altitude: float, distance: floatvoid

Base classes​

Not constructed directly. Their properties are reachable on every object above that derives from them.

CelestialObject​

PropertyTypeAccessDescription
altitudenumberread-onlyReturns the altitude of a direction-anchored object.
azimuthnumberread-onlyReturns the azimuth of a direction-anchored object.
colorcolorread/writeReturns the color of the object.
directionAnchoredbooleanread-onlyReturns true if the object is anchored by direction, false if by geographic position.
distancenumberread-onlyReturns the distance of a direction-anchored object.
metaDatastruct std::map<std::string, massif::Variant>read/writeReturns a copy of the meta data map. Changes to the copy are not reflected in the object.
occludedByMapbooleanread/writeReturns whether the map in front hides the object.
positionstruct massif::MapPosread-onlyReturns the geographic position of a position-anchored object.
positionAltitudenumberread-onlyReturns the altitude of a position-anchored object.
visiblebooleanread/writeReturns the visibility of the object.
MethodArgumentsReturns
setDirectionazimuth: float, altitude: float, distance: floatvoid