From 638eef43b3b06857838409ed211a50605f42f174 Mon Sep 17 00:00:00 2001 From: enk Date: Mon, 30 May 2005 10:13:13 +0000 Subject: [PATCH] Fixed bug with incorrect transformation --- src/VTKViewer/VTKViewer_ViewFrame.cxx | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) 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(); } -- 2.39.2