From: vsr Date: Mon, 20 Apr 2015 12:21:23 +0000 (+0300) Subject: 0026109: Visualization - add ChangeAxisAspect(int) method to Graphic3d_GraduatedTrihedron X-Git-Tag: V6_9_0_beta2~16 X-Git-Url: http://git.dev.opencascade.org/gitweb/?a=commitdiff_plain;h=2afd4e98888cda0bd53370dfe74b9fec29269abe;p=occt-copy.git 0026109: Visualization - add ChangeAxisAspect(int) method to Graphic3d_GraduatedTrihedron --- diff --git a/src/Graphic3d/Graphic3d_GraduatedTrihedron.hxx b/src/Graphic3d/Graphic3d_GraduatedTrihedron.hxx index 13a46a7565..13eb392af4 100644 --- a/src/Graphic3d/Graphic3d_GraduatedTrihedron.hxx +++ b/src/Graphic3d/Graphic3d_GraduatedTrihedron.hxx @@ -147,6 +147,12 @@ public: Graphic3d_AxisAspect& ChangeYAxisAspect() { return myAxes(1); } Graphic3d_AxisAspect& ChangeZAxisAspect() { return myAxes(2); } + Graphic3d_AxisAspect& ChangeAxisAspect (const Standard_Integer theIndex) + { + Standard_OutOfRange_Raise_if (theIndex < 0 || theIndex > 2, "Graphic3d_GraduatedTrihedron::ChangeAxisAspect: theIndex is out of bounds [0,2]."); + return myAxes (theIndex); + } + const Graphic3d_AxisAspect& XAxisAspect() const { return myAxes(0); } const Graphic3d_AxisAspect& YAxisAspect() const { return myAxes(1); } const Graphic3d_AxisAspect& ZAxisAspect() const { return myAxes(2); }