1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-09-03 14:10:33 +03:00

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.
This commit is contained in:
kgv
2020-11-05 17:34:08 +03:00
committed by bugmaster
parent 24f9d04c72
commit 0aeb898418
13 changed files with 397 additions and 133 deletions

View File

@@ -7,6 +7,8 @@ pload VISUALIZATION
vclear
vinit View1
vzbufftrihedron -colorLabelX RED -colorLabelY GREEN -colorLabelZ BLUE
vtrihedron t0
vtrihedron t1
@@ -23,15 +25,12 @@ vtrihedron t1 -xaxis 40 60 120 -zaxis -120 0 40
vtrihedron t1 -attribute TubeRadiusPercent 0.03
vtrihedron t1 -attribute ConeRadiusPercent|OriginRadiusPercent 0.05
vtrihedron t1 -color XAxis Quantity_NOC_RED
vtrihedron t1 -color YAxis Quantity_NOC_GREEN
vtrihedron t1 -color ZAxis|Origin Quantity_NOC_BLUE
vtrihedron t1 -textColor 1.0 1.0 1.0
vtrihedron t1 -arrowColor 0.0 0.0 1.0
vtrihedron t1 -color XAxis|XArrow RED -textColor XAxis RED
vtrihedron t1 -color YAxis|YArrow GREEN -textColor YAxis GREEN
vtrihedron t1 -color ZAxis|ZArrow|Origin BLUE -textColor ZAxis BLUE
vtrihedron t2 -origin 0 0 -300
vtrihedron t2 -color Whole Quantity_NOC_PEACHPUFF
vtrihedron t2 -color Whole PEACHPUFF
vselmode t2 1 1
vselmode t2 2 1
vselmode t2 3 1
@@ -39,7 +38,7 @@ vselmode t2 3 1
vtrihedron t3 -dispMode shading -origin 200 200 -300 -color Whole 1.0 0.0 0.0
vtrihedron t3 -drawAxes XY -hideLabels on
vtrihedron t4 -origin -200 -200 300 -hideArrows
vtrihedron t4 -origin -200 -200 300 -hideArrows
vfit