Salome HOME
Copyright update 2022
[modules/paravis.git] / src / Plugins / MEDReader / plugin / MEDReaderIO / vtkInformationGaussDoubleVectorKey.h
1 // Copyright (C) 2010-2022  CEA/DEN, EDF R&D
2 //
3 // This library is free software; you can redistribute it and/or
4 // modify it under the terms of the GNU Lesser General Public
5 // License as published by the Free Software Foundation; either
6 // version 2.1 of the License, or (at your option) any later version.
7 //
8 // This library is distributed in the hope that it will be useful,
9 // but WITHOUT ANY WARRANTY; without even the implied warranty of
10 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
11 // Lesser General Public License for more details.
12 //
13 // You should have received a copy of the GNU Lesser General Public
14 // License along with this library; if not, write to the Free Software
15 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
16 //
17 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
18 //
19
20 #ifndef __vtkInformationGaussDoubleVectorKey_h_
21 #define __vtkInformationGaussDoubleVectorKey_h_
22
23 #include "vtkInformationDoubleVectorKey.h"
24
25 class VTK_EXPORT vtkInformationGaussDoubleVectorKey : public vtkInformationDoubleVectorKey
26 {
27 public:
28   vtkTypeMacro(vtkInformationGaussDoubleVectorKey, vtkInformationDoubleVectorKey)
29   void PrintSelf(ostream& /*os*/, vtkIndent /*indent*/) override {};
30
31   vtkInformationGaussDoubleVectorKey(const char* name, const char* location,
32     int length = -1) : vtkInformationDoubleVectorKey(name, location, length) { }
33
34   /**
35   * This method simply returns a new vtkInformationDoubleVectorKey, given a
36   * name, a location and a required length. This method is provided for
37   * wrappers. Use the constructor directly from C++ instead.
38   */
39   static vtkInformationGaussDoubleVectorKey* MakeKey(const char* name, const char* location,
40     int length = -1)
41   {
42     return new vtkInformationGaussDoubleVectorKey(name, location, length);
43   }
44
45   /**
46   * Simply shallow copies the key from fromInfo to toInfo.
47   * This is used by the pipeline to propagate this key downstream.
48   */
49   void CopyDefaultInformation(vtkInformation* /*request*/,
50     vtkInformation* fromInfo,
51     vtkInformation* toInfo) override
52   {
53     this->ShallowCopy(fromInfo, toInfo);
54   }
55
56   /*private:
57   vtkInformationGaussDoubleVectorKey(const vtkInformationGaussDoubleVectorKey&) VTK_DELETE_FUNCTION;
58   void operator=(const vtkInformationGaussDoubleVectorKey&) VTK_DELETE_FUNCTION;*/
59 };
60
61 #endif