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_DrawableEdgeTool_HeaderFile
18 #define _HLRTest_DrawableEdgeTool_HeaderFile
20 #include <Standard.hxx>
21 #include <Standard_Type.hxx>
23 #include <Standard_Boolean.hxx>
24 #include <Standard_Integer.hxx>
25 #include <Draw_Drawable3D.hxx>
29 class HLRBRep_EdgeData;
32 class HLRTest_DrawableEdgeTool;
33 DEFINE_STANDARD_HANDLE(HLRTest_DrawableEdgeTool, Draw_Drawable3D)
35 //! Used to display the results.
36 class HLRTest_DrawableEdgeTool : public Draw_Drawable3D
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);
44 Standard_EXPORT void DrawOn (Draw_Display& D) const Standard_OVERRIDE;
49 DEFINE_STANDARD_RTTIEXT(HLRTest_DrawableEdgeTool,Draw_Drawable3D)
59 Standard_EXPORT void InternalDraw (Draw_Display& D, const Standard_Integer typ) const;
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;
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;
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;
81 #endif // _HLRTest_DrawableEdgeTool_HeaderFile