Interactive items specialized in text display.
More...
#include <occtools/ais_text.h>
|
void | Compute (const Handle_PrsMgr_PresentationManager3d &pm, const Handle_Prs3d_Presentation &pres, const Standard_Integer mode) override |
| – from PrsMgr_PresentableObject More...
|
|
void | Compute (const Handle_Prs3d_Projector &proj, const Handle_Prs3d_Presentation &pres) override |
| – from PrsMgr_PresentableObject More...
|
|
void | ComputeSelection (const Handle_SelectMgr_Selection &sel, const Standard_Integer mode) override |
| – from SelectMgr_SelectableObject More...
|
|
Interactive items specialized in text display.
occ::AIS_Text::AIS_Text |
( |
| ) |
|
occ::AIS_Text::AIS_Text |
( |
const TCollection_ExtendedString & |
text, |
|
|
const gp_Pnt & |
pos |
|
) |
| |
Constructs a fully initialized AIS_Text.
occ::AIS_Text::~AIS_Text |
( |
| ) |
|
|
virtual |
Destructs the instance and free any allocated resources.
void occ::AIS_Text::addText |
( |
const TCollection_ExtendedString & |
text, |
|
|
const gp_Pnt & |
pos |
|
) |
| |
Adds a new item text item to be displayed at position pos
.
Other text attributes are defaulted
void occ::AIS_Text::Compute |
( |
const Handle_PrsMgr_PresentationManager3d & |
pm, |
|
|
const Handle_Prs3d_Presentation & |
pres, |
|
|
const Standard_Integer |
mode |
|
) |
| |
|
overrideprotected |
– from PrsMgr_PresentableObject
void occ::AIS_Text::Compute |
( |
const Handle_Prs3d_Projector & |
proj, |
|
|
const Handle_Prs3d_Presentation & |
pres |
|
) |
| |
|
overrideprotected |
– from PrsMgr_PresentableObject
void occ::AIS_Text::ComputeSelection |
( |
const Handle_SelectMgr_Selection & |
sel, |
|
|
const Standard_Integer |
mode |
|
) |
| |
|
overrideprotected |
– from SelectMgr_SelectableObject
Handle_Graphic3d_AspectText3d occ::AIS_Text::graphicTextAspect |
( |
unsigned |
i = 0 | ) |
const |
bool occ::AIS_Text::isValidTextIndex |
( |
unsigned |
i | ) |
const |
Is i
a valid index to query some text ?
gp_Pnt occ::AIS_Text::position |
( |
unsigned |
i = 0 | ) |
const |
Returns the position of the i-th
text displayed.
Handle_Prs3d_TextAspect occ::AIS_Text::presentationTextAspect |
( |
unsigned |
i = 0 | ) |
const |
void occ::AIS_Text::setDefaultColor |
( |
const Quantity_Color & |
c | ) |
|
void occ::AIS_Text::setDefaultFont |
( |
const char * |
fontName | ) |
|
void occ::AIS_Text::setDefaultTextBackgroundColor |
( |
const Quantity_Color & |
c | ) |
|
void occ::AIS_Text::setDefaultTextDisplayMode |
( |
Aspect_TypeOfDisplayText |
mode | ) |
|
void occ::AIS_Text::setDefaultTextStyle |
( |
Aspect_TypeOfStyleText |
style | ) |
|
void occ::AIS_Text::setPosition |
( |
const gp_Pnt & |
pos, |
|
|
unsigned |
i = 0 |
|
) |
| |
Sets the position of the i-th
displayed text to pos
.
void occ::AIS_Text::setText |
( |
const TCollection_ExtendedString & |
v, |
|
|
unsigned |
i = 0 |
|
) |
| |
Sets the i-th
displayed text to v
.
void occ::AIS_Text::setTextBackgroundColor |
( |
const Quantity_Color & |
color, |
|
|
unsigned |
i = 0 |
|
) |
| |
Sets the color of the i-th
text background to color
.
Only works when the i-th
text display mode is set to Aspect_TODT_SUBTITLE
void occ::AIS_Text::setTextDisplayMode |
( |
Aspect_TypeOfDisplayText |
mode, |
|
|
unsigned |
i = 0 |
|
) |
| |
void occ::AIS_Text::setTextStyle |
( |
Aspect_TypeOfStyleText |
style, |
|
|
unsigned |
i = 0 |
|
) |
| |
TCollection_ExtendedString occ::AIS_Text::text |
( |
unsigned |
i = 0 | ) |
const |
Returns the i-th
text displayed.
unsigned occ::AIS_Text::textsCount |
( |
| ) |
const |
Returns the count of texts displayed.
The documentation for this class was generated from the following files: