42cf5bc1 |
1 | // Created on: 2002-04-10 |
2 | // Created by: QA Admin |
3 | // Copyright (c) 2002-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 _QABugs_MyText_HeaderFile |
17 | #define _QABugs_MyText_HeaderFile |
18 | |
19 | #include <Standard.hxx> |
20 | #include <Standard_Type.hxx> |
21 | |
22 | #include <gp_Pnt.hxx> |
23 | #include <TCollection_ExtendedString.hxx> |
24 | #include <Quantity_NameOfColor.hxx> |
25 | #include <Standard_CString.hxx> |
26 | #include <Standard_Real.hxx> |
27 | #include <AIS_InteractiveObject.hxx> |
28 | #include <PrsMgr_PresentationManager3d.hxx> |
29 | #include <Standard_Integer.hxx> |
30 | #include <SelectMgr_Selection.hxx> |
31 | class TCollection_ExtendedString; |
32 | class gp_Pnt; |
33 | class Prs3d_Presentation; |
34 | |
35 | |
36 | class QABugs_MyText; |
37 | DEFINE_STANDARD_HANDLE(QABugs_MyText, AIS_InteractiveObject) |
38 | |
39 | |
40 | class QABugs_MyText : public AIS_InteractiveObject |
41 | { |
42 | |
43 | public: |
44 | |
45 | |
46 | Standard_EXPORT QABugs_MyText(const TCollection_ExtendedString& aText, const gp_Pnt& aPosition); |
47 | |
48 | Standard_EXPORT QABugs_MyText(const TCollection_ExtendedString& aText, const gp_Pnt& aPosition, const Standard_CString aFont, const Quantity_NameOfColor aColor, const Standard_Real aHeight); |
49 | |
50 | |
51 | |
52 | |
53 | DEFINE_STANDARD_RTTI(QABugs_MyText,AIS_InteractiveObject) |
54 | |
55 | protected: |
56 | |
57 | |
58 | Standard_EXPORT virtual void Compute (const Handle(PrsMgr_PresentationManager3d)& aPresentationManager, const Handle(Prs3d_Presentation)& aPresentation, const Standard_Integer aMode = 0) Standard_OVERRIDE; |
59 | |
60 | Standard_EXPORT virtual void ComputeSelection (const Handle(SelectMgr_Selection)& aSelection, const Standard_Integer aMode) Standard_OVERRIDE; |
61 | |
62 | |
63 | |
64 | private: |
65 | |
66 | |
67 | gp_Pnt myPosition; |
68 | TCollection_ExtendedString myText; |
69 | Quantity_NameOfColor myNameOfColor; |
70 | Standard_CString myNameOfFont; |
71 | Standard_Real myHeight; |
72 | |
73 | |
74 | }; |
75 | |
76 | |
77 | |
78 | |
79 | |
80 | |
81 | |
82 | #endif // _QABugs_MyText_HeaderFile |