View Issue Details

IDProjectCategoryView StatusLast Update
0029951CommunityOCCT:Visualizationpublic2018-07-16 11:10
ReporterMatthias Assigned Tobugmaster  
PrioritynormalSeverityfeature 
Status closedResolutionno change required 
Summary0029951: Visualization - Properties of AIS_Trihedron's label can't be set (e.g. size of text)
DescriptionWith AIS_Trihedron.SetTextColor one can set color of trihedron's labels. Other properties, like text size, can't be configured.
TagsNo tags attached.
Test case number

Activities

kgv

2018-07-12 10:08

developer   ~0077493

Last edited: 2018-07-12 10:08

Attribute assigning methods within AIS classes are just handy interfaces for common modifications.
Normally, AIS object uses myDrawer (AIS_InteractiveObject::Attributes()), which can be configured at application side directly, see:
void AIS_Trihedron::SetTextColor (const Quantity_Color& theColor)
{
  setOwnDatumAspect();
  myDrawer->DatumAspect()->TextAspect()->SetColor (theColor);
}

it is just a wrapper copying attributes from Default drawer of AIS_InteractiveContext (method setOwnDatumAspect()) and modification of myDrawer->DatumAspect()->TextAspect() aspect.
TextAspect() is a usual Prs3d_TextAspect having height, font, color attributes.

Fill free adding AIS_Trihedron::SetTextSize() method and similar with your patch, if you find it useful.

Matthias

2018-07-12 11:05

developer   ~0077497

Thank you for clarification!

kgv

2018-07-12 11:08

developer   ~0077499

Dear bugmaster,

please close the bug.

Issue History

Date Modified Username Field Change
2018-07-12 09:29 Matthias New Issue
2018-07-12 09:29 Matthias Assigned To => kgv
2018-07-12 10:08 kgv Note Added: 0077493
2018-07-12 10:08 kgv Assigned To kgv => Matthias
2018-07-12 10:08 kgv Status new => feedback
2018-07-12 10:08 kgv Note Edited: 0077493
2018-07-12 10:08 kgv Note Edited: 0077493
2018-07-12 10:17 kgv Severity minor => feature
2018-07-12 10:17 kgv Summary Properties of AIS_Trihedron's label can't be set (e.g. size of text) => Visualization - Properties of AIS_Trihedron's label can't be set (e.g. size of text)
2018-07-12 11:05 Matthias Note Added: 0077497
2018-07-12 11:06 Matthias Assigned To Matthias => kgv
2018-07-12 11:08 kgv Note Added: 0077499
2018-07-12 11:08 kgv Assigned To kgv => bugmaster
2018-07-12 11:08 kgv Resolution open => no change required
2018-07-16 11:10 bugmaster Status feedback => closed