0027349: XtControl_Reader is not thread-safe
[occt.git] / src / InterfaceGraphic / InterfaceGraphic_telem.hxx
CommitLineData
b311480e 1// Copyright (c) 1991-1999 Matra Datavision
973c2be1 2// Copyright (c) 1999-2014 OPEN CASCADE SAS
b311480e 3//
973c2be1 4// This file is part of Open CASCADE Technology software library.
b311480e 5//
d5f74e42 6// This library is free software; you can redistribute it and/or modify it under
7// the terms of the GNU Lesser General Public License version 2.1 as published
973c2be1 8// by the Free Software Foundation, with special exception defined in the file
9// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
10// distribution for complete text of the license and disclaimer of any warranty.
b311480e 11//
973c2be1 12// Alternatively, this file may be used under the terms of Open CASCADE
13// commercial license or contractual agreement.
b311480e 14
27eed937 15#ifndef INTERFACEGRAPHIC_TELEM_H
16#define INTERFACEGRAPHIC_TELEM_H
7fd59977 17
18#include <Standard.hxx>
1c35b92f 19#include <Standard_DefineAlloc.hxx>
7fd59977 20#include <InterfaceGraphic_tgl_all.hxx>
21#include <stdlib.h>
22
7fd59977 23struct TEL_TEXTURE_COORD
24{
25 float xy[2];
1c35b92f 26 DEFINE_STANDARD_ALLOC
7fd59977 27};
28
29typedef TEL_TEXTURE_COORD* tel_texture_coord;
30
b8ddfc2f 31class TEL_POINT
7fd59977 32{
b8ddfc2f 33 public:
34 float xyz[3];
1c35b92f 35 DEFINE_STANDARD_ALLOC
7fd59977 36};
37typedef TEL_POINT* tel_point;
38
39struct TEL_COLOUR
40{
41 /* OCC8854: san -- number of color components increased to include alpha value */
42 float rgb[4];
1c35b92f 43 DEFINE_STANDARD_ALLOC
7fd59977 44};
45typedef TEL_COLOUR* tel_colour;
46
3b1817a9 47typedef enum
7fd59977 48{
3b1817a9 49 TelCullUndefined = -1,
50 TelCullNone = 0,
51 TelCullFront,
7fd59977 52 TelCullBack
53} TelCullMode;
54
7fd59977 55/* Standard Hatch Styles */
56#define TEL_HS_SOLID 0
57#define TEL_HS_CROSS 1
58#define TEL_HS_CROSS_SPARSE 2
59#define TEL_HS_GRID 3
60#define TEL_HS_GRID_SPARSE 4
61#define TEL_HS_DIAG_45 5
62#define TEL_HS_DIAG_135 6
63#define TEL_HS_HORIZONTAL 7
64#define TEL_HS_VERTICAL 8
65#define TEL_HS_DIAG_45_SPARSE 9
66#define TEL_HS_DIAG_135_SPARSE 10
67#define TEL_HS_HORIZONTAL_SPARSE 11
68#define TEL_HS_VERTICAL_SPARSE 12
69
70#define TEL_HS_USER_DEF_START 15
71
7fd59977 72/* Standard Lighting Models */
73#define TEL_FRONT_BACK_LM 1
74
75/* Standard Materials */
76#define TEL_FRONT_MATERIAL 1
77#define TEL_BACK_MATERIAL 2
78
7fd59977 79struct TEL_POFFSET_PARAM
80{
81 int mode;
82 float factor;
83 float units;
1c35b92f 84 DEFINE_STANDARD_ALLOC
7fd59977 85};
86typedef TEL_POFFSET_PARAM* tel_poffset_param;
7fd59977 87
7fd59977 88#endif /* INTERFACEGRAPHIC_TELEM_H */