VTK  9.0.1
vtkFortran.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkFortran.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
15 
40 #ifndef vtkFortran_h
41 #define vtkFortran_h
42 
43 #define VTK_FORTRAN_NAME(name, NAME) name##__
44 
45 #define VTK_FORTRAN_ARG_STRING(__arg) const char *__arg##_string, unsigned int __arg##_length
46 
47 #define VTK_FORTRAN_REF_STRING_POINTER(__arg) __arg##_string
48 
49 #define VTK_FORTRAN_REF_STRING_LENGTH(__arg) __arg##_length
50 
51 #define VTK_FORTRAN_ARG_INTEGER4(data) int* data
52 
53 #define VTK_FORTRAN_ARG_REAL4_ARRAY_1D(array) float* array
54 
55 #define VTK_FORTRAN_ARG_INTEGER8(size) vtkIdType* size
56 
57 #define VTK_FORTRAN_REF_REAL4_ARRAY_1D(array) array
58 
59 #define VTK_FORTRAN_ARG_INTEGER8_ARRAY_1D(array) vtkIdType* array
60 
61 #define VTK_FORTRAN_REF_INTEGER8_ARRAY_1D(array) array
62 
63 #define VTK_FORTRAN_REF_INTEGER4(data) *data
64 
65 #define VTK_FORTRAN_REF_INTEGER8(data) *data
66 
67 #define VTK_FORTRAN_ARG_INTEGER4_ARRAY_1D(array) int* array
68 
69 #define VTK_FORTRAN_ARG_REAL8(t) double* t
70 
71 #define VTK_FORTRAN_REF_REAL8(t) *t
72 
73 #define VTK_FORTRAN_ARG_INT4(n) int* n
74 
75 #define VTK_FORTRAN_REF_INT4(n) *n
76 
77 #endif