ROPO
Loading...
Searching...
No Matches
pyfmiimage.h File Reference
#include "rave_fmi_image.h"
Include dependency graph for pyfmiimage.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  PyFmiImage
 

Macros

#define PyFmiImage_Type_NUM   0
 
#define PyFmiImage_GetNative_NUM   1
 
#define PyFmiImage_GetNative_RETURN   RaveFmiImage_t*
 
#define PyFmiImage_GetNative_PROTO   (PyFmiImage*)
 
#define PyFmiImage_New_NUM   2
 
#define PyFmiImage_New_RETURN   PyFmiImage*
 
#define PyFmiImage_New_PROTO   (RaveFmiImage_t*, int, int)
 
#define PyFmiImage_API_pointers   3
 
#define PyFmiImage_CAPSULE_NAME   "_fmiimage._C_API"
 
#define PyFmiImage_GetNative    (*(PyFmiImage_GetNative_RETURN (*)PyFmiImage_GetNative_PROTO) PyFmiImage_API[PyFmiImage_GetNative_NUM])
 
#define PyFmiImage_New    (*(PyFmiImage_New_RETURN (*)PyFmiImage_New_PROTO) PyFmiImage_API[PyFmiImage_New_NUM])
 
#define PyFmiImage_Check(op)    (Py_TYPE(op) == &PyFmiImage_Type)
 
#define PyFmiImage_Type   (*(PyTypeObject*)PyFmiImage_API[PyFmiImage_Type_NUM])
 
#define import_fmiimage()    PyFmiImage_API = (void **)PyCapsule_Import(PyFmiImage_CAPSULE_NAME, 1);
 

Detailed Description

Python version of the fmi image.

Author
Anders Henja (Swedish Meteorological and Hydrological Institute, SMHI)
Date
2011-08-31

Definition in file pyfmiimage.h.

Macro Definition Documentation

◆ import_fmiimage

#define import_fmiimage ( )     PyFmiImage_API = (void **)PyCapsule_Import(PyFmiImage_CAPSULE_NAME, 1);

Imports the PyArea module (like import _area in python).

Definition at line 101 of file pyfmiimage.h.

◆ PyFmiImage_API_pointers

#define PyFmiImage_API_pointers   3

number of type and function pointers

Definition at line 48 of file pyfmiimage.h.

◆ PyFmiImage_CAPSULE_NAME

#define PyFmiImage_CAPSULE_NAME   "_fmiimage._C_API"

Definition at line 50 of file pyfmiimage.h.

◆ PyFmiImage_Check

#define PyFmiImage_Check ( op)     (Py_TYPE(op) == &PyFmiImage_Type)

Checks if the object is a python fmi image.

Definition at line 92 of file pyfmiimage.h.

◆ PyFmiImage_GetNative

#define PyFmiImage_GetNative    (*(PyFmiImage_GetNative_RETURN (*)PyFmiImage_GetNative_PROTO) PyFmiImage_API[PyFmiImage_GetNative_NUM])

Returns a pointer to the internal composite, remember to release the reference when done with the object. (RAVE_OBJECT_RELEASE).

Definition at line 74 of file pyfmiimage.h.

◆ PyFmiImage_GetNative_NUM

#define PyFmiImage_GetNative_NUM   1

index of GetNative

Definition at line 40 of file pyfmiimage.h.

◆ PyFmiImage_GetNative_PROTO

#define PyFmiImage_GetNative_PROTO   (PyFmiImage*)

arguments for GetNative

Definition at line 42 of file pyfmiimage.h.

◆ PyFmiImage_GetNative_RETURN

#define PyFmiImage_GetNative_RETURN   RaveFmiImage_t*

return type for GetNative

Definition at line 41 of file pyfmiimage.h.

◆ PyFmiImage_New

#define PyFmiImage_New    (*(PyFmiImage_New_RETURN (*)PyFmiImage_New_PROTO) PyFmiImage_API[PyFmiImage_New_NUM])

Creates a new fmi image instance. Release this object with Py_DECREF. If a FmiImage_t instance is provided and this instance already is bound to a python instance, this instance will be increfed and returned.

Parameters
[in]image- the RaveFmiImage_t intance.
[in]width- the width, only used if image == NULL and width > 0 and height > 0
[in]height- the height, only used if image == NULL and width > 0 and height > 0
Returns
the PyFmiImage instance.

Definition at line 86 of file pyfmiimage.h.

◆ PyFmiImage_New_NUM

#define PyFmiImage_New_NUM   2

index of New

Definition at line 44 of file pyfmiimage.h.

◆ PyFmiImage_New_PROTO

#define PyFmiImage_New_PROTO   (RaveFmiImage_t*, int, int)

arguments for New

Definition at line 46 of file pyfmiimage.h.

◆ PyFmiImage_New_RETURN

#define PyFmiImage_New_RETURN   PyFmiImage*

return type for New

Definition at line 45 of file pyfmiimage.h.

◆ PyFmiImage_Type

#define PyFmiImage_Type   (*(PyTypeObject*)PyFmiImage_API[PyFmiImage_Type_NUM])

Definition at line 96 of file pyfmiimage.h.

◆ PyFmiImage_Type_NUM

#define PyFmiImage_Type_NUM   0

index of type

Definition at line 38 of file pyfmiimage.h.