950197a3ab0e430d0b54d147301def75d9dd7428
[occt.git] / src / InterfaceGraphic / InterfaceGraphic_Graphic3d.hxx
1 // Copyright (c) 1991-1999 Matra Datavision
2 // Copyright (c) 1999-2014 OPEN CASCADE SAS
3 //
4 // This file is part of Open CASCADE Technology software library.
5 //
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
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.
11 //
12 // Alternatively, this file may be used under the terms of Open CASCADE
13 // commercial license or contractual agreement.
14
15 #ifndef InterfaceGraphic_Graphic3dHeader
16 #define InterfaceGraphic_Graphic3dHeader
17
18 #include <InterfaceGraphic_telem.hxx>
19 #include <Standard_Transient.hxx>
20
21 /* COULEUR */
22
23 typedef struct {
24
25         float r, g, b;
26
27 } CALL_DEF_COLOR;
28
29 /* POINT */
30
31 typedef struct {
32
33         float x, y, z;
34
35 } CALL_DEF_POINT;
36
37 /* BOITE ENGLOBANTE */
38
39 typedef struct {
40
41         CALL_DEF_COLOR Color;
42
43         CALL_DEF_POINT Pmin;
44
45         CALL_DEF_POINT Pmax;
46
47 } CALL_DEF_BOUNDBOX;
48
49 /* MATERIAL */
50
51 typedef struct {
52
53         float Ambient;
54         int IsAmbient;
55
56         float Diffuse;
57         int IsDiffuse;
58
59         float Specular;
60         int IsSpecular;
61
62         float Emission;
63         int IsEmission;
64
65         float Shininess;
66         float Transparency;
67         float RefractionIndex;
68
69         float EnvReflexion;
70
71         int IsPhysic;
72
73         /* Attribut couleur eclairage */
74         CALL_DEF_COLOR ColorAmb, ColorDif, ColorSpec, ColorEms, Color;
75
76
77 } CALL_DEF_MATERIAL;
78
79 /* Transform persistence struct */
80 typedef struct
81 {
82         int            IsSet;
83         int            IsDef;
84         int            Flag;
85         CALL_DEF_POINT Point;
86 } CALL_DEF_TRANSFORM_PERSISTENCE;
87
88 /* BOUNDING BOX */
89
90 typedef struct {
91
92         float XMin;
93         float YMin;
94         float ZMin;
95
96         float XMax;
97         float YMax;
98         float ZMax;
99
100 } CALL_DEF_BOUNDS;
101
102 /* USERDRAW DATA */
103
104 typedef struct {
105
106         void            *Data;
107         CALL_DEF_BOUNDS *Bounds;
108
109 } CALL_DEF_USERDRAW;
110
111 #endif /* InterfaceGraphic_Graphic3dHeader */