Test for 0022778: Bug in BRepMesh
[occt.git] / src / InterfaceGraphic / InterfaceGraphic_Aspect.hxx
1 // Copyright (c) 1991-1999 Matra Datavision
2 // Copyright (c) 1999-2012 OPEN CASCADE SAS
3 //
4 // The content of this file is subject to the Open CASCADE Technology Public
5 // License Version 6.5 (the "License"). You may not use the content of this file
6 // except in compliance with the License. Please obtain a copy of the License
7 // at http://www.opencascade.org and read it completely before using this file.
8 //
9 // The Initial Developer of the Original Code is Open CASCADE S.A.S., having its
10 // main offices at: 1, place des Freres Montgolfier, 78280 Guyancourt, France.
11 //
12 // The Original Code and all software distributed under the License is
13 // distributed on an "AS IS" basis, without warranty of any kind, and the
14 // Initial Developer hereby disclaims all such warranties, including without
15 // limitation, any warranties of merchantability, fitness for a particular
16 // purpose or non-infringement. Please see the License for the specific terms
17 // and conditions governing the rights and limitations under the License.
18
19
20 #ifndef InterfaceGraphic_AspectHeader
21 #define InterfaceGraphic_AspectHeader
22
23 #ifndef IMP100701
24 #define IMP100701 /* GG Add depth field in the bitmap structure */
25 #endif
26
27 #ifndef RIC120302
28 #define RIC120302       /*GG Add NEW field in CALL_DEF_WINDOW structure
29 //      to registred parent window ID 
30 //      Change Aspect_Handle to Aspect_Drawable for
31 //      a more correct understanding.
32 */
33 #endif
34
35 #include <Aspect_Drawable.hxx>
36 #include <Aspect_RenderingContext.hxx>
37
38 typedef struct {
39   int mapped;
40 } EXT_WINDOW ;
41
42 /* WINDOW */
43
44 typedef struct {
45
46   int IsDefined;
47
48   Aspect_Drawable XWindow;
49
50 #ifdef RIC120302
51   Aspect_Drawable XParentWindow;
52 #endif
53
54   EXT_WINDOW *ext_data;
55
56   struct {
57     float xm, ym, xM, yM;
58   } Position;
59
60   float dx, dy;
61
62   char *Title;
63
64   char *Icon;
65
66   struct {
67     float r, g, b;
68   } Background;
69
70 } CALL_DEF_WINDOW;
71
72
73 typedef struct {
74   int listIndex;
75   void*  layerData;
76 } CALL_DEF_PTRLAYER, *call_def_ptrLayer;
77
78
79 /* LAYER */
80
81 typedef struct {
82   CALL_DEF_PTRLAYER* ptrLayer;
83   int layerType;
84   int attach;
85   int sizeDependent;
86   float ortho[4];
87   float viewport[2];
88
89 } CALL_DEF_LAYER;
90
91 #endif /* InterfaceGraphic_AspectHeader */