VTK  9.0.20200927
vtkInformationQuadratureSchemeDefinitionVectorKey.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkInformationQuadratureSchemeDefinitionVectorKey.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
25 #ifndef vtkInformationQuadratureSchemeDefinitionVectorKey_h
26 #define vtkInformationQuadratureSchemeDefinitionVectorKey_h
27 
28 #include "vtkCommonDataModelModule.h" // For export macro
29 #include "vtkCommonInformationKeyManager.h" // Manage instances of this type.
30 #include "vtkInformationKey.h"
31 
32 class vtkInformationQuadratureSchemeDefinitionVectorValue;
33 class vtkXMLDataElement;
35 
37  : public vtkInformationKey
38 {
39 public:
41  void PrintSelf(ostream& os, vtkIndent indent) override;
43 
48  //
51 
55  void Clear(vtkInformation* info);
60  void Resize(vtkInformation* info, int n);
64  int Size(vtkInformation* info);
65  int Length(vtkInformation* info) { return this->Size(info); }
80  void SetRange(
81  vtkInformation* info, vtkQuadratureSchemeDefinition** source, int from, int to, int n);
82 
88  void GetRange(
89  vtkInformation* info, vtkQuadratureSchemeDefinition** dest, int from, int to, int n);
90 
95 
96  // _escription:
97  // Get a pointer to the first vtkQuadratureSchemeDefinition in the vector. We are
98  // uysing a vector of smart pointers so this is not easy to
99  // implement.
100  // vtkQuadratureSchemeDefinition **Get(vtkInformation* info);
101 
103 
108  void ShallowCopy(vtkInformation* from, vtkInformation* to) override;
109  void DeepCopy(vtkInformation* from, vtkInformation* to) override;
111 
115  void Print(ostream& os, vtkInformation* info) override;
116 
117  // note: I had wanted to make the following interface in vtkInformationKey
118  // with a default implementation that did nothing. but we decided that
119  // vtkInformationKey class is too important a class to add such an interface
120  // without a thorough design review. we don't have budget for such a review.
121 
127  int SaveState(vtkInformation* info, vtkXMLDataElement* element);
132  int RestoreState(vtkInformation* info, vtkXMLDataElement* element);
133 
134 private:
139  void CreateQuadratureSchemeDefinition();
145  vtkInformationQuadratureSchemeDefinitionVectorValue* GetQuadratureSchemeDefinitionVector(
147 
148  //
151  void operator=(const vtkInformationQuadratureSchemeDefinitionVectorKey&) = delete;
152 };
153 
154 #endif
vtkCommonInformationKeyManager.h
vtkInformationKey::DeepCopy
virtual void DeepCopy(vtkInformation *from, vtkInformation *to)
Duplicate (new instance created) the entry associated with this key from one information object to an...
Definition: vtkInformationKey.h:91
vtkX3D::value
Definition: vtkX3D.h:226
vtkInformationQuadratureSchemeDefinitionVectorKey::Length
int Length(vtkInformation *info)
Definition: vtkInformationQuadratureSchemeDefinitionVectorKey.h:65
vtkQuadratureSchemeDefinition
Definition: vtkQuadratureSchemeDefinition.h:45
vtkInformationKey::Print
void Print(vtkInformation *info)
Print the key's value in an information object to a stream.
vtkInformationKey::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:33
vtkXMLDataElement
Represents an XML element and those nested inside.
Definition: vtkXMLDataElement.h:36
vtkX3D::name
Definition: vtkX3D.h:225
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:73
vtkX3D::info
Definition: vtkX3D.h:382
vtkX3D::location
Definition: vtkX3D.h:412
source
boost::graph_traits< vtkGraph * >::vertex_descriptor source(boost::graph_traits< vtkGraph * >::edge_descriptor e, vtkGraph *)
Definition: vtkBoostGraphAdapter.h:959
vtkInformationKey.h
vtkInformationQuadratureSchemeDefinitionVectorKey
Key for vtkQuadratureSchemeDefinition vector values.
Definition: vtkInformationQuadratureSchemeDefinitionVectorKey.h:36
vtkInformationKey
Superclass for vtkInformation keys.
Definition: vtkInformationKey.h:38
vtkInformationKey::ShallowCopy
virtual void ShallowCopy(vtkInformation *from, vtkInformation *to)=0
Copy the entry associated with this key from one information object to another.