Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 10:03:05

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 
0030 class BOPTest_DrawableShape;
0031 DEFINE_STANDARD_HANDLE(BOPTest_DrawableShape, DBRep_DrawableShape)
0032 
0033 
0034 class BOPTest_DrawableShape : public DBRep_DrawableShape
0035 {
0036 
0037 public:
0038 
0039   
0040   Standard_EXPORT BOPTest_DrawableShape(const TopoDS_Shape& S, const Draw_Color& FreeCol, const Draw_Color& ConnCol, const Draw_Color& EdgeCol, const Draw_Color& IsosCol, const Standard_Real size, const Standard_Integer nbisos, const Standard_Integer discret, const Standard_CString Text, const Draw_Color& TextColor);
0041   
0042   Standard_EXPORT BOPTest_DrawableShape(const TopoDS_Shape& S, const Standard_CString Text, const Draw_Color& TextColor);
0043   
0044   Standard_EXPORT virtual void DrawOn (Draw_Display& dis) const Standard_OVERRIDE;
0045 
0046 
0047 
0048 
0049   DEFINE_STANDARD_RTTIEXT(BOPTest_DrawableShape,DBRep_DrawableShape)
0050 
0051 protected:
0052 
0053 
0054 
0055 
0056 private:
0057 
0058   
0059   Standard_EXPORT gp_Pnt Pnt() const;
0060 
0061   Handle(Draw_Text3D) myText;
0062   Draw_Color myTextColor;
0063 
0064 
0065 };
0066 
0067 
0068 
0069 
0070 
0071 
0072 
0073 #endif // _BOPTest_DrawableShape_HeaderFile