Forward compatibility: flex
[foam-extend-3.2.git] / applications / utilities / postProcessing / dataConversion / foamToTecplot360 / tecio / tecsrc / TEXT.h
blobfae5080fcd5c98c788a5686bb5a50643a1cd466c
1 /*
2 * NOTICE and LICENSE for Tecplot Input/Output Library (TecIO) - OpenFOAM
4 * Copyright (C) 1988-2009 Tecplot, Inc. All rights reserved worldwide.
6 * Tecplot hereby grants OpenCFD limited authority to distribute without
7 * alteration the source code to the Tecplot Input/Output library, known
8 * as TecIO, as part of its distribution of OpenFOAM and the
9 * OpenFOAM_to_Tecplot converter. Users of this converter are also hereby
10 * granted access to the TecIO source code, and may redistribute it for the
11 * purpose of maintaining the converter. However, no authority is granted
12 * to alter the TecIO source code in any form or manner.
14 * This limited grant of distribution does not supersede Tecplot, Inc.'s
15 * copyright in TecIO. Contact Tecplot, Inc. for further information.
17 * Tecplot, Inc.
18 * 3535 Factoria Blvd, Ste. 550
19 * Bellevue, WA 98006, USA
20 * Phone: +1 425 653 1200
21 * http://www.tecplot.com/
25 ******************************************************************
26 ******************************************************************
27 ******* ********
28 ****** (C) 1988-2008 Tecplot, Inc. *******
29 ******* ********
30 ******************************************************************
31 ******************************************************************
34 #if defined EXTERN
35 #undef EXTERN
36 #endif
37 #if defined TEXTMODULE
38 #define EXTERN
39 #else
40 #define EXTERN extern
41 #endif
43 #define _TEXT_H_INCLUDED
45 /* These macros for checking CoordSys_e and Units of text objects (i.e., those associated with the text tool). */
46 #define VALID_TEXT_COORDSYS(sys) (((sys)==CoordSys_Frame)||((sys)==CoordSys_Grid)||((sys)==CoordSys_Grid3D))
47 #define VALID_TEXT_UNITS(units) (((units)==Units_Grid)||((units)==Units_Frame)||((units)==Units_Point))
48 #define VALID_TEXT_COORDSYS_AND_UNITS(pos_sys, size_units) \
49 ( VALID_TEXT_COORDSYS((pos_sys)) && \
50 VALID_TEXT_UNITS((size_units)) && \
51 ! ((pos_sys) == CoordSys_Frame && (size_units) == Units_Grid) )
53 /* This is for any type of font in Tecplot. */
54 #define VALID_FONT_SIZEUNITS(units) (((units)==Units_Grid)||((units)==Units_Frame)||((units)==Units_Point)||(units)==Units_AxisPercentage)
56 #if defined TECPLOTKERNEL
57 /* CORE SOURCE CODE REMOVED */
58 #if 0 /* contract template */
59 #endif
60 #if 0 /* contract template */
61 #endif
62 #endif /* TECPLOTKERNEL */