0026033: Coding rules - get rid from _Handle classes
[occt.git] / src / Graphic3d / Graphic3d_CAspectFillArea.hxx
1 // Copyright (c) 1995-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 _Graphic3d_CAspectFillArea_HeaderFile
16 #define _Graphic3d_CAspectFillArea_HeaderFile
17
18 #include <InterfaceGraphic_Visual3d.hxx>
19 #include <Graphic3d_CTexture.hxx>
20 #include <Graphic3d_ShaderProgram.hxx>
21
22 class Graphic3d_CAspectFillArea
23 {
24
25 public:
26
27   Graphic3d_CAspectFillArea()
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),
37     PolygonOffsetMode   (0),
38     PolygonOffsetFactor (0.0f),
39     PolygonOffsetUnits  (0.0f)
40   {
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));
46   }
47
48 public:
49
50   int IsDef;
51   int IsSet;
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
74   int   PolygonOffsetMode;
75   float PolygonOffsetFactor;
76   float PolygonOffsetUnits;
77
78   Handle(Graphic3d_ShaderProgram) ShaderProgram;
79
80 };
81
82 typedef Graphic3d_CAspectFillArea CALL_DEF_CONTEXTFILLAREA;
83
84 #endif // _Graphic3d_CAspectFillArea_HeaderFile