RAVE
|
Defines the functions available when working with cartesian products. More...
#include "cartesianvolume.h"
#include "area.h"
#include "rave_debug.h"
#include "rave_alloc.h"
#include "rave_datetime.h"
#include "rave_data2d.h"
#include "raveobject_hashtable.h"
#include "rave_utilities.h"
#include "rave_attribute_table.h"
#include <string.h>
Classes | |
struct | _CartesianVolume_t |
Represents the cartesian volume. More... | |
Functions | |
int | CartesianVolume_setTime (CartesianVolume_t *cvol, const char *value) |
Sets the nominal time. | |
const char * | CartesianVolume_getTime (CartesianVolume_t *cvol) |
Returns the nominal time. | |
int | CartesianVolume_setDate (CartesianVolume_t *cvol, const char *value) |
Sets the nominal date. | |
const char * | CartesianVolume_getDate (CartesianVolume_t *cvol) |
Returns the nominal date. | |
int | CartesianVolume_setSource (CartesianVolume_t *cvol, const char *value) |
Sets the source. | |
const char * | CartesianVolume_getSource (CartesianVolume_t *cvol) |
Returns the source. | |
int | CartesianVolume_setObjectType (CartesianVolume_t *cvol, Rave_ObjectType type) |
Sets the object type this cartesian volume should represent. | |
Rave_ObjectType | CartesianVolume_getObjectType (CartesianVolume_t *cvol) |
Returns the object type this cartesian volume represents. | |
void | CartesianVolume_setProjection (CartesianVolume_t *cvol, Projection_t *projection) |
Sets the projection that defines this cartesian volume. | |
Projection_t * | CartesianVolume_getProjection (CartesianVolume_t *cvol) |
Returns a copy of the projection that is used for this cartesian volume. | |
const char * | CartesianVolume_getProjectionString (CartesianVolume_t *cvol) |
Returns the projection string defining this cartesian volume. | |
void | CartesianVolume_setXScale (CartesianVolume_t *cvol, double xscale) |
Sets the xscale. | |
double | CartesianVolume_getXScale (CartesianVolume_t *cvol) |
Returns the xscale. | |
void | CartesianVolume_setYScale (CartesianVolume_t *cvol, double yscale) |
Sets the yscale. | |
double | CartesianVolume_getYScale (CartesianVolume_t *cvol) |
Returns the yscale. | |
void | CartesianVolume_setZScale (CartesianVolume_t *cvol, double zscale) |
Sets the zscale. | |
double | CartesianVolume_getZScale (CartesianVolume_t *cvol) |
Returns the zscale. | |
long | CartesianVolume_getXSize (CartesianVolume_t *cvol) |
Returns the xsize. | |
long | CartesianVolume_getYSize (CartesianVolume_t *cvol) |
Returns the ysize. | |
long | CartesianVolume_getZSize (CartesianVolume_t *cvol) |
Returns the zsize, should be same as number of images in volume. | |
void | CartesianVolume_setZStart (CartesianVolume_t *cvol, double zstart) |
Sets the zstart. | |
double | CartesianVolume_getZStart (CartesianVolume_t *cvol) |
Returns the zstart. | |
void | CartesianVolume_setAreaExtent (CartesianVolume_t *cvol, double llX, double llY, double urX, double urY) |
Sets the area extent for this cartesian product. | |
void | CartesianVolume_getAreaExtent (CartesianVolume_t *cvol, double *llX, double *llY, double *urX, double *urY) |
Gets the area extent for this cartesian product. | |
int | CartesianVolume_addImage (CartesianVolume_t *cvol, Cartesian_t *image) |
Adds a cartesian image to the volume. | |
Cartesian_t * | CartesianVolume_getImage (CartesianVolume_t *cvol, int index) |
Returns the image at given index. | |
int | CartesianVolume_getNumberOfImages (CartesianVolume_t *cvol) |
Returns the number of images. | |
int | CartesianVolume_addAttribute (CartesianVolume_t *cvol, RaveAttribute_t *attribute) |
Adds a rave attribute to the volume. | |
int | CartesianVolume_addAttributeVersion (CartesianVolume_t *cvol, RaveAttribute_t *attribute, RaveIO_ODIM_Version version) |
Adds a rave attribute to the volume of specified version. | |
RaveAttribute_t * | CartesianVolume_getAttribute (CartesianVolume_t *cvol, const char *name) |
Returns the rave attribute that is named accordingly. | |
RaveAttribute_t * | CartesianVolume_getAttributeVersion (CartesianVolume_t *cvol, const char *name, RaveIO_ODIM_Version version) |
Returns the rave attribute that is named accordingly. | |
int | CartesianVolume_hasAttribute (CartesianVolume_t *cvol, const char *name) |
Returns if the specified attribute exists in the how-attributes or not. | |
RaveList_t * | CartesianVolume_getAttributeNames (CartesianVolume_t *cvol) |
Returns a list of attribute names. | |
RaveList_t * | CartesianVolume_getAttributeNamesVersion (CartesianVolume_t *cvol, RaveIO_ODIM_Version version) |
Returns a list of attribute names for specified version. | |
RaveObjectList_t * | CartesianVolume_getAttributeValues (CartesianVolume_t *cvol) |
Returns a list of attribute values that should be stored for this volume. | |
RaveObjectList_t * | CartesianVolume_getAttributeValuesVersion (CartesianVolume_t *cvol, RaveIO_ODIM_Version version) |
Returns a list of attribute values in specified version for this volume. | |
Variables | |
RaveCoreObjectType | CartesianVolume_TYPE |
Type definition to use when creating a rave object. | |
Defines the functions available when working with cartesian products.
int CartesianVolume_addAttribute | ( | CartesianVolume_t * | cvol, |
RaveAttribute_t * | attribute ) |
Adds a rave attribute to the volume.
what/date, what/time, what/source, where/lon, where/lat and where/height are handled specially and will be added to respective member instead of stored as attributes. what/date, what/time and what/source must be string. where/lon and where/lat must be double in degrees. where/height must be double in meters.
[in] | cvol | - self |
[in] | attribute | - the attribute |
int CartesianVolume_addAttributeVersion | ( | CartesianVolume_t * | cvol, |
RaveAttribute_t * | attribute, | ||
RaveIO_ODIM_Version | version ) |
Adds a rave attribute to the volume of specified version.
what/date, what/time, what/source, where/lon, where/lat and where/height are handled specially and will be added to respective member instead of stored as attributes. what/date, what/time and what/source must be string. where/lon and where/lat must be double in degrees. where/height must be double in meters. NOTE! This method is usually only used internally.
[in] | cvol | - self |
[in] | attribute | - the attribute |
[in] | version | - the attribute version |
int CartesianVolume_addImage | ( | CartesianVolume_t * | cvol, |
Cartesian_t * | image ) |
Adds a cartesian image to the volume.
The image will automatically be assigned the volumes projection.
[in] | cvol | - self |
[in] | image | - the cartesian image ®return 0 on failure, otherwise success |
void CartesianVolume_getAreaExtent | ( | CartesianVolume_t * | cvol, |
double * | llX, | ||
double * | llY, | ||
double * | urX, | ||
double * | urY ) |
Gets the area extent for this cartesian product.
[in] | cvol | - self |
[out] | llX | - lower left X position (may be NULL) |
[out] | llY | - lower left Y position (may be NULL) |
[out] | urX | - upper right X position (may be NULL) |
[out] | urY | - upper right Y position (may be NULL) |
RaveAttribute_t * CartesianVolume_getAttribute | ( | CartesianVolume_t * | cvol, |
const char * | name ) |
Returns the rave attribute that is named accordingly.
[in] | pvol | - self |
[in] | name | - the name of the attribute |
RaveList_t * CartesianVolume_getAttributeNames | ( | CartesianVolume_t * | cvol | ) |
Returns a list of attribute names.
Release with @ref RaveList_freeAndDestroy.
[in] | pvol | - self |
RaveList_t * CartesianVolume_getAttributeNamesVersion | ( | CartesianVolume_t * | cvol, |
RaveIO_ODIM_Version | version ) |
Returns a list of attribute names for specified version.
Release with @ref RaveList_freeAndDestroy. NOTE! This method is usually only used internally.
[in] | pvol | - self |
[in] | version | - the attribute version |
RaveObjectList_t * CartesianVolume_getAttributeValues | ( | CartesianVolume_t * | cvol | ) |
Returns a list of attribute values that should be stored for this volume.
[in] | pvol | - self |
RaveObjectList_t * CartesianVolume_getAttributeValuesVersion | ( | CartesianVolume_t * | cvol, |
RaveIO_ODIM_Version | version ) |
Returns a list of attribute values in specified version for this volume.
NOTE! This method is usually only used internally.
[in] | cvol | - self |
[in] | version | - the attribute version |
RaveAttribute_t * CartesianVolume_getAttributeVersion | ( | CartesianVolume_t * | cvol, |
const char * | name, | ||
RaveIO_ODIM_Version | version ) |
Returns the rave attribute that is named accordingly.
In specified version NOTE! This method is usually only used internally.
[in] | pvol | - self |
[in] | name | - the name of the attribute |
[in] | version | - the attribute version |
const char * CartesianVolume_getDate | ( | CartesianVolume_t * | cvol | ) |
Returns the nominal date.
[in] | cvol | - self |
Cartesian_t * CartesianVolume_getImage | ( | CartesianVolume_t * | cvol, |
int | index ) |
Returns the image at given index.
[in] | cvol | - the volume |
[in] | index | - the index |
int CartesianVolume_getNumberOfImages | ( | CartesianVolume_t * | cvol | ) |
Returns the number of images.
[in] | cvol | - the volume |
Rave_ObjectType CartesianVolume_getObjectType | ( | CartesianVolume_t * | cvol | ) |
Returns the object type this cartesian volume represents.
[in] | cvol | - self |
Projection_t * CartesianVolume_getProjection | ( | CartesianVolume_t * | cvol | ) |
Returns a copy of the projection that is used for this cartesian volume.
I.e. remember to release it.
[in] | cvol | - self |
const char * CartesianVolume_getProjectionString | ( | CartesianVolume_t * | cvol | ) |
Returns the projection string defining this cartesian volume.
[in] | cvol | - self |
const char * CartesianVolume_getSource | ( | CartesianVolume_t * | cvol | ) |
Returns the source.
[in] | cvol | - self |
const char * CartesianVolume_getTime | ( | CartesianVolume_t * | cvol | ) |
Returns the nominal time.
[in] | cvol | - self |
double CartesianVolume_getXScale | ( | CartesianVolume_t * | cvol | ) |
Returns the xscale.
[in] | cvol | - self |
long CartesianVolume_getXSize | ( | CartesianVolume_t * | cvol | ) |
Returns the xsize.
[in] | cvol | - self |
double CartesianVolume_getYScale | ( | CartesianVolume_t * | cvol | ) |
Returns the yscale.
[in] | cvol | - self |
long CartesianVolume_getYSize | ( | CartesianVolume_t * | cvol | ) |
Returns the ysize.
[in] | cvol | - self |
double CartesianVolume_getZScale | ( | CartesianVolume_t * | cvol | ) |
Returns the zscale.
[in] | cvol | - self |
long CartesianVolume_getZSize | ( | CartesianVolume_t * | cvol | ) |
Returns the zsize, should be same as number of images in volume.
[in] | cvol | - self |
double CartesianVolume_getZStart | ( | CartesianVolume_t * | cvol | ) |
Returns the zstart.
[in] | cvol | - self |
int CartesianVolume_hasAttribute | ( | CartesianVolume_t * | cvol, |
const char * | name ) |
Returns if the specified attribute exists in the how-attributes or not.
[in] | cvol | - self |
[in] | name | - the name of the attribute |
void CartesianVolume_setAreaExtent | ( | CartesianVolume_t * | cvol, |
double | llX, | ||
double | llY, | ||
double | urX, | ||
double | urY ) |
Sets the area extent for this cartesian product.
[in] | cvol | - self |
[in] | llX | - lower left X position |
[in] | llY | - lower left Y position |
[in] | urX | - upper right X position |
[in] | urY | - upper right Y position |
int CartesianVolume_setDate | ( | CartesianVolume_t * | cvol, |
const char * | value ) |
Sets the nominal date.
[in] | cvol | - self |
[in] | value | - the date in the format YYYYMMDD |
int CartesianVolume_setObjectType | ( | CartesianVolume_t * | cvol, |
Rave_ObjectType | type ) |
Sets the object type this cartesian volume should represent.
[in] | cvol | - self |
[in] | type | - the object type |
void CartesianVolume_setProjection | ( | CartesianVolume_t * | cvol, |
Projection_t * | projection ) |
Sets the projection that defines this cartesian volume.
[in] | cvol | - self |
[in] | projection | - the projection |
int CartesianVolume_setSource | ( | CartesianVolume_t * | cvol, |
const char * | value ) |
Sets the source.
[in] | cvol | - self |
[in] | value | - the source |
int CartesianVolume_setTime | ( | CartesianVolume_t * | cvol, |
const char * | value ) |
Sets the nominal time.
[in] | cvol | - self |
[in] | value | - the time in the format HHmmss |
void CartesianVolume_setXScale | ( | CartesianVolume_t * | cvol, |
double | xscale ) |
Sets the xscale.
[in] | cvol | - self |
[in] | xscale | - the xscale |
void CartesianVolume_setYScale | ( | CartesianVolume_t * | cvol, |
double | yscale ) |
Sets the yscale.
[in] | cvol | - self |
[in] | yscale | - the yscale |
void CartesianVolume_setZScale | ( | CartesianVolume_t * | cvol, |
double | zscale ) |
Sets the zscale.
[in] | cvol | - self |
[in] | zscale | - the zscale |
void CartesianVolume_setZStart | ( | CartesianVolume_t * | cvol, |
double | zstart ) |
Sets the zstart.
[in] | cvol | - self |
[in] | zstart | - the zstart |
RaveCoreObjectType CartesianVolume_TYPE |
Type definition to use when creating a rave object.