Open CASCADE Technology
6.5.4
|
#include <QABugs_MyText.hxx>
Public Member Functions | |
QABugs_MyText (const TCollection_ExtendedString &aText, const gp_Pnt &aPosition) | |
QABugs_MyText (const TCollection_ExtendedString &aText, const gp_Pnt &aPosition, const Standard_CString aFont, const Quantity_NameOfColor aColor, const Standard_Real aHeight) | |
Protected Member Functions | |
virtual Standard_Integer | NbPossibleSelection () const |
defines the number of different modes of selection (or decomposition) for an Object. | |
virtual void | Compute (const Handle< PrsMgr_PresentationManager3d > &aPresentationManager, const Handle< Prs3d_Presentation > &aPresentation, const Standard_Integer aMode=0) |
Calculates the 3D view aPresentation and its updates. The latter are managed by aPresentationManager. aPresentableObject has the display mode aMode; this has the default value of 0, that is, the wireframe display mode. | |
virtual void | ComputeSelection (const Handle< SelectMgr_Selection > &aSelection, const Standard_Integer aMode) |
Recovers and calculates any sensitive primitive, aSelection, available in Shape mode, specified by aMode. As a rule, these are sensitive faces. This method is defined as virtual. This enables you to implement it in the creation of a new class of AIS Interactive Object. You need to do this and in so doing, redefine this method, if you create a class which enriches the list of signatures and types. |
QABugs_MyText::QABugs_MyText | ( | const TCollection_ExtendedString & | aText, |
const gp_Pnt & | aPosition | ||
) |
QABugs_MyText::QABugs_MyText | ( | const TCollection_ExtendedString & | aText, |
const gp_Pnt & | aPosition, | ||
const Standard_CString | aFont, | ||
const Quantity_NameOfColor | aColor, | ||
const Standard_Real | aHeight | ||
) |
virtual void QABugs_MyText::Compute | ( | const Handle< PrsMgr_PresentationManager3d > & | aPresentationManager, |
const Handle< Prs3d_Presentation > & | aPresentation, | ||
const Standard_Integer | aMode = 0 |
||
) | [protected, virtual] |
Reimplemented from PrsMgr_PresentableObject.
virtual void QABugs_MyText::ComputeSelection | ( | const Handle< SelectMgr_Selection > & | aSelection, |
const Standard_Integer | aMode | ||
) | [protected, virtual] |
Implements SelectMgr_SelectableObject.
virtual Standard_Integer QABugs_MyText::NbPossibleSelection | ( | ) | const [protected, virtual] |
Reimplemented from SelectMgr_SelectableObject.