From f3495b0139304623937996d7c94b932ad63d2451 Mon Sep 17 00:00:00 2001 From: ysn Date: Wed, 16 Nov 2016 17:08:24 +0300 Subject: [PATCH] 0027828: Reference documentation of AIS_Trihedron contains invalid information about default size. Fixed the description of AIS_Trihedron --- dox/user_guides/visualization/visualization.md | 2 +- src/AIS/AIS_Trihedron.hxx | 18 +++++++++--------- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/dox/user_guides/visualization/visualization.md b/dox/user_guides/visualization/visualization.md index f4a146c36b..f4e82f6d0c 100644 --- a/dox/user_guides/visualization/visualization.md +++ b/dox/user_guides/visualization/visualization.md @@ -1274,7 +1274,7 @@ when you activate one of modes: 1 2 3 4, you pick AIS objects of type: * mode 1 : selection of the origin of the trihedron; * mode 2 : selection of the axes -- same remarks as for the Trihedron. -For the presentation of planes and trihedra, the default unit of length is millimeter, and the default value for the representation of axes is 100. If you modify these dimensions, you must temporarily recover the object **Drawer**. From it, take the *Aspects* in which the values for length are stored (*PlaneAspect* for the plane, *FirstAxisAspect* for trihedra), and change these values inside these Aspects. Finally, recalculate the presentation. +For the presentation of planes and trihedra, the default length unit is millimeter and the default value for the representation of axes is 10. To modify these dimensions, you must temporarily recover the object **Drawer**. From it, take the *DatumAspect()* and change the value *FirstAxisLength*. Finally, recalculate the presentation. @subsubsection occt_visu_3_5_2 Object diff --git a/src/AIS/AIS_Trihedron.hxx b/src/AIS/AIS_Trihedron.hxx index 30c400638a..980b3e9371 100644 --- a/src/AIS/AIS_Trihedron.hxx +++ b/src/AIS/AIS_Trihedron.hxx @@ -47,19 +47,19 @@ DEFINE_STANDARD_HANDLE(AIS_Trihedron, AIS_InteractiveObject) //! Create a selectable trihedron //! there are 4 modes of selection : -//! mode = 0 to select triedron ,priority = 1 -//! mode = 1 to select its origine ,priority = 5 +//! mode = 0 to select trihedron ,priority = 1 +//! mode = 1 to select its origin ,priority = 5 //! mode = 2 to select its axis ,priority = 3 //! mode = 3 to select its planes ,priority = 2 -//! a trihedron has 1 origine,3 axes,3 planes. +//! a trihedron has 1 origin, 3 axes and 3 planes. //! Warning //! For the presentation of trihedra, the default unit of -//! length is the millimetre, and the default value for the -//! representation of the axes is 100. If you modify these +//! length is the millimeter, and the default value for the +//! representation of axes is 10. To modify these //! dimensions, you must temporarily recover the Drawer. //! From inside it, you take the aspect in which the values -//! for length are stocked. For trihedra, this is -//! Prs3d_Drawer_FirstAxisAspect. You change the +//! for length are stocked. For trihedra, this is FirstAxisLength from +//! Prs3d_DatumAspect(). Change the //! values inside this Aspect and recalculate the presentation. //! If you want to use extended selection modes, different than 0, //! you should take care of removing of the shapes from the interactive @@ -82,11 +82,11 @@ public: Standard_EXPORT void SetComponent (const Handle(Geom_Axis2Placement)& aComponent); //! Returns true if the trihedron object has a size other - //! than the default size of 100 mm. along each axis. + //! than the default size of 10 mm. along each axis. Standard_Boolean HasOwnSize() const; //! Sets the size aValue for the trihedron object. - //! The default value is 100 mm. + //! The default value is 10 mm. Standard_EXPORT void SetSize (const Standard_Real aValue); //! Removes any non-default settings for size of this -- 2.20.1