0024192: Adding support for shaders to OCCT visualization toolkit
[occt.git] / src / Graphic3d / Graphic3d_CGroup.hxx
... / ...
CommitLineData
1// Copyright (c) 1995-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#ifndef _Graphic3d_CGroup_HeaderFile
20#define _Graphic3d_CGroup_HeaderFile
21
22#include <Aspect_TypeOfMarker.hxx>
23#include <InterfaceGraphic_Visual3d.hxx>
24#include <Graphic3d_CTexture.hxx>
25#include <Graphic3d_MarkerImage_Handle.hxx>
26#include <Graphic3d_ShaderProgram_Handle.hxx>
27
28class Graphic3d_CStructure;
29
30class CALL_DEF_CONTEXTFILLAREA
31{
32
33public:
34
35 CALL_DEF_CONTEXTFILLAREA()
36 : IsDef (0),
37 IsSet (0),
38 Style (0),
39 LineType (0),
40 Width (0.0f),
41 Hatch (0),
42 Distinguish (0),
43 BackFace (0),
44 Edge (0),
45 PolygonOffsetMode (0),
46 PolygonOffsetFactor (0.0f),
47 PolygonOffsetUnits (0.0f)
48 {
49 //
50 }
51
52public:
53
54 int IsDef;
55
56 int IsSet;
57
58 int Style;
59
60 CALL_DEF_COLOR IntColor;
61 CALL_DEF_COLOR BackIntColor;
62 CALL_DEF_COLOR EdgeColor;
63
64 int LineType;
65
66 float Width;
67
68 int Hatch;
69
70 int Distinguish;
71 int BackFace;
72
73 int Edge;
74
75 CALL_DEF_MATERIAL Front;
76 CALL_DEF_MATERIAL Back;
77
78 Graphic3d_CTexture Texture;
79
80 int PolygonOffsetMode;
81 float PolygonOffsetFactor;
82 float PolygonOffsetUnits;
83
84 Handle(Graphic3d_ShaderProgram) ShaderProgram;
85
86};
87
88class CALL_DEF_CONTEXTMARKER
89{
90public:
91
92 CALL_DEF_CONTEXTMARKER()
93 : IsDef (0),
94 IsSet (0),
95 MarkerType (Aspect_TOM_POINT),
96 Scale (0),
97 MarkerImage (NULL)
98 {
99 //
100 }
101
102public:
103
104 Standard_Integer IsDef;
105 Standard_Integer IsSet;
106 CALL_DEF_COLOR Color;
107 Aspect_TypeOfMarker MarkerType;
108 Standard_ShortReal Scale;
109 Handle(Graphic3d_MarkerImage) MarkerImage;
110 Handle(Graphic3d_ShaderProgram) ShaderProgram;
111
112};
113
114class Graphic3d_CGroup
115{
116
117public:
118
119 void* ptrGroup;
120
121 CALL_DEF_CONTEXTLINE ContextLine;
122 CALL_DEF_CONTEXTFILLAREA ContextFillArea;
123 CALL_DEF_CONTEXTMARKER ContextMarker;
124 CALL_DEF_CONTEXTTEXT ContextText;
125
126 Graphic3d_CStructure* Struct;
127
128 CALL_DEF_PICKID PickId;
129
130};
131
132const Handle(Standard_Type)& TYPE(Graphic3d_CGroup);
133
134#endif // Graphic3d_CGroup_HeaderFile