0031668: Visualization - WebGL sample doesn't work on Emscripten 1.39
[occt.git] / src / HLRTest / HLRTest_DrawablePolyEdgeTool.hxx
CommitLineData
42cf5bc1 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_DrawablePolyEdgeTool_HeaderFile
18#define _HLRTest_DrawablePolyEdgeTool_HeaderFile
19
20#include <Standard.hxx>
21#include <Standard_Type.hxx>
22
23#include <Standard_Boolean.hxx>
24#include <Standard_Integer.hxx>
25#include <HLRBRep_ListOfBPoint.hxx>
26#include <Draw_Drawable3D.hxx>
27class HLRBRep_PolyAlgo;
28class Draw_Display;
29
30
31class HLRTest_DrawablePolyEdgeTool;
32DEFINE_STANDARD_HANDLE(HLRTest_DrawablePolyEdgeTool, Draw_Drawable3D)
33
34//! Used to display the results.
35class HLRTest_DrawablePolyEdgeTool : public Draw_Drawable3D
36{
37
38public:
39
40
41 Standard_EXPORT HLRTest_DrawablePolyEdgeTool(const Handle(HLRBRep_PolyAlgo)& Alg, const Standard_Integer ViewId, const Standard_Boolean Debug = Standard_False);
42
43 void Show();
44
45 void Hide();
46
47 void DisplayRg1Line (const Standard_Boolean B);
48
49 Standard_Boolean DisplayRg1Line() const;
50
51 void DisplayRgNLine (const Standard_Boolean B);
52
53 Standard_Boolean DisplayRgNLine() const;
54
55 void DisplayHidden (const Standard_Boolean B);
56
57 Standard_Boolean DisplayHidden() const;
58
79104795 59 Standard_EXPORT void DrawOn (Draw_Display& D) const Standard_OVERRIDE;
42cf5bc1 60
61 Standard_Boolean Debug() const;
62
63 void Debug (const Standard_Boolean B);
64
65
66
67
92efcf78 68 DEFINE_STANDARD_RTTIEXT(HLRTest_DrawablePolyEdgeTool,Draw_Drawable3D)
42cf5bc1 69
70protected:
71
72
73
74
75private:
76
77
78 Handle(HLRBRep_PolyAlgo) myAlgo;
79 Standard_Boolean myDispRg1;
80 Standard_Boolean myDispRgN;
81 Standard_Boolean myDispHid;
82 Standard_Integer myViewId;
83 HLRBRep_ListOfBPoint myBiPntVis;
84 HLRBRep_ListOfBPoint myBiPntHid;
85 Standard_Boolean myDebug;
86 Standard_Boolean myHideMode;
87
88
89};
90
91
92#include <HLRTest_DrawablePolyEdgeTool.lxx>
93
94
95
96
97
98#endif // _HLRTest_DrawablePolyEdgeTool_HeaderFile