0027557: Unstable HLR tests
[occt.git] / src / HLRTest / HLRTest_DrawableEdgeTool.hxx
1 // Created on: 1992-08-27
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_DrawableEdgeTool_HeaderFile
18 #define _HLRTest_DrawableEdgeTool_HeaderFile
19
20 #include <Standard.hxx>
21 #include <Standard_Type.hxx>
22
23 #include <Standard_Boolean.hxx>
24 #include <Standard_Integer.hxx>
25 #include <Draw_Drawable3D.hxx>
26 class HLRBRep_Algo;
27 class Draw_Display;
28 class HLRBRep_Data;
29 class HLRBRep_EdgeData;
30
31
32 class HLRTest_DrawableEdgeTool;
33 DEFINE_STANDARD_HANDLE(HLRTest_DrawableEdgeTool, Draw_Drawable3D)
34
35 //! Used to display the results.
36 class HLRTest_DrawableEdgeTool : public Draw_Drawable3D
37 {
38
39 public:
40
41   
42   Standard_EXPORT HLRTest_DrawableEdgeTool(const Handle(HLRBRep_Algo)& Alg, const Standard_Boolean Visible, const Standard_Boolean IsoLine, const Standard_Boolean Rg1Line, const Standard_Boolean RgNLine, const Standard_Integer ViewId);
43   
44   Standard_EXPORT void DrawOn (Draw_Display& D) const Standard_OVERRIDE;
45
46
47
48
49   DEFINE_STANDARD_RTTIEXT(HLRTest_DrawableEdgeTool,Draw_Drawable3D)
50
51 protected:
52
53
54
55
56 private:
57
58   
59   Standard_EXPORT void InternalDraw (Draw_Display& D, const Standard_Integer typ) const;
60   
61   Standard_EXPORT void DrawFace (Draw_Display& D, const Standard_Integer typ, const Standard_Integer nCB, const Standard_Integer iface, Standard_Integer& e2, Standard_Integer& iCB, Handle(HLRBRep_Data)& DS) const;
62   
63   Standard_EXPORT void DrawEdge (Draw_Display& D, const Standard_Boolean inFace, const Standard_Integer typ, const Standard_Integer nCB, const Standard_Integer ie, Standard_Integer& e2, Standard_Integer& iCB, HLRBRep_EdgeData& ed) const;
64
65   Handle(HLRBRep_Algo) myAlgo;
66   Standard_Boolean myVisible;
67   Standard_Boolean myIsoLine;
68   Standard_Boolean myRg1Line;
69   Standard_Boolean myRgNLine;
70   Standard_Integer myViewId;
71
72
73 };
74
75
76
77
78
79
80
81 #endif // _HLRTest_DrawableEdgeTool_HeaderFile