Plugin Samples
Sample applications that demonstrate some of those Plugin technologies follow.
All code samples for extending constraints, listed below, are organized by programming language and project name in the <user-selected folder>CodeSamples/Extend/<Plugin Type><Language>/<Project> folder, where:
<Plugin Type> can be Constraints, Gator.AttitudeControllers, Gator.EngineModels, Gator.Search, Gator.EOMFunctions, SRP.LightReflection, HPOP.ForceModels, DragModels, Radar, RFCM, Ui.Plugins, Graphics, VGT.Plugins, or EphemerisFileReader.
Constraints
All code samples for extending constraints are organized by programming language and project name in <user-selected folder>CodeSamples/Extend/Constraints/<Language>/<Project>.
Language | Project | Description |
---|---|---|
Java |
For instructions on configuring the Java samples with the Eclipse IDE, click here. |
|
Extend_STK_Plugin_AccessConstraint_Common | Sample code shared for Access Constraint Java plugins. | |
Extend_STK_Plugin_AccessConstraint_Config | Demonstrates how to use the IAgUtPluginConfig and IAgAttrBuilder interfaces to provide configurable variables via the STK GUI for use in the runtime access computations. | |
Extend_STK_Plugin_AccessConstraint_NIIRS | Calculates a modified form of the NIIRS image quality metric, useful when evaluating optical instruments. This version of the GSD equation is parameterized in terms of Q (the optical ratio), lamba (wavelength), and D (optical diameter). These parameter values are made available for you to edit. The constraint has been registered only for Facilities and Targets performing access to Sensors. This example is best suited for use as a Figure of Merit metric for Coverage computations. | |
Extend_STK_Plugin_AccessConstraint_Range | Simply uses the range between objects as its metric. Of course, such a metric is already available in the STK application, but this code is meant to demonstrate registration issues, not computational complexity. It is registered on only a handful of possible STK Object pairings. | |
Language | Project | Description |
Python |
For more information on developing Python plugins, click here. |
|
Range | Simply uses the range between objects as its metric. Of course, such a metric is already available in the STK application, but this code is meant to demonstrate registration issues, not computational complexity. It is registered on only a handful of possible STK Object pairings. |
Graphics Plugins
All code samples for extending constraints are organized by programming language and project name in <user-selected folder>CodeSamples/Extend/Graphics/<Language>/<Project>.
Language | Project | Description |
---|---|---|
Java |
For instructions on configuring the Java samples with the Eclipse IDE, click here. |
|
Extend_STK_Plugin_Graphics_Common | Sample code shared for Graphics Java plugins. | |
Extend_STK_Plugin_Graphics_ProjectionStream_Basic | Demonstrates how to create a Graphics Projection Stream plugin that can display a custom configurable (via file path) raster and project it into the 3D Graphics visualization space. | |
Extend_STK_Plugin_Graphics_RasterStream_Basic | Demonstrates how to create a Graphics Raster Stream plugin that can display a custom configurable (via file path) raster as a layer within the 3D Graphics visualization. | |
Extend_STK_Plugin_Graphics_CustomImageGlobeOverlay_OpenStreetMap | Demonstrates how to create a Graphics Custom Image Globe Overlay using Open Street Map online tile URLs within the 3D Graphics visualization. |
VGT Plugins
All code samples for extending constraints are organized by programming language and project name in <user-selected folder>CodeSamples/Extend/VGT.Plugins/<Language>/<Project>.
Language | Project | Description |
---|---|---|
Python |
For more information on developing Python plugins, click here. |
|
Axes | Rotates the ICRF VGT axes on the object by 30 degrees. | |
CalcScalar | Add "Trajectory(CBF).Cartesian.X” and “Trajectory(CBF).Cartesian.Z” | |
Point | Computes the object's altitude and divide it by 2. | |
Vector | Computes the average position of the Sun and Moon displacement vectors. |