CentralBodyReferenceSystem - Zudokakikuto/OreCZML GitHub Wiki

This page describes the content of a CZML document. Please read Get Started for an explanation of how a CZML document is put together.

Central Body Reference System

Implements : CzmlPrimaryObject

Extends : AbstractPrimaryObject

This object creates three packets that are numbered from 0 to 2, that are polylines describes like this :

{
    "id":"CENTRAL_BODY_REFERENCE_SYSTEM 0",
    "name":"Reference system of the central body",
    "availability":"2024-03-15T00:00:00Z/2024-03-15T10:00:00Z",
    "position":{
      "cartesian":[
        0,0,0
      ]
    },
    "polyline":{
      "width":2,
      "arcType":"NONE",
      "show":true,
      "distanceDisplayCondition":{
        "distanceDisplayCondition":[
          1,1000000000
        ]
      },
      "material":{
        "solidColor":{
          "color":{
            "rgba":[
              255,10,10,255
            ]
          }
        }
      },
      "positions":{
        "referenceFrame":"FIXED",
        "cartesian":[
          0.1,0.1,0.1,
          19134411,0,0
        ]
      },
      "show":{
        "interval":"2024-03-15T00:00:00Z/2024-03-15T10:00:00Z",
        "boolean":true
      }
    }
  }

Properties

id - String : Identification of the Central Body Reference System object, default : "CENTRAL_BODY_REFERENCE_SYSTEM {number from 0 to 2}".

name - String : Name of the Central Body Reference System, default : "Reference system of the central body".

availability - TimeInterval : Time interval when the Central Body Reference System is displayed, default : The availability of the clock of the header.

Intrinsic parameters

These arguments can be used to build a Central Body Reference System object :

body - OneAxisEllipsoid : The body to which the reference system must be fixed, default : earth

color1 - Color : The color of the 'x' axis, default : red

color2 - Color : The color of the 'y' axis, default : green

color3 - Color : The color of the 'z' axis, default : blue

Build

The CentralBodyReferenceSystem object can be build with :

  • Nothing :
CentralBodyReferenceSystem system = new CentralBodyReferenceSystem();
CentralBodyReferenceSystem system = new CentralBodyReferenceSystem(color1, color2, color3);
CentralBodyReferenceSystem system = new CentralBodyReferenceSystem(body, id, name, color1, color2, color3);