]> SALOME platform Git repositories - modules/visu.git/blob - src/CONVERTOR/VISU_AppendPolyData.cxx
Salome HOME
Join modifications from BR_Dev_For_4_0 tag V4_1_1.
[modules/visu.git] / src / CONVERTOR / VISU_AppendPolyData.cxx
1 //  SALOME OBJECT : kernel of SALOME component
2 //
3 //  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
4 //  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
5 // 
6 //  This library is free software; you can redistribute it and/or 
7 //  modify it under the terms of the GNU Lesser General Public 
8 //  License as published by the Free Software Foundation; either 
9 //  version 2.1 of the License. 
10 // 
11 //  This library is distributed in the hope that it will be useful, 
12 //  but WITHOUT ANY WARRANTY; without even the implied warranty of 
13 //  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
14 //  Lesser General Public License for more details. 
15 // 
16 //  You should have received a copy of the GNU Lesser General Public 
17 //  License along with this library; if not, write to the Free Software 
18 //  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
19 // 
20 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
21 //
22 //
23 //
24 //  File   : VTKViewer_GeometryFilter.cxx
25 //  Author : 
26 //  Module : SALOME
27 //  $Header$
28
29 #include "VISU_AppendPolyData.hxx"
30
31 #include <vtkObjectFactory.h>
32
33 //---------------------------------------------------------------
34 vtkCxxRevisionMacro(VISU_AppendPolyData, "$Revision$");
35 vtkStandardNewMacro(VISU_AppendPolyData);
36
37
38 //---------------------------------------------------------------
39 VISU_AppendPolyData
40 ::VISU_AppendPolyData():
41   TAppendFilterHelper(this)
42 {}
43
44
45 //---------------------------------------------------------------
46 VISU_AppendPolyData
47 ::~VISU_AppendPolyData()
48 {}
49
50
51 //---------------------------------------------------------------
52 int
53 VISU_AppendPolyData
54 ::RequestData(vtkInformation *theRequest,
55               vtkInformationVector **theInputVector,
56               vtkInformationVector *theOutputVector)
57 {
58   bool anIsExecuted = false;
59   if(GetNumberOfInputConnections(0) > 1 || IsMergingInputs() || IsMappingInputs())
60     anIsExecuted = VISU::PolyDataRequestData(theInputVector,
61                                              this->GetNumberOfInputConnections(0),
62                                              theOutputVector,
63                                              GetSharedPointSet(),
64                                              IsMergingInputs(),
65                                              IsMappingInputs());
66   if(!anIsExecuted)
67     anIsExecuted = Superclass::RequestData(theRequest,
68                                            theInputVector,
69                                            theOutputVector);
70   
71   return anIsExecuted;
72 }
73
74