0026936: Drawbacks of inlining in new type system in OCCT 7.0 -- automatic
[occt.git] / src / BOPTest / BOPTest_DrawableShape.hxx
1 // Created on: 2000-05-25
2 // Created by: Peter KURNEV
3 // Copyright (c) 2000-2014 OPEN CASCADE SAS
4 //
5 // This file is part of Open CASCADE Technology software library.
6 //
7 // This library is free software; you can redistribute it and/or modify it under
8 // the terms of the GNU Lesser General Public License version 2.1 as published
9 // by the Free Software Foundation, with special exception defined in the file
10 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
11 // distribution for complete text of the license and disclaimer of any warranty.
12 //
13 // Alternatively, this file may be used under the terms of Open CASCADE
14 // commercial license or contractual agreement.
15
16 #ifndef _BOPTest_DrawableShape_HeaderFile
17 #define _BOPTest_DrawableShape_HeaderFile
18
19 #include <Standard.hxx>
20 #include <Standard_Type.hxx>
21
22 #include <Draw_Color.hxx>
23 #include <DBRep_DrawableShape.hxx>
24 #include <Standard_Real.hxx>
25 #include <Standard_Integer.hxx>
26 #include <Standard_CString.hxx>
27 class Draw_Text3D;
28 class TopoDS_Shape;
29 class Draw_Color;
30 class gp_Pnt;
31 class Draw_Display;
32
33
34 class BOPTest_DrawableShape;
35 DEFINE_STANDARD_HANDLE(BOPTest_DrawableShape, DBRep_DrawableShape)
36
37
38 class BOPTest_DrawableShape : public DBRep_DrawableShape
39 {
40
41 public:
42
43   
44   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);
45   
46   Standard_EXPORT BOPTest_DrawableShape(const TopoDS_Shape& S, const Standard_CString Text, const Draw_Color& TextColor);
47   
48   Standard_EXPORT virtual void DrawOn (Draw_Display& dis) const Standard_OVERRIDE;
49
50
51
52
53   DEFINE_STANDARD_RTTIEXT(BOPTest_DrawableShape,DBRep_DrawableShape)
54
55 protected:
56
57
58
59
60 private:
61
62   
63   Standard_EXPORT gp_Pnt Pnt() const;
64
65   Handle(Draw_Text3D) myText;
66   Draw_Color myTextColor;
67
68
69 };
70
71
72
73
74
75
76
77 #endif // _BOPTest_DrawableShape_HeaderFile