0027349: XtControl_Reader is not thread-safe
[occt.git] / src / InterfaceGraphic / InterfaceGraphic_Graphic3d.hxx
CommitLineData
b311480e 1// Copyright (c) 1991-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
7fd59977 15#ifndef InterfaceGraphic_Graphic3dHeader
16#define InterfaceGraphic_Graphic3dHeader
17
871fa103 18#include <InterfaceGraphic_telem.hxx>
b7cd4ba7 19#include <Graphic3d_BndBox4f.hxx>
189f85a3 20#include <Graphic3d_BSDF.hxx>
bf75be98 21#include <Standard_Transient.hxx>
7fd59977 22
7fd59977 23/* COULEUR */
24
25typedef struct {
26
189f85a3 27 Standard_ShortReal r;
28 Standard_ShortReal g;
29 Standard_ShortReal b;
7fd59977 30
31} CALL_DEF_COLOR;
32
7fd59977 33/* POINT */
34
35typedef struct {
36
189f85a3 37 Standard_ShortReal x;
38 Standard_ShortReal y;
39 Standard_ShortReal z;
7fd59977 40
41} CALL_DEF_POINT;
42
7fd59977 43/* MATERIAL */
44
45typedef struct {
46
189f85a3 47 Standard_ShortReal Ambient;
48 Standard_Integer IsAmbient;
7fd59977 49
189f85a3 50 Standard_ShortReal Diffuse;
51 Standard_Integer IsDiffuse;
7fd59977 52
189f85a3 53 Standard_ShortReal Specular;
54 Standard_Integer IsSpecular;
7fd59977 55
189f85a3 56 Standard_ShortReal Emission;
57 Standard_Integer IsEmission;
7fd59977 58
189f85a3 59 Graphic3d_BSDF BSDF;
7fd59977 60
189f85a3 61 Standard_ShortReal Shininess;
62 Standard_ShortReal Transparency;
63 Standard_ShortReal RefractionIndex;
bf75be98 64
189f85a3 65 Standard_ShortReal EnvReflexion;
7fd59977 66
189f85a3 67 Standard_Integer IsPhysic;
7fd59977 68
189f85a3 69 /* Color attributes */
70 CALL_DEF_COLOR ColorAmb;
71 CALL_DEF_COLOR ColorDif;
72 CALL_DEF_COLOR ColorSpec;
73 CALL_DEF_COLOR ColorEms;
74 CALL_DEF_COLOR Color;
7fd59977 75
bf75be98 76} CALL_DEF_MATERIAL;
7fd59977 77
7fd59977 78/* Transform persistence struct */
79typedef struct
80{
189f85a3 81 Standard_Integer IsSet;
82 Standard_Integer IsDef;
83 Standard_Integer Flag;
84 CALL_DEF_POINT Point;
7fd59977 85} CALL_DEF_TRANSFORM_PERSISTENCE;
86
7fd59977 87#endif /* InterfaceGraphic_Graphic3dHeader */