RAVE
|
POO compositing algorithm. More...
#include "poo_composite_algorithm.h"
#include "composite.h"
#include "polarvolume.h"
#include <stdio.h>
#include "raveobject_hashtable.h"
#include "raveobject_list.h"
#include "rave_debug.h"
#include "rave_alloc.h"
#include "rave_datetime.h"
#include <string.h>
Classes | |
struct | _PooCompositeAlgorithm_t |
Represents the cartesian product. More... | |
Functions | |
const char * | PooCompositeAlgorithm_getName (CompositeAlgorithm_t *self) |
Implements the name part of the poo composite algorithm. | |
void | PooCompositeAlgorithm_reset (CompositeAlgorithm_t *self, int x, int y) |
Resets the internals to be able to handle one pixel in the composite. | |
int | PooCompositeAlgorithm_supportsProcess (CompositeAlgorithm_t *self) |
Indicates if this algorithm supports process. | |
int | PooCompositeAlgorithm_process (CompositeAlgorithm_t *self, RaveCoreObject *obj, const char *quantity, double olon, double olat, double dist, RaveValueType *otype, double *ovalue, PolarNavigationInfo *navinfo) |
Implements the processing part of the poo composite algorithm. | |
int | PooCompositeAlgorithm_initialize (CompositeAlgorithm_t *self, struct _Composite_t *composite) |
Initializes self. | |
int | PooCompositeAlgorithm_supportsFillQualityInformation (CompositeAlgorithm_t *self, const char *howtask) |
Returns that this object supports the fillQualityInformation method for howtask = se.smhi.detector.poo. | |
int | PooCompositeAlgorithm_fillQualityInformation (CompositeAlgorithm_t *self, RaveCoreObject *obj, const char *howtask, const char *quantity, RaveField_t *field, long x, long y, PolarNavigationInfo *navinfo, double gain, double offset) |
Fills the quality information in field for howtask values = se.smhi.detector.poo. | |
Variables | |
RaveCoreObjectType | PooCompositeAlgorithm_TYPE |
Type definition to use when creating a rave object. | |
POO compositing algorithm.
int PooCompositeAlgorithm_fillQualityInformation | ( | CompositeAlgorithm_t * | self, |
RaveCoreObject * | obj, | ||
const char * | howtask, | ||
const char * | quantity, | ||
RaveField_t * | field, | ||
long | x, | ||
long | y, | ||
PolarNavigationInfo * | navinfo, | ||
double | gain, | ||
double | offset ) |
Fills the quality information in field for howtask values = se.smhi.detector.poo.
[in] | self | - self |
[in] | obj | - the rave core object, most likely a volume or scan |
[in] | howtask | - the how/task value |
[in] | quantity | - the quantity |
[in] | field | - the rave quality field that should get it's value set |
[in] | x | - the x coordinate in the field |
[in] | y | - the y coordinate in the field |
[in] | navinfo | - the navigation information that was used for the provided obj |
const char * PooCompositeAlgorithm_getName | ( | CompositeAlgorithm_t * | self | ) |
Implements the name part of the poo composite algorithm.
[in] | self | - self |
int PooCompositeAlgorithm_initialize | ( | CompositeAlgorithm_t * | self, |
struct _Composite_t * | composite ) |
Initializes self.
[in] | self | - self |
[in] | composite | - the composite we are working with |
int PooCompositeAlgorithm_process | ( | CompositeAlgorithm_t * | self, |
RaveCoreObject * | obj, | ||
const char * | quantity, | ||
double | olon, | ||
double | olat, | ||
double | dist, | ||
RaveValueType * | otype, | ||
double * | ovalue, | ||
PolarNavigationInfo * | navinfo ) |
Implements the processing part of the poo composite algorithm.
Prior to this function call, the value/type and distance has already been calculated so instead of letting this function calculate these values again they are provided to this function.
[in] | self | - self |
[in] | obj | - the polar object (currently only scan and volume) |
[in] | quantity | - the quantity |
[in] | olon | - the longitude in radians |
[in] | olat | - the latitude in radians |
[in] | dist | - the distance from the radar origin to the given lon/lat. Can be calculated by using the obj as well |
[in,out] | otype | - the type of the data found |
[in,out] | ovalue | - the value of the data found |
[in] | navinfo | - the navigation info for the provided obj/olon/olat |
void PooCompositeAlgorithm_reset | ( | CompositeAlgorithm_t * | self, |
int | x, | ||
int | y ) |
Resets the internals to be able to handle one pixel in the composite.
[in] | self | - self |
[in] | x | - the x coordinate |
[in] | y | - the y coordinate |
int PooCompositeAlgorithm_supportsFillQualityInformation | ( | CompositeAlgorithm_t * | self, |
const char * | howtask ) |
Returns that this object supports the fillQualityInformation method for howtask = se.smhi.detector.poo.
int PooCompositeAlgorithm_supportsProcess | ( | CompositeAlgorithm_t * | self | ) |
Indicates if this algorithm supports process.
RaveCoreObjectType PooCompositeAlgorithm_TYPE |
Type definition to use when creating a rave object.