![]() |
|
Vector graphics for both composites and single radar data (polar coordinates). More...
#include <graphics-radar.h>

Classes | |
| struct | CubicBezierConf |
Public Member Functions | |
| RadarSVG (int radialBezierResolution=0) | |
| RadarSVG (const RadarSVG &radarSvg) | |
| void | updateRadarConf (const drain::VariableMap &where) |
| Read meta data related to polar coordinates, that is, geographic configuration of a single radar. | |
| void | updateCartesianConf (const drain::VariableMap &where) |
| Read meta data related to Cartesian data, that is, geographic configuration of a radar composite. | |
| void | updateCartesianConf (const Composite &comp) |
| void | setRadialResolution (int n) |
| Number of "sectors" in a sphere. | |
| void | getCubicBezierConf (CubicBezierConf &conf, int n) const |
| void | getCubicBezierConf (CubicBezierConf &conf, double angleStartR, double angleEndR) const |
| void | convert (double radius, double azimuth, drain::Point2D< int > &imgPoint) const |
| void | polarToMeters (double radius, double azimuth, drain::Point2D< double > &geoPoint) const |
| void | radarGeoToCompositeImage (drain::Point2D< double > &radarPoint, drain::Point2D< int > &imagePoint) const |
| void | moveTo (drain::svgPATH &elem, drain::Point2D< int > &imgPoint, double radiusM, double azimuthR) const |
| Move to image point at (radius, azimuth) | |
| void | moveTo (drain::svgPATH &elem, double radius, double azimuth) const |
| void | lineTo (drain::svgPATH &elem, double radius, double azimuth) const |
| void | lineTo (drain::svgPATH &elem, drain::Point2D< int > &imgPoint, double radiusM, double azimuthR) const |
| void | cubicBezierTo (drain::svgPATH &elem, double radiusM, double azimuthStartR, double azimuthEndR) const |
| Single command to draw arc. | |
| void | cubicBezierTo (drain::svgPATH &elem, drain::Point2D< int > &imgPoint, double radiusM, double azimuthStartR, double azimuthEndR) const |
| void | close (drain::svgPATH &elem) const |
| void | drawSector (drain::svgPATH &elem, const drain::Range< double > &radius, const drain::Range< double > &azimuthR={0.0, 0.0}) const |
| Convenience: draw sector, starting from radius.min, ending at radius.max, in azimuth range azimuthR.min ... azimuthR.max. | |
| void | drawCircle (drain::svgPATH &elem, const drain::Range< double > &radius) const |
| Convenience: draw circle (disk or annulus) | |
Static Public Member Functions | |
| static drain::image::TreeSVG & | getOverlayGroup (drain::image::TreeSVG &svgDoc) |
| Sets some CSS properties applicable in radar graphics (grids, sectors). | |
Public Attributes | |
| PolarRadarConf | radarProj |
| drain::image::GeoFrame | geoFrame |
| If r is inside +/-100% = [-1.0,1.0], return that portion of maximum range, else the argument as such. | |
| CubicBezierConf | conf |
Protected Attributes | |
| int | radialBezierResolution |
Vector graphics for both composites and single radar data (polar coordinates).
This class utilizes SVG elements supporting free draw, especially POLYGON and PATH.
As geographic projections distort lines, arcs and angles, Bezier curves (PATH) are used.
| void cubicBezierTo | ( | drain::svgPATH & | elem, |
| double | radiusM, | ||
| double | azimuthStartR, | ||
| double | azimuthEndR | ||
| ) | const |
Single command to draw arc.
| drain::Point2D<int> | & imgPoint - starting point, should be "already" compatible with (radiusM, azimutthStartR) |
| void cubicBezierTo | ( | drain::svgPATH & | elem, |
| drain::Point2D< int > & | imgPoint, | ||
| double | radiusM, | ||
| double | azimuthStartR, | ||
| double | azimuthEndR | ||
| ) | const |
| drain::Point2D<int> | & imgPoint - starting point, should be "already" compatible with (radiusM, azimutthStartR) |
|
inline |
Convenience: draw circle (disk or annulus)
If (radius.min == radius.max), dist
|
static |
Sets some CSS properties applicable in radar graphics (grids, sectors).
Creates a style element only if it does not exist already.
More general style is obtained with RackSVG::getStyle(). Get (create) group dedicated for layers drawn over radar data
| void updateCartesianConf | ( | const drain::VariableMap & | where | ) |
Read meta data related to Cartesian data, that is, geographic configuration of a radar composite.
This command can be used together with configurePolar().
| void updateRadarConf | ( | const drain::VariableMap & | where | ) |
Read meta data related to polar coordinates, that is, geographic configuration of a single radar.
This command can be used together with configureCartesian().
| drain::image::GeoFrame geoFrame |
If r is inside +/-100% = [-1.0,1.0], return that portion of maximum range, else the argument as such.
Geographic extent and projection (Cartesian)
1.9.8