0031668: Visualization - WebGL sample doesn't work on Emscripten 1.39
[occt.git] / src / IGESSelect / IGESSelect_SignColor.hxx
1 // Created on: 2001-03-06
2 // Created by: Christian CAILLET
3 // Copyright (c) 2001-2014 OPEN CASCADE SAS
4 //
5 // This file is part of Open CASCADE Technology software library.
6 //
7 // This library is free software; you can redistribute it and/or modify it under
8 // the terms of the GNU Lesser General Public License version 2.1 as published
9 // by the Free Software Foundation, with special exception defined in the file
10 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
11 // distribution for complete text of the license and disclaimer of any warranty.
12 //
13 // Alternatively, this file may be used under the terms of Open CASCADE
14 // commercial license or contractual agreement.
15
16 #ifndef _IGESSelect_SignColor_HeaderFile
17 #define _IGESSelect_SignColor_HeaderFile
18
19 #include <Standard.hxx>
20 #include <Standard_Type.hxx>
21
22 #include <Standard_Integer.hxx>
23 #include <IFSelect_Signature.hxx>
24 #include <Standard_CString.hxx>
25 class Standard_Transient;
26 class Interface_InterfaceModel;
27
28
29 class IGESSelect_SignColor;
30 DEFINE_STANDARD_HANDLE(IGESSelect_SignColor, IFSelect_Signature)
31
32 //! Gives Color attached to an entity
33 //! Several forms are possible, according to <mode>
34 //! 1 : number : "Dnn" for entity, "Snn" for standard, "(none)" for 0
35 //! 2 : name : Of standard color, or of the color entity, or "(none)"
36 //! (if the color entity has no name, its label is taken)
37 //! 3 : RGB values, form R:nn,G:nn,B:nn
38 //! 4 : RED value   : an integer
39 //! 5 : GREEN value : an integer
40 //! 6 : BLUE value  : an integer
41 //! Other computable values can be added if needed :
42 //! CMY values, Percentages for Hue, Lightness, Saturation
43 class IGESSelect_SignColor : public IFSelect_Signature
44 {
45
46 public:
47
48   
49   //! Creates a SignColor
50   //! mode : see above for the meaning
51   //! modes 4,5,6 give a numeric integer value
52   //! Name is initialised according to the mode
53   Standard_EXPORT IGESSelect_SignColor(const Standard_Integer mode);
54   
55   //! Returns the value (see above)
56   Standard_EXPORT Standard_CString Value (const Handle(Standard_Transient)& ent, const Handle(Interface_InterfaceModel)& model) const Standard_OVERRIDE;
57
58
59
60
61   DEFINE_STANDARD_RTTIEXT(IGESSelect_SignColor,IFSelect_Signature)
62
63 protected:
64
65
66
67
68 private:
69
70
71   Standard_Integer themode;
72
73
74 };
75
76
77
78
79
80
81
82 #endif // _IGESSelect_SignColor_HeaderFile