Skip to content
roosit edited this page Nov 15, 2026 · 5 revisions

Source Code Walkthrough

Up | Next | Русский

Every Java class of the plugin has a page with the full source and short explanations inside the listing, followed by the purpose, how it works, and its particulars. The production code in src/main/java/... is intentionally clean (no JavaDoc and no comments) — all the description lives here.

The pages follow the same order as the "Previous / Next" navigation: the plugin entry point, then the indicators in registration order (VelitaskPlagin.defineIndicators()), then the helper classes by package: map figures, slope analytics, charts, slider, G-force, source previews, and data processing on import (pause formulas, filters, compression, import plans). The format in which an indicator is saved in a project and in a template is on its JSON page.

Entry point

Indicators

Indicator Code page JSON
Video VideoIndicator JSON
Audio AudioIndicator JSON
Image ImageIndicator JSON
Slider SliderIndicator JSON
Speedometer SpeedometerIndicator JSON
Distance Text DistanceTextIndicator JSON
Elevation Chart SlopeChartIndicator JSON
Speed Chart SpeedChartIndicator JSON
Slope Text SlopeTextIndicator JSON
Slope and Speed SlopeSpeedIndicator JSON
Temperature Text TemperatureTextIndicator JSON
Heart Text HeartTextIndicator JSON
Power Text PowerTextIndicator JSON
Balance Text BalanceTextIndicator JSON
Gears Text GearsTextIndicator JSON
Device Grade Text GradeTextIndicator JSON
G-force GForceIndicator JSON
G-force Text GForceTextIndicator JSON
Accelerometer Text AccelerometerTextIndicator JSON
Gyroscope Text GyroscopeTextIndicator JSON
Orientation Text OrientationTextIndicator JSON
Attitude Text AttitudeTextIndicator JSON
Pedal Efficiency Text PedalEfficiencyTextIndicator JSON
Pedal Smoothness Text PedalSmoothnessTextIndicator JSON
Pedal Dynamics Text PedalDynamicsTextIndicator JSON
Lap Text LapTextIndicator JSON
Speed Text SpeedTextIndicator JSON
Cadence Text CadenceTextIndicator JSON
Time Text TimeTextIndicator JSON
Subtitles SubtitlesIndicator JSON
Text TextIndicator JSON
File extension FileExtensionIndicator JSON
Coordinates Text LatLonTextIndicator JSON
Map GeoMapIndicator JSON
Compass CompassIndicator JSON
Rectangle RectangleIndicator JSON
Ellipse EllipseIndicator JSON
Line LineIndicator JSON

Map figures (geo/)

Slope analytics (slope/)

  • SlopeDetector — splits the track into groups of climbs, descents and flats when a source is imported.
  • SlopeGroup — the accumulator of a single group.
  • SlopeGroupAtom — a row of the group table in the plugin database.

Charts (charts/)

Slider

G-force

  • GForcePause — what to show in the "G-force" and "G-force Text" indicators when the frame time falls into a recording pause.

Source previews (previews/)

The preview generators are registered in VelitaskPlagin.definePreviewGenerators() and build a programmatic thumbnail template from a single indicator layer.

Data processing on import (processing/)

Processing formulas (pauses, filters, compression) and the import plans that the plugin hands to the application through defineImportSteps() and defineImportPlans().

  • FormulaParameters — the factory methods the formulas use to create their parameters.
  • BuiltinScenarios — the single place where the plugin lists the steps (formulas) and the import plans.

Import plans (processing/plans/)

For each kind of source, a plan defines the stages and the values for each sensor.

Pauses (processing/gaps/)

  • StepGaps — "Pauses by recording gap": a pause where noticeably more time passed between neighbouring points than usual.
  • ExplicitGaps — "Pauses from the file": only the pauses recorded by the device itself.
  • UnchangedGaps — "Pauses by frozen value": the sensor value did not change for longer than the given time.
  • FollowGaps — "Pauses as in the reference sensor": repeats the pauses of another sensor of the source.
  • ThresholdGaps — the base of the formulas with two thresholds: stop and movement.
  • SpeedThresholdGaps — "Pauses by stop: speed".
  • StayGaps — the base of the "stay" formulas: points within a radius for longer than the given time.
  • GeoStayGaps — "Pauses at a stop: GPS".

Filters (processing/filters/)

Compression (processing/compress/)

Clone this wiki locally