Salome HOME
a2648e48fd934d3bd452e01bcc7d7233bf690be0
[modules/visu.git] / src / PIPELINE / VISU_MergedPL.hxx
1 //  Copyright (C) 2007-2008  CEA/DEN, EDF R&D, OPEN CASCADE
2 //
3 //  Copyright (C) 2003-2007  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 //  VISU OBJECT : interactive object for VISU entities implementation
23 // File:    VISU_MergedPL.hxx
24 // Author:  Alexey PETROV
25 // Module : VISU
26 //
27 #ifndef VISU_MergedPL_HeaderFile
28 #define VISU_MergedPL_HeaderFile
29
30 #include "VISUPipeline.hxx"
31 #include "VISU_Structures.hxx"
32
33 class vtkDataSet;
34 class vtkPointSet;
35 class VISU_PipeLine;
36  
37
38 //----------------------------------------------------------------------------
39 struct VISU_PIPELINE_EXPORT VISU_MergedPL
40 {
41   virtual  
42   void  
43   SetSourceGeometry() = 0;
44
45   virtual
46   int
47   AddGeometry( vtkDataSet* theGeometry, const VISU::TName& theGeomName ) = 0;
48
49   virtual
50   vtkDataSet*
51   GetGeometry( int theGeomNumber, VISU::TName& theGeomName ) = 0;
52
53   virtual
54   int
55   GetNumberOfGeometry() = 0;
56
57   virtual
58   bool 
59   IsExternalGeometryUsed() = 0;
60
61   virtual
62   void
63   ClearGeometry() = 0;
64
65   virtual 
66   vtkPointSet* 
67   GetMergedInput() = 0;
68
69   virtual
70   void
71   DoShallowCopy(VISU_PipeLine *thePipeLine,
72                 bool theIsCopyInput);
73
74   virtual
75   void
76   AddGeometryName(const VISU::TName& theGeomName);
77
78   virtual
79   VISU::TName
80   GetGeometryName( int theGeomNumber ) const;
81
82   virtual
83   const VISU::TNames&
84   GetGeometryNames() const;
85
86   virtual
87   void
88   ClearGeometryNames();
89
90   VISU::TNames myGeometryNames;
91 };
92   
93 #endif