1 // Created on: 2002-04-10
2 // Created by: QA Admin
3 // Copyright (c) 2002-2014 OPEN CASCADE SAS
5 // This file is part of Open CASCADE Technology software library.
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.
13 // Alternatively, this file may be used under the terms of Open CASCADE
14 // commercial license or contractual agreement.
16 #ifndef _QABugs_MyText_HeaderFile
17 #define _QABugs_MyText_HeaderFile
19 #include <Standard.hxx>
20 #include <Standard_Type.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;
33 class Prs3d_Presentation;
37 DEFINE_STANDARD_HANDLE(QABugs_MyText, AIS_InteractiveObject)
40 class QABugs_MyText : public AIS_InteractiveObject
46 Standard_EXPORT QABugs_MyText(const TCollection_ExtendedString& aText, const gp_Pnt& aPosition);
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);
53 DEFINE_STANDARD_RTTIEXT(QABugs_MyText,AIS_InteractiveObject)
58 Standard_EXPORT virtual void Compute (const Handle(PrsMgr_PresentationManager3d)& aPresentationManager, const Handle(Prs3d_Presentation)& aPresentation, const Standard_Integer aMode = 0) Standard_OVERRIDE;
60 Standard_EXPORT virtual void ComputeSelection (const Handle(SelectMgr_Selection)& aSelection, const Standard_Integer aMode) Standard_OVERRIDE;
68 TCollection_ExtendedString myText;
69 Quantity_NameOfColor myNameOfColor;
70 Standard_CString myNameOfFont;
71 Standard_Real myHeight;
82 #endif // _QABugs_MyText_HeaderFile