RAVE
pytransform.h File Reference

Python version of the Transform API. More...

#include "transform.h"

Go to the source code of this file.

Classes

struct  PyTransform
 The transformator. More...
 

Macros

#define PyTransform_Type_NUM   0
 index for Type
 
#define PyTransform_GetNative_NUM   1
 index for GetNative fp
 
#define PyTransform_GetNative_RETURN   Transform_t*
 Return type for GetNative.
 
#define PyTransform_GetNative_PROTO   (PyTransform*)
 Argument prototype for GetNative.
 
#define PyTransform_New_NUM   2
 index for New fp
 
#define PyTransform_New_RETURN   PyTransform*
 Return type for New.
 
#define PyTransform_New_PROTO   (Transform_t*)
 Argument prototype for New.
 
#define PyTransform_API_pointers   3
 total number of C API pointers
 
#define PyTransform_CAPSULE_NAME   "_transform._C_API"
 
#define PyTransform_GetNative    (*(PyTransform_GetNative_RETURN (*)PyTransform_GetNative_PROTO) PyTransform_API[PyTransform_GetNative_NUM])
 Returns a pointer to the internal polar scan, remember to release the reference when done with the object.
 
#define PyTransform_New    (*(PyTransform_New_RETURN (*)PyTransform_New_PROTO) PyTransform_API[PyTransform_New_NUM])
 Creates a new polar scan instance.
 
#define PyTransform_Check(op)
 Checks if the object is a python transform instance.
 
#define PyTransform_Type   (*(PyTypeObject*)PyTransform_API[PyTransform_Type_NUM])
 
#define import_pytransform()
 Imports the PyArea module (like import _transform in python).
 

Detailed Description

Python version of the Transform API.

Author
Anders Henja (Swedish Meteorological and Hydrological Institute, SMHI)
Date
2009-12-10

Macro Definition Documentation

◆ import_pytransform

#define import_pytransform ( )
Value:
PyTransform_API = (void **)PyCapsule_Import(PyTransform_CAPSULE_NAME, 1);

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

◆ PyTransform_API_pointers

#define PyTransform_API_pointers   3

total number of C API pointers

◆ PyTransform_Check

#define PyTransform_Check ( op)
Value:
(Py_TYPE(op) == &PyTransform_Type)

Checks if the object is a python transform instance.

◆ PyTransform_GetNative

#define PyTransform_GetNative    (*(PyTransform_GetNative_RETURN (*)PyTransform_GetNative_PROTO) PyTransform_API[PyTransform_GetNative_NUM])

Returns a pointer to the internal polar scan, remember to release the reference when done with the object.

(RAVE_OBJECT_RELEASE).

◆ PyTransform_GetNative_NUM

#define PyTransform_GetNative_NUM   1

index for GetNative fp

◆ PyTransform_GetNative_PROTO

#define PyTransform_GetNative_PROTO   (PyTransform*)

Argument prototype for GetNative.

◆ PyTransform_GetNative_RETURN

#define PyTransform_GetNative_RETURN   Transform_t*

Return type for GetNative.

◆ PyTransform_New

#define PyTransform_New    (*(PyTransform_New_RETURN (*)PyTransform_New_PROTO) PyTransform_API[PyTransform_New_NUM])

Creates a new polar scan instance.

Release this object with Py_DECREF.

Parameters
[in]scan- the PolarScan_t intance.
Returns
the PyTransform instance.

◆ PyTransform_New_NUM

#define PyTransform_New_NUM   2

index for New fp

◆ PyTransform_New_PROTO

#define PyTransform_New_PROTO   (Transform_t*)

Argument prototype for New.

◆ PyTransform_New_RETURN

#define PyTransform_New_RETURN   PyTransform*

Return type for New.

◆ PyTransform_Type_NUM

#define PyTransform_Type_NUM   0

index for Type