From: enk Date: Mon, 30 May 2005 10:13:13 +0000 (+0000) Subject: Fixed bug with incorrect transformation X-Git-Tag: JFA_MERGE_TO_3_0_0__2005-07-07~3 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=638eef43b3b06857838409ed211a50605f42f174;p=modules%2Fkernel.git Fixed bug with incorrect transformation --- diff --git a/src/VTKViewer/VTKViewer_ViewFrame.cxx b/src/VTKViewer/VTKViewer_ViewFrame.cxx index 88fbac9b2..d3baed7d7 100644 --- a/src/VTKViewer/VTKViewer_ViewFrame.cxx +++ b/src/VTKViewer/VTKViewer_ViewFrame.cxx @@ -143,12 +143,11 @@ void VTKViewer_ViewFrame::InitialSetup() { m_CubeAxes->SetLabelFormat("%6.4g"); m_CubeAxes->SetBounds(bnd); m_CubeAxes->SetCamera(m_Renderer->GetActiveCamera()); - m_CubeAxes->SetLabelFormat("%6.4g"); m_CubeAxes->SetFlyModeToOuterEdges(); // ENK remarks: it must bee m_CubeAxes->SetFontFactor(0.8); m_CubeAxes->SetAxisTitleTextProperty(tprop); m_CubeAxes->SetAxisLabelTextProperty(tprop); - m_CubeAxes->SetCornerOffset(0.0); + m_CubeAxes->SetCornerOffset(0); m_CubeAxes->SetScaling(0); m_CubeAxes->SetNumberOfLabels(5); m_CubeAxes->VisibilityOff(); @@ -708,11 +707,11 @@ void VTKViewer_ViewFrame::Repaint(bool theUpdateTrihedron) } void VTKViewer_ViewFrame::GetScale(double theScale[3]){ - m_Transform->GetScale(theScale); + m_Transform->GetMatrixScale(theScale); } void VTKViewer_ViewFrame::SetScale(double theScale[3]){ - m_Transform->SetScale(theScale[0], theScale[1], theScale[2]); + m_Transform->SetMatrixScale(theScale[0], theScale[1], theScale[2]); m_RWInteractor->Render(); Repaint(); }