RAVE
bitmap_generator.c File Reference

Provides functionallity for creating a surrounding bitmap on a composite. More...

#include <bitmap_generator.h>
#include "rave_debug.h"
#include "rave_alloc.h"
#include "raveutil.h"
#include <string.h>

Classes

struct  _BitmapGenerator_t
 Represents the functionality for creating bitmaps. More...
 

Functions

RaveField_tBitmapGenerator_create_surrounding (BitmapGenerator_t *self, CartesianParam_t *param)
 Creates a bitmask that surrounds all radars.
 
RaveField_tBitmapGenerator_create_intersect (BitmapGenerator_t *self, CartesianParam_t *param, const char *qualityFieldName)
 Creates a bitmask that shows the intersection between the radars.
 

Variables

RaveCoreObjectType BitmapGenerator_TYPE
 Type definition to use when creating a rave object.
 

Detailed Description

Provides functionallity for creating a surrounding bitmap on a composite.

Author
Anders Henja (Swedish Meteorological and Hydrological Institute, SMHI)
Date
2016-12-20

Function Documentation

◆ BitmapGenerator_create_intersect()

RaveField_t * BitmapGenerator_create_intersect ( BitmapGenerator_t * self,
CartesianParam_t * param,
const char * qualityFieldName )

Creates a bitmask that shows the intersection between the radars.

Parameters
[in]self- self
[in]param- the cartesian parameter
[in]qualityFieldName- the name of the quality field in the parameter that consists of the radar index
Returns
a field with the intersections defined.

First we work from left to right

And then from up and downwards

◆ BitmapGenerator_create_surrounding()

RaveField_t * BitmapGenerator_create_surrounding ( BitmapGenerator_t * self,
CartesianParam_t * param )

Creates a bitmask that surrounds all radars.

Parameters
[in]self- self
[in]param- the cartesian parameter
Returns
a field with the surrounding bitmask

First we work from left to right

And then up to down

Variable Documentation

◆ BitmapGenerator_TYPE

RaveCoreObjectType BitmapGenerator_TYPE
Initial value:
= {
"BitmapGenerator",
BitmapGenerator_constructor,
BitmapGenerator_destructor,
BitmapGenerator_copyconstructor
}
struct _BitmapGenerator_t BitmapGenerator_t
Defines an object for creating bitmaps.
Definition bitmap_generator.h:36

Type definition to use when creating a rave object.