0024412: TKV3d, Dimensions - Possibility to customize text position was lost:
authoraba <aba@opencascade.com>
Thu, 13 Feb 2014 08:43:56 +0000 (12:43 +0400)
committerapn <apn@opencascade.com>
Thu, 13 Feb 2014 10:04:32 +0000 (14:04 +0400)
commitaf203d549af9d96f125bc3715b5500b54ba34399
tree5e440a7ccbc0919aaae75bf89647ea5d2d7ad3c6
parent3b010a7435fe61c962fd6c214ea80d4cae0608a7
0024412: TKV3d, Dimensions - Possibility to customize text position was lost:

AIS_Dimension::GetTextPosition() and AIS_Dimension::SetTextPosition() methods were added.
Added possibility to set and unset text label alignment respectively to the attach points after text position changed.
Added test cases to check text positioning with dimension parameters and with setting 3D point.
Corrected DRAW commands vmovedim, vangledim, vdistdim, vradiusdim.
Corrections of AIS_Dimension::SetTextPosition(): aspect parameters are not changed inside it.
Layout mode was removed; test cases and vdimparams, vdimension  commands were corrected.
remarks: coding style, removing redundant code of LayoutMode enumeration.
16 files changed:
src/AIS/AIS.cdl
src/AIS/AIS_AngleDimension.cxx
src/AIS/AIS_AngleDimension.hxx
src/AIS/AIS_DiameterDimension.cxx
src/AIS/AIS_DiameterDimension.hxx
src/AIS/AIS_Dimension.cxx
src/AIS/AIS_Dimension.hxx
src/AIS/AIS_LengthDimension.cxx
src/AIS/AIS_LengthDimension.hxx
src/AIS/AIS_RadiusDimension.cxx
src/AIS/AIS_RadiusDimension.hxx
src/Prs3d/Prs3d_DimensionAspect.cdl
src/Prs3d/Prs3d_DimensionAspect.cxx
src/ViewerTest/ViewerTest_RelationCommands.cxx
tests/bugs/vis/bug24412_1 [new file with mode: 0644]
tests/bugs/vis/bug24412_2 [new file with mode: 0644]