X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FPIPELINE%2FVISU_MeshPL.cxx;h=b24f4e98b6580412f9197ac4925cb2ea0aab84f1;hb=439b08cf2772b48bb44ef35eb23279505cbf2278;hp=4e3e92d2acefa74e1f64933714acd852b4ab6304;hpb=17b175ff4b710fc93421509ffa7583edd1678a5d;p=modules%2Fvisu.git diff --git a/src/PIPELINE/VISU_MeshPL.cxx b/src/PIPELINE/VISU_MeshPL.cxx index 4e3e92d2..b24f4e98 100644 --- a/src/PIPELINE/VISU_MeshPL.cxx +++ b/src/PIPELINE/VISU_MeshPL.cxx @@ -1,46 +1,68 @@ -// VISU OBJECT : interactive object for VISU entities implementation +// Copyright (C) 2007-2010 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. // -// Copyright (C) 2003 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. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org +// This library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. // +// You should have received a copy of the GNU Lesser General Public +// License along with this library; if not, write to the Free Software +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA // +// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com // -// File: VISU_PipeLine.cxx + +// VISU OBJECT : interactive object for VISU entities implementation +// File: VISU_MeshPL.cxx // Author: Alexey PETROV // Module : VISU - - +// #include "VISU_MeshPL.hxx" -#include "SALOME_GeometryFilter.h" -#include -#include +#include "VISU_DataSetMapperHolder.hxx" + #include -#include +#include + +//---------------------------------------------------------------------------- vtkStandardNewMacro(VISU_MeshPL); -VISU_MeshPL::VISU_MeshPL(){} -void VISU_MeshPL::Build() { - myMapper->SetInput(myInput); +//---------------------------------------------------------------------------- +VISU_MeshPL +::VISU_MeshPL(): + VISU_UnstructuredGridPL(this) +{ + SetIsShrinkable(true); + SetIsFeatureEdgesAllowed(true); } -void VISU_MeshPL::Init(){ + +//---------------------------------------------------------------------------- +void +VISU_MeshPL +::OnCreateMapperHolder() +{ + VISU_UnstructuredGridPL::OnCreateMapperHolder(); } + + +//---------------------------------------------------------------------------- +void +VISU_MeshPL +::Build() +{ + GetDataSetMapper()->SetInput(GetClippedInput()); +} + + +//----------------------------------------------------------------------------