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
6 // This file is part of Open CASCADE Technology software library.
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.
14 // Alternatively, this file may be used under the terms of Open CASCADE
15 // commercial license or contractual agreement.
17 #ifndef _HLRTest_DrawablePolyEdgeTool_HeaderFile
18 #define _HLRTest_DrawablePolyEdgeTool_HeaderFile
20 #include <Standard.hxx>
21 #include <Standard_Type.hxx>
23 #include <Standard_Boolean.hxx>
24 #include <Standard_Integer.hxx>
25 #include <HLRBRep_ListOfBPoint.hxx>
26 #include <Draw_Drawable3D.hxx>
27 class HLRBRep_PolyAlgo;
31 class HLRTest_DrawablePolyEdgeTool;
32 DEFINE_STANDARD_HANDLE(HLRTest_DrawablePolyEdgeTool, Draw_Drawable3D)
34 //! Used to display the results.
35 class HLRTest_DrawablePolyEdgeTool : public Draw_Drawable3D
41 Standard_EXPORT HLRTest_DrawablePolyEdgeTool(const Handle(HLRBRep_PolyAlgo)& Alg, const Standard_Integer ViewId, const Standard_Boolean Debug = Standard_False);
47 void DisplayRg1Line (const Standard_Boolean B);
49 Standard_Boolean DisplayRg1Line() const;
51 void DisplayRgNLine (const Standard_Boolean B);
53 Standard_Boolean DisplayRgNLine() const;
55 void DisplayHidden (const Standard_Boolean B);
57 Standard_Boolean DisplayHidden() const;
59 Standard_EXPORT void DrawOn (Draw_Display& D) const Standard_OVERRIDE;
61 Standard_Boolean Debug() const;
63 void Debug (const Standard_Boolean B);
68 DEFINE_STANDARD_RTTIEXT(HLRTest_DrawablePolyEdgeTool,Draw_Drawable3D)
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;
92 #include <HLRTest_DrawablePolyEdgeTool.lxx>
98 #endif // _HLRTest_DrawablePolyEdgeTool_HeaderFile