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

0027958: Visualization, AIS_Trihedron - add shaded presentation option

A new Shaded presentation flag configured through Datum aspect (NOT as usual Display Mode).
Creation of auxiliary Axis/Point/Plane presentations in Trihedron presentation is removed.
'vtrihedron' DRAW command to change parameters of trihedron is extended to cover whole functionality of AIS_Trihedron.

The following classes are redesignede:
AIS_Trihedron,
Prs3d_DatumAspect.

The followin enumermations are created to manage properties of trihedron:
Prs3d_DatumAttribute,
Prs3d/Prs3d_DatumAxes,
Prs3d_DatumMode
This commit is contained in:
nds
2017-02-15 15:59:48 +03:00
committed by bugmaster
parent 68b0769935
commit bc001a4030
42 changed files with 2213 additions and 1182 deletions

View File

@@ -2087,15 +2087,37 @@ vsetcolorbg 200 0 200
Syntax:
~~~~~
vtrihedron name [X0] [Y0] [Z0] [Zu] [Zv] [Zw] [Xu] [Xv] [Xw]
vtrihedron name [-dispMode {wf|sh|wireframe|shading}]
[-origin x y z ]
[-zaxis u v w -xaxis u v w ]
[-drawaxes {X|Y|Z|XY|YZ|XZ|XYZ}]
[-hidelabels {on|off}]"
[-label {XAxis|YAxis|ZAxis} value]"
[-attribute {XAxisLength|YAxisLength|ZAxisLength
|TubeRadiusPercent|ConeRadiusPercent"
|ConeLengthPercent|OriginRadiusPercent"
|ShadingNumberOfFacettes} value]"
[-color {Origin|XAxis|YAxis|ZAxis|XOYAxis|YOZAxis"
|XOZAxis|Whole} {r g b | colorName}]"
[-textcolor {r g b | colorName}]"
[-arrowscolor {r g b | colorName}]"
[-priority {Origin|XAxis|YAxis|ZAxis|XArrow"
|YArrow|ZArrow|XOYAxis|YOZAxis"
|XOZAxis|Whole} value]
~~~~~
Creates a new *AIS_Trihedron* object. If no argument is set, the default trihedron (0XYZ) is created.
Creates a new *AIS_Trihedron* object or changes existing trihedron. If no argument is set, the default trihedron (0XYZ) is created.
**Example:**
~~~~~
vinit
vtrihedron tr
vtrihedron tr1
vtrihedron t2 -dispmode shading -origin -200 -200 -300
vtrihedron t2 -color XAxis Quantity_NOC_RED
vtrihedron t2 -color YAxis Quantity_NOC_GREEN
vtrihedron t2 -color ZAxis|Origin Quantity_NOC_BLUE1
~~~~~
@subsubsection occt_draw_4_4_2 vplanetri