Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-09-19 09:28:10

0001 // Created on: 1992-08-27
0002 // Created by: Christophe MARION
0003 // Copyright (c) 1992-1999 Matra Datavision
0004 // Copyright (c) 1999-2014 OPEN CASCADE SAS
0005 //
0006 // This file is part of Open CASCADE Technology software library.
0007 //
0008 // This library is free software; you can redistribute it and/or modify it under
0009 // the terms of the GNU Lesser General Public License version 2.1 as published
0010 // by the Free Software Foundation, with special exception defined in the file
0011 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
0012 // distribution for complete text of the license and disclaimer of any warranty.
0013 //
0014 // Alternatively, this file may be used under the terms of Open CASCADE
0015 // commercial license or contractual agreement.
0016 
0017 #ifndef _HLRTest_DrawablePolyEdgeTool_HeaderFile
0018 #define _HLRTest_DrawablePolyEdgeTool_HeaderFile
0019 
0020 #include <Standard.hxx>
0021 #include <Standard_Type.hxx>
0022 
0023 #include <Standard_Integer.hxx>
0024 #include <HLRBRep_BiPoint.hxx>
0025 #include <NCollection_List.hxx>
0026 #include <Draw_Drawable3D.hxx>
0027 class HLRBRep_PolyAlgo;
0028 class Draw_Display;
0029 
0030 //! Used to display the results.
0031 class HLRTest_DrawablePolyEdgeTool : public Draw_Drawable3D
0032 {
0033 
0034 public:
0035   Standard_EXPORT HLRTest_DrawablePolyEdgeTool(const occ::handle<HLRBRep_PolyAlgo>& Alg,
0036                                                const int                            ViewId,
0037                                                const bool                           Debug = false);
0038 
0039   void Show();
0040 
0041   void Hide();
0042 
0043   void DisplayRg1Line(const bool B);
0044 
0045   bool DisplayRg1Line() const;
0046 
0047   void DisplayRgNLine(const bool B);
0048 
0049   bool DisplayRgNLine() const;
0050 
0051   void DisplayHidden(const bool B);
0052 
0053   bool DisplayHidden() const;
0054 
0055   Standard_EXPORT void DrawOn(Draw_Display& D) const override;
0056 
0057   bool Debug() const;
0058 
0059   void Debug(const bool B);
0060 
0061   DEFINE_STANDARD_RTTIEXT(HLRTest_DrawablePolyEdgeTool, Draw_Drawable3D)
0062 
0063 private:
0064   occ::handle<HLRBRep_PolyAlgo>     myAlgo;
0065   bool                              myDispRg1;
0066   bool                              myDispRgN;
0067   bool                              myDispHid;
0068   int                               myViewId;
0069   NCollection_List<HLRBRep_BiPoint> myBiPntVis;
0070   NCollection_List<HLRBRep_BiPoint> myBiPntHid;
0071   bool                              myDebug;
0072   bool                              myHideMode;
0073 };
0074 
0075 #include <HLRTest_DrawablePolyEdgeTool.lxx>
0076 
0077 #endif // _HLRTest_DrawablePolyEdgeTool_HeaderFile