]> OCCT Git - occt-copy.git/commit
0031729: Visualization, Prs3d_DatumAspect - provide per axis text aspects
authorkgv <kgv@opencascade.com>
Thu, 5 Nov 2020 14:34:08 +0000 (17:34 +0300)
committerbugmaster <bugmaster@opencascade.com>
Thu, 12 Nov 2020 14:18:59 +0000 (17:18 +0300)
commit7194880cb795d042fc0e8b7f606e2406ee94148b
treedb5eaf18e0ad805122e28c1cefd42f559f91cc44
parent692c49f5e0c51555f9fa4b69d87e5ef8953a10dd
0031729: Visualization, Prs3d_DatumAspect - provide per axis text aspects

Prs3d_DatumAspect::TextAspect() now takes Prs3d_DatumParts argument
and defined separately for Prs3d_DatumParts_XAxis/Prs3d_DatumParts_YAxis/Prs3d_DatumParts_ZAxis.
The method without arguments has been marked as deprecated.

V3d_Trihedron now stores per-label text attributes.
Added method V3d_View::Trihedron() returning V3d_Trihedron object for more straightforward definition.
V3d_Trihedron::SetWireframe() - added missing invalidation.

AIS_Trihedron::setOwnDatumAspect() implementation has been moved to Prs3d_DatumAspect::CopyAspectsFrom()
and now used by Prs3d_Drawer::SetOwnDatumAspects().
OpenGl_Text::render() - added NULL-check.

AIS_Trihedron::computePresentation() now takes into account Prs3d_Datum*Arrow shading/line aspects.

Command vtrihedron has been extended by "-textColor XAxis|YAxis|ZAxis Color" syntax.
Command vviewcube has been extended by "-xAxisTextColor|-yAxisTextColor|-zAxisTextColor" arguments.
13 files changed:
src/AIS/AIS_Trihedron.cxx
src/AIS/AIS_Trihedron.hxx
src/AIS/AIS_ViewCube.cxx
src/OpenGl/OpenGl_Text.cxx
src/Prs3d/Prs3d_DatumAspect.cxx
src/Prs3d/Prs3d_DatumAspect.hxx
src/Prs3d/Prs3d_Drawer.cxx
src/V3d/V3d_Trihedron.cxx
src/V3d/V3d_Trihedron.hxx
src/V3d/V3d_View.hxx
src/ViewerTest/ViewerTest_ObjectCommands.cxx
src/ViewerTest/ViewerTest_ViewerCommands.cxx
tests/bugs/vis/bug27958