ROPO
|
#include "rave_fmi_image.h"
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); |
#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.
#define PyFmiImage_API_pointers 3 |
number of type and function pointers
Definition at line 48 of file pyfmiimage.h.
#define PyFmiImage_CAPSULE_NAME "_fmiimage._C_API" |
Definition at line 50 of file pyfmiimage.h.
#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.
#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.
#define PyFmiImage_GetNative_NUM 1 |
index of GetNative
Definition at line 40 of file pyfmiimage.h.
#define PyFmiImage_GetNative_PROTO (PyFmiImage*) |
arguments for GetNative
Definition at line 42 of file pyfmiimage.h.
#define PyFmiImage_GetNative_RETURN RaveFmiImage_t* |
return type for GetNative
Definition at line 41 of file pyfmiimage.h.
#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.
[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 |
Definition at line 86 of file pyfmiimage.h.
#define PyFmiImage_New_NUM 2 |
index of New
Definition at line 44 of file pyfmiimage.h.
#define PyFmiImage_New_PROTO (RaveFmiImage_t*, int, int) |
arguments for New
Definition at line 46 of file pyfmiimage.h.
#define PyFmiImage_New_RETURN PyFmiImage* |
return type for New
Definition at line 45 of file pyfmiimage.h.
#define PyFmiImage_Type (*(PyTypeObject*)PyFmiImage_API[PyFmiImage_Type_NUM]) |
Definition at line 96 of file pyfmiimage.h.
#define PyFmiImage_Type_NUM 0 |
index of type
Definition at line 38 of file pyfmiimage.h.