Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-09-22 08:57:04

0001 // Created on: 2000-05-25
0002 // Created by: Peter KURNEV
0003 // Copyright (c) 2000-2014 OPEN CASCADE SAS
0004 //
0005 // This file is part of Open CASCADE Technology software library.
0006 //
0007 // This library is free software; you can redistribute it and/or modify it under
0008 // the terms of the GNU Lesser General Public License version 2.1 as published
0009 // by the Free Software Foundation, with special exception defined in the file
0010 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
0011 // distribution for complete text of the license and disclaimer of any warranty.
0012 //
0013 // Alternatively, this file may be used under the terms of Open CASCADE
0014 // commercial license or contractual agreement.
0015 
0016 #ifndef _BOPTest_DrawableShape_HeaderFile
0017 #define _BOPTest_DrawableShape_HeaderFile
0018 
0019 #include <Standard.hxx>
0020 
0021 #include <DBRep_DrawableShape.hxx>
0022 #include <Standard_Real.hxx>
0023 #include <Standard_Integer.hxx>
0024 class Draw_Text3D;
0025 class TopoDS_Shape;
0026 class gp_Pnt;
0027 class Draw_Display;
0028 
0029 class BOPTest_DrawableShape : public DBRep_DrawableShape
0030 {
0031 
0032 public:
0033   Standard_EXPORT BOPTest_DrawableShape(const TopoDS_Shape& S,
0034                                         const Draw_Color&   FreeCol,
0035                                         const Draw_Color&   ConnCol,
0036                                         const Draw_Color&   EdgeCol,
0037                                         const Draw_Color&   IsosCol,
0038                                         const double        size,
0039                                         const int           nbisos,
0040                                         const int           discret,
0041                                         const char* const   Text,
0042                                         const Draw_Color&   TextColor);
0043 
0044   Standard_EXPORT BOPTest_DrawableShape(const TopoDS_Shape& S,
0045                                         const char* const   Text,
0046                                         const Draw_Color&   TextColor);
0047 
0048   Standard_EXPORT void DrawOn(Draw_Display& dis) const override;
0049 
0050   DEFINE_STANDARD_RTTIEXT(BOPTest_DrawableShape, DBRep_DrawableShape)
0051 
0052 private:
0053   Standard_EXPORT gp_Pnt Pnt() const;
0054 
0055   occ::handle<Draw_Text3D> myText;
0056   Draw_Color               myTextColor;
0057 };
0058 
0059 #endif // _BOPTest_DrawableShape_HeaderFile