b311480e |
1 | // Copyright (c) 1995-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 | |
b64d84be |
15 | #ifndef _Graphic3d_CAspectFillArea_HeaderFile |
16 | #define _Graphic3d_CAspectFillArea_HeaderFile |
7fd59977 |
17 | |
bf75be98 |
18 | #include <InterfaceGraphic_Visual3d.hxx> |
19 | #include <Graphic3d_CTexture.hxx> |
30f0ad28 |
20 | #include <Graphic3d_ShaderProgram_Handle.hxx> |
bf75be98 |
21 | |
b64d84be |
22 | class Graphic3d_CAspectFillArea |
bf75be98 |
23 | { |
24 | |
25 | public: |
26 | |
b64d84be |
27 | Graphic3d_CAspectFillArea() |
bf75be98 |
28 | : IsDef (0), |
29 | IsSet (0), |
30 | Style (0), |
31 | LineType (0), |
32 | Width (0.0f), |
33 | Hatch (0), |
34 | Distinguish (0), |
35 | BackFace (0), |
36 | Edge (0), |
bf75be98 |
37 | PolygonOffsetMode (0), |
38 | PolygonOffsetFactor (0.0f), |
39 | PolygonOffsetUnits (0.0f) |
40 | { |
b64d84be |
41 | memset (&IntColor, 0, sizeof(IntColor)); |
42 | memset (&BackIntColor, 0, sizeof(BackIntColor)); |
43 | memset (&EdgeColor, 0, sizeof(EdgeColor)); |
44 | memset (&Front, 0, sizeof(Front)); |
45 | memset (&Back, 0, sizeof(Back)); |
bf75be98 |
46 | } |
47 | |
48 | public: |
49 | |
50 | int IsDef; |
bf75be98 |
51 | int IsSet; |
bf75be98 |
52 | int Style; |
53 | |
54 | CALL_DEF_COLOR IntColor; |
55 | CALL_DEF_COLOR BackIntColor; |
56 | CALL_DEF_COLOR EdgeColor; |
57 | |
58 | int LineType; |
59 | |
60 | float Width; |
61 | |
62 | int Hatch; |
63 | |
64 | int Distinguish; |
65 | int BackFace; |
66 | |
67 | int Edge; |
68 | |
69 | CALL_DEF_MATERIAL Front; |
70 | CALL_DEF_MATERIAL Back; |
71 | |
72 | Graphic3d_CTexture Texture; |
73 | |
bf75be98 |
74 | int PolygonOffsetMode; |
75 | float PolygonOffsetFactor; |
76 | float PolygonOffsetUnits; |
77 | |
30f0ad28 |
78 | Handle(Graphic3d_ShaderProgram) ShaderProgram; |
bf75be98 |
79 | |
bf75be98 |
80 | }; |
7fd59977 |
81 | |
b64d84be |
82 | typedef Graphic3d_CAspectFillArea CALL_DEF_CONTEXTFILLAREA; |
7fd59977 |
83 | |
b64d84be |
84 | #endif // _Graphic3d_CAspectFillArea_HeaderFile |