X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FOBJECT%2FGEOM_VTKTrihedron.cxx;h=c633accfda85d9963d4308e289d55ba892906e77;hb=cfc267474fbe4c092b88a40e8d28031a00950450;hp=2cb53b8543f27248996dbc7b5f10278405f1216f;hpb=ff7fc4d6c2f5e6de741fd7f0b9ebf01de04d0e10;p=modules%2Fgeom.git diff --git a/src/OBJECT/GEOM_VTKTrihedron.cxx b/src/OBJECT/GEOM_VTKTrihedron.cxx index 2cb53b854..c633accfd 100644 --- a/src/OBJECT/GEOM_VTKTrihedron.cxx +++ b/src/OBJECT/GEOM_VTKTrihedron.cxx @@ -1,4 +1,4 @@ -// Copyright (C) 2007-2015 CEA/DEN, EDF R&D, OPEN CASCADE +// Copyright (C) 2007-2022 CEA/DEN, EDF R&D, OPEN CASCADE // // Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS @@ -51,7 +51,7 @@ /* Class : GEOM_VTKTrihedron Description : Class for displaying axis of trihedron in VTK viewer. - Placement of trihedron is chahged with SetPlacement() method + Placement of trihedron is changed with SetPlacement() method */ class GEOM_VTKTrihedronAxis : public VTKViewer_Axis { @@ -63,7 +63,7 @@ protected: public: - vtkTypeMacro( GEOM_VTKTrihedronAxis, VTKViewer_Axis ); + vtkTypeMacro( GEOM_VTKTrihedronAxis, VTKViewer_Axis ) static GEOM_VTKTrihedronAxis* New(); void SetAxis( const gp_Ax1& theAxis, const int theRot, double theColor[ 3 ] ); @@ -79,7 +79,7 @@ private: vtkTransform* myTrsf; }; -vtkStandardNewMacro( GEOM_VTKTrihedronAxis ); +vtkStandardNewMacro( GEOM_VTKTrihedronAxis ) GEOM_VTKTrihedronAxis::GEOM_VTKTrihedronAxis() { @@ -194,10 +194,10 @@ void GEOM_VTKTrihedronAxis::SetColor( const double theColor[ 3 ] ) /* Class : GEOM_VTKTrihedron Description : Class for displaying trihedron of local CS in VTK viewer. - Placement of trihedron is chahged with SetPlacement() method + Placement of trihedron is changed with SetPlacement() method */ -vtkStandardNewMacro( GEOM_VTKTrihedron ); +vtkStandardNewMacro( GEOM_VTKTrihedron ) GEOM_VTKTrihedron::GEOM_VTKTrihedron() { @@ -259,6 +259,7 @@ void GEOM_VTKTrihedron::SetSize( double theSize ) aRes->AddInputConnection( aSrcZ->GetOutputPort() ); myMapper->SetInputConnection( aRes->GetOutputPort() ); + aRes->Update(); SALOME_Actor::SetMapper( myMapper ); aSrcX->Delete();