Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-10-04 09:14:46

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_DrawableEdgeTool_HeaderFile
0018 #define _HLRTest_DrawableEdgeTool_HeaderFile
0019 
0020 #include <Standard.hxx>
0021 #include <Standard_Type.hxx>
0022 
0023 #include <Standard_Integer.hxx>
0024 #include <Draw_Drawable3D.hxx>
0025 class HLRBRep_Algo;
0026 class Draw_Display;
0027 class HLRBRep_Data;
0028 class HLRBRep_EdgeData;
0029 
0030 //! Used to display the results.
0031 class HLRTest_DrawableEdgeTool : public Draw_Drawable3D
0032 {
0033 
0034 public:
0035   Standard_EXPORT HLRTest_DrawableEdgeTool(const occ::handle<HLRBRep_Algo>& Alg,
0036                                            const bool                       Visible,
0037                                            const bool                       IsoLine,
0038                                            const bool                       Rg1Line,
0039                                            const bool                       RgNLine,
0040                                            const int                        ViewId);
0041 
0042   Standard_EXPORT void DrawOn(Draw_Display& D) const override;
0043 
0044   DEFINE_STANDARD_RTTIEXT(HLRTest_DrawableEdgeTool, Draw_Drawable3D)
0045 
0046 private:
0047   Standard_EXPORT void InternalDraw(Draw_Display& D, const int typ) const;
0048 
0049   Standard_EXPORT void DrawFace(Draw_Display&              D,
0050                                 const int                  typ,
0051                                 const int                  nCB,
0052                                 const int                  iface,
0053                                 int&                       e2,
0054                                 int&                       iCB,
0055                                 occ::handle<HLRBRep_Data>& DS) const;
0056 
0057   Standard_EXPORT void DrawEdge(Draw_Display&     D,
0058                                 const bool        inFace,
0059                                 const int         typ,
0060                                 const int         nCB,
0061                                 const int         ie,
0062                                 int&              e2,
0063                                 int&              iCB,
0064                                 HLRBRep_EdgeData& ed) const;
0065 
0066   occ::handle<HLRBRep_Algo> myAlgo;
0067   bool                      myVisible;
0068   bool                      myIsoLine;
0069   bool                      myRg1Line;
0070   bool                      myRgNLine;
0071   int                       myViewId;
0072 };
0073 
0074 #endif // _HLRTest_DrawableEdgeTool_HeaderFile