-// Copyright (C) 2007-2013 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
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
-// version 2.1 of the License.
+// version 2.1 of the License, or (at your option) any later version.
//
// This library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
/*
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
{
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 ] );
vtkTransform* myTrsf;
};
-vtkStandardNewMacro( GEOM_VTKTrihedronAxis );
+vtkStandardNewMacro( GEOM_VTKTrihedronAxis )
GEOM_VTKTrihedronAxis::GEOM_VTKTrihedronAxis()
{
/*
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()
{
aRes->AddInputConnection( aSrcZ->GetOutputPort() );
myMapper->SetInputConnection( aRes->GetOutputPort() );
+ aRes->Update();
SALOME_Actor::SetMapper( myMapper );
aSrcX->Delete();