42cf5bc1 |
1 | // Created on: 1992-08-21 |
2 | // Created by: Christophe MARION |
3 | // Copyright (c) 1992-1999 Matra Datavision |
4 | // Copyright (c) 1999-2014 OPEN CASCADE SAS |
5 | // |
6 | // This file is part of Open CASCADE Technology software library. |
7 | // |
8 | // This library is free software; you can redistribute it and/or modify it under |
9 | // the terms of the GNU Lesser General Public License version 2.1 as published |
10 | // by the Free Software Foundation, with special exception defined in the file |
11 | // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT |
12 | // distribution for complete text of the license and disclaimer of any warranty. |
13 | // |
14 | // Alternatively, this file may be used under the terms of Open CASCADE |
15 | // commercial license or contractual agreement. |
16 | |
17 | #ifndef _HLRTest_ShapeData_HeaderFile |
18 | #define _HLRTest_ShapeData_HeaderFile |
19 | |
20 | #include <Standard.hxx> |
21 | #include <Standard_Type.hxx> |
22 | |
23 | #include <Draw_Color.hxx> |
24 | #include <MMgt_TShared.hxx> |
25 | class Draw_Color; |
26 | |
27 | |
28 | class HLRTest_ShapeData; |
29 | DEFINE_STANDARD_HANDLE(HLRTest_ShapeData, MMgt_TShared) |
30 | |
31 | //! Contains the colors of a shape. |
32 | class HLRTest_ShapeData : public MMgt_TShared |
33 | { |
34 | |
35 | public: |
36 | |
37 | |
38 | Standard_EXPORT HLRTest_ShapeData(const Draw_Color& CVis, const Draw_Color& COVis, const Draw_Color& CIVis, const Draw_Color& CHid, const Draw_Color& COHid, const Draw_Color& CIHid); |
39 | |
40 | void VisibleColor (const Draw_Color& CVis); |
41 | |
42 | void VisibleOutLineColor (const Draw_Color& COVis); |
43 | |
44 | void VisibleIsoColor (const Draw_Color& CIVis); |
45 | |
46 | void HiddenColor (const Draw_Color& CHid); |
47 | |
48 | void HiddenOutLineColor (const Draw_Color& COHid); |
49 | |
50 | void HiddenIsoColor (const Draw_Color& CIHid); |
51 | |
52 | Draw_Color VisibleColor() const; |
53 | |
54 | Draw_Color VisibleOutLineColor() const; |
55 | |
56 | Draw_Color VisibleIsoColor() const; |
57 | |
58 | Draw_Color HiddenColor() const; |
59 | |
60 | Draw_Color HiddenOutLineColor() const; |
61 | |
62 | Draw_Color HiddenIsoColor() const; |
63 | |
64 | |
65 | |
66 | |
92efcf78 |
67 | DEFINE_STANDARD_RTTIEXT(HLRTest_ShapeData,MMgt_TShared) |
42cf5bc1 |
68 | |
69 | protected: |
70 | |
71 | |
72 | |
73 | |
74 | private: |
75 | |
76 | |
77 | Draw_Color myVColor; |
78 | Draw_Color myVOColor; |
79 | Draw_Color myVIColor; |
80 | Draw_Color myHColor; |
81 | Draw_Color myHOColor; |
82 | Draw_Color myHIColor; |
83 | |
84 | |
85 | }; |
86 | |
87 | |
88 | #include <HLRTest_ShapeData.lxx> |
89 | |
90 | |
91 | |
92 | |
93 | |
94 | #endif // _HLRTest_ShapeData_HeaderFile |